@aws-sdk/client-appsync 3.507.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -459,6 +459,14 @@ GetGraphqlApi
459
459
 
460
460
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetGraphqlApiCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetGraphqlApiCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetGraphqlApiCommandOutput/)
461
461
 
462
+ </details>
463
+ <details>
464
+ <summary>
465
+ GetGraphqlApiEnvironmentVariables
466
+ </summary>
467
+
468
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetGraphqlApiEnvironmentVariablesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetGraphqlApiEnvironmentVariablesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetGraphqlApiEnvironmentVariablesCommandOutput/)
469
+
462
470
  </details>
463
471
  <details>
464
472
  <summary>
@@ -587,6 +595,14 @@ ListTypesByAssociation
587
595
 
588
596
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/ListTypesByAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListTypesByAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListTypesByAssociationCommandOutput/)
589
597
 
598
+ </details>
599
+ <details>
600
+ <summary>
601
+ PutGraphqlApiEnvironmentVariables
602
+ </summary>
603
+
604
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/PutGraphqlApiEnvironmentVariablesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/PutGraphqlApiEnvironmentVariablesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/PutGraphqlApiEnvironmentVariablesCommandOutput/)
605
+
590
606
  </details>
591
607
  <details>
592
608
  <summary>
@@ -0,0 +1 @@
1
+ module.exports = require("../index.js");
@@ -0,0 +1 @@
1
+ module.exports = require("../index.js");
package/dist-cjs/index.js CHANGED
@@ -75,6 +75,7 @@ __export(src_exports, {
75
75
  GetDomainNameCommand: () => GetDomainNameCommand,
76
76
  GetFunctionCommand: () => GetFunctionCommand,
77
77
  GetGraphqlApiCommand: () => GetGraphqlApiCommand,
78
+ GetGraphqlApiEnvironmentVariablesCommand: () => GetGraphqlApiEnvironmentVariablesCommand,
78
79
  GetIntrospectionSchemaCommand: () => GetIntrospectionSchemaCommand,
79
80
  GetResolverCommand: () => GetResolverCommand,
80
81
  GetSchemaCreationStatusCommand: () => GetSchemaCreationStatusCommand,
@@ -101,6 +102,7 @@ __export(src_exports, {
101
102
  NotFoundException: () => NotFoundException,
102
103
  OutputType: () => OutputType,
103
104
  Ownership: () => Ownership,
105
+ PutGraphqlApiEnvironmentVariablesCommand: () => PutGraphqlApiEnvironmentVariablesCommand,
104
106
  RelationalDatabaseSourceType: () => RelationalDatabaseSourceType,
105
107
  ResolverKind: () => ResolverKind,
106
108
  RuntimeName: () => RuntimeName,
@@ -1017,6 +1019,15 @@ var se_GetGraphqlApiCommand = /* @__PURE__ */ __name(async (input, context) => {
1017
1019
  b.m("GET").h(headers).b(body);
1018
1020
  return b.build();
1019
1021
  }, "se_GetGraphqlApiCommand");
1022
+ var se_GetGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name(async (input, context) => {
1023
+ const b = (0, import_core.requestBuilder)(input, context);
1024
+ const headers = {};
1025
+ b.bp("/v1/apis/{apiId}/environmentVariables");
1026
+ b.p("apiId", () => input.apiId, "{apiId}", false);
1027
+ let body;
1028
+ b.m("GET").h(headers).b(body);
1029
+ return b.build();
1030
+ }, "se_GetGraphqlApiEnvironmentVariablesCommand");
1020
1031
  var se_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
1021
1032
  const b = (0, import_core.requestBuilder)(input, context);
1022
1033
  const headers = {};
@@ -1217,6 +1228,22 @@ var se_ListTypesByAssociationCommand = /* @__PURE__ */ __name(async (input, cont
1217
1228
  b.m("GET").h(headers).q(query).b(body);
1218
1229
  return b.build();
1219
1230
  }, "se_ListTypesByAssociationCommand");
1231
+ var se_PutGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name(async (input, context) => {
1232
+ const b = (0, import_core.requestBuilder)(input, context);
1233
+ const headers = {
1234
+ "content-type": "application/json"
1235
+ };
1236
+ b.bp("/v1/apis/{apiId}/environmentVariables");
1237
+ b.p("apiId", () => input.apiId, "{apiId}", false);
1238
+ let body;
1239
+ body = JSON.stringify(
1240
+ (0, import_smithy_client.take)(input, {
1241
+ environmentVariables: (_) => (0, import_smithy_client._json)(_)
1242
+ })
1243
+ );
1244
+ b.m("PUT").h(headers).b(body);
1245
+ return b.build();
1246
+ }, "se_PutGraphqlApiEnvironmentVariablesCommand");
1220
1247
  var se_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (input, context) => {
1221
1248
  const b = (0, import_core.requestBuilder)(input, context);
1222
1249
  const headers = {
@@ -1899,6 +1926,20 @@ var de_GetGraphqlApiCommand = /* @__PURE__ */ __name(async (output, context) =>
1899
1926
  Object.assign(contents, doc);
1900
1927
  return contents;
1901
1928
  }, "de_GetGraphqlApiCommand");
1929
+ var de_GetGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name(async (output, context) => {
1930
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1931
+ return de_CommandError(output, context);
1932
+ }
1933
+ const contents = (0, import_smithy_client.map)({
1934
+ $metadata: deserializeMetadata(output)
1935
+ });
1936
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1937
+ const doc = (0, import_smithy_client.take)(data, {
1938
+ environmentVariables: import_smithy_client._json
1939
+ });
1940
+ Object.assign(contents, doc);
1941
+ return contents;
1942
+ }, "de_GetGraphqlApiEnvironmentVariablesCommand");
1902
1943
  var de_GetIntrospectionSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1903
1944
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
1945
  return de_CommandError(output, context);
@@ -2131,6 +2172,20 @@ var de_ListTypesByAssociationCommand = /* @__PURE__ */ __name(async (output, con
2131
2172
  Object.assign(contents, doc);
2132
2173
  return contents;
2133
2174
  }, "de_ListTypesByAssociationCommand");
2175
+ var de_PutGraphqlApiEnvironmentVariablesCommand = /* @__PURE__ */ __name(async (output, context) => {
2176
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2177
+ return de_CommandError(output, context);
2178
+ }
2179
+ const contents = (0, import_smithy_client.map)({
2180
+ $metadata: deserializeMetadata(output)
2181
+ });
2182
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2183
+ const doc = (0, import_smithy_client.take)(data, {
2184
+ environmentVariables: import_smithy_client._json
2185
+ });
2186
+ Object.assign(contents, doc);
2187
+ return contents;
2188
+ }, "de_PutGraphqlApiEnvironmentVariablesCommand");
2134
2189
  var de_StartDataSourceIntrospectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2135
2190
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2136
2191
  return de_CommandError(output, context);
@@ -3169,6 +3224,23 @@ var _GetGraphqlApiCommand = class _GetGraphqlApiCommand extends import_smithy_cl
3169
3224
  __name(_GetGraphqlApiCommand, "GetGraphqlApiCommand");
3170
3225
  var GetGraphqlApiCommand = _GetGraphqlApiCommand;
3171
3226
 
3227
+ // src/commands/GetGraphqlApiEnvironmentVariablesCommand.ts
3228
+
3229
+
3230
+
3231
+
3232
+ var _GetGraphqlApiEnvironmentVariablesCommand = class _GetGraphqlApiEnvironmentVariablesCommand extends import_smithy_client.Command.classBuilder().ep({
3233
+ ...commonParams
3234
+ }).m(function(Command, cs, config, o) {
3235
+ return [
3236
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3237
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3238
+ ];
3239
+ }).s("AWSDeepdishControlPlaneService", "GetGraphqlApiEnvironmentVariables", {}).n("AppSyncClient", "GetGraphqlApiEnvironmentVariablesCommand").f(void 0, void 0).ser(se_GetGraphqlApiEnvironmentVariablesCommand).de(de_GetGraphqlApiEnvironmentVariablesCommand).build() {
3240
+ };
3241
+ __name(_GetGraphqlApiEnvironmentVariablesCommand, "GetGraphqlApiEnvironmentVariablesCommand");
3242
+ var GetGraphqlApiEnvironmentVariablesCommand = _GetGraphqlApiEnvironmentVariablesCommand;
3243
+
3172
3244
  // src/commands/GetIntrospectionSchemaCommand.ts
3173
3245
 
3174
3246
 
@@ -3441,6 +3513,23 @@ var _ListTypesCommand = class _ListTypesCommand extends import_smithy_client.Com
3441
3513
  __name(_ListTypesCommand, "ListTypesCommand");
3442
3514
  var ListTypesCommand = _ListTypesCommand;
3443
3515
 
3516
+ // src/commands/PutGraphqlApiEnvironmentVariablesCommand.ts
3517
+
3518
+
3519
+
3520
+
3521
+ var _PutGraphqlApiEnvironmentVariablesCommand = class _PutGraphqlApiEnvironmentVariablesCommand extends import_smithy_client.Command.classBuilder().ep({
3522
+ ...commonParams
3523
+ }).m(function(Command, cs, config, o) {
3524
+ return [
3525
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3526
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3527
+ ];
3528
+ }).s("AWSDeepdishControlPlaneService", "PutGraphqlApiEnvironmentVariables", {}).n("AppSyncClient", "PutGraphqlApiEnvironmentVariablesCommand").f(void 0, void 0).ser(se_PutGraphqlApiEnvironmentVariablesCommand).de(de_PutGraphqlApiEnvironmentVariablesCommand).build() {
3529
+ };
3530
+ __name(_PutGraphqlApiEnvironmentVariablesCommand, "PutGraphqlApiEnvironmentVariablesCommand");
3531
+ var PutGraphqlApiEnvironmentVariablesCommand = _PutGraphqlApiEnvironmentVariablesCommand;
3532
+
3444
3533
  // src/commands/StartDataSourceIntrospectionCommand.ts
3445
3534
 
3446
3535
 
@@ -3713,6 +3802,7 @@ var commands = {
3713
3802
  GetDomainNameCommand,
3714
3803
  GetFunctionCommand,
3715
3804
  GetGraphqlApiCommand,
3805
+ GetGraphqlApiEnvironmentVariablesCommand,
3716
3806
  GetIntrospectionSchemaCommand,
3717
3807
  GetResolverCommand,
3718
3808
  GetSchemaCreationStatusCommand,
@@ -3729,6 +3819,7 @@ var commands = {
3729
3819
  ListTagsForResourceCommand,
3730
3820
  ListTypesCommand,
3731
3821
  ListTypesByAssociationCommand,
3822
+ PutGraphqlApiEnvironmentVariablesCommand,
3732
3823
  StartDataSourceIntrospectionCommand,
3733
3824
  StartSchemaCreationCommand,
3734
3825
  StartSchemaMergeCommand,
@@ -3792,6 +3883,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3792
3883
  GetDomainNameCommand,
3793
3884
  GetFunctionCommand,
3794
3885
  GetGraphqlApiCommand,
3886
+ GetGraphqlApiEnvironmentVariablesCommand,
3795
3887
  GetIntrospectionSchemaCommand,
3796
3888
  GetResolverCommand,
3797
3889
  GetSchemaCreationStatusCommand,
@@ -3808,6 +3900,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3808
3900
  ListTagsForResourceCommand,
3809
3901
  ListTypesByAssociationCommand,
3810
3902
  ListTypesCommand,
3903
+ PutGraphqlApiEnvironmentVariablesCommand,
3811
3904
  StartDataSourceIntrospectionCommand,
3812
3905
  StartSchemaCreationCommand,
3813
3906
  StartSchemaMergeCommand,
@@ -32,6 +32,7 @@ import { GetDataSourceIntrospectionCommand, } from "./commands/GetDataSourceIntr
32
32
  import { GetDomainNameCommand, } from "./commands/GetDomainNameCommand";
33
33
  import { GetFunctionCommand } from "./commands/GetFunctionCommand";
34
34
  import { GetGraphqlApiCommand, } from "./commands/GetGraphqlApiCommand";
35
+ import { GetGraphqlApiEnvironmentVariablesCommand, } from "./commands/GetGraphqlApiEnvironmentVariablesCommand";
35
36
  import { GetIntrospectionSchemaCommand, } from "./commands/GetIntrospectionSchemaCommand";
36
37
  import { GetResolverCommand } from "./commands/GetResolverCommand";
37
38
  import { GetSchemaCreationStatusCommand, } from "./commands/GetSchemaCreationStatusCommand";
@@ -48,6 +49,7 @@ import { ListSourceApiAssociationsCommand, } from "./commands/ListSourceApiAssoc
48
49
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
49
50
  import { ListTypesByAssociationCommand, } from "./commands/ListTypesByAssociationCommand";
50
51
  import { ListTypesCommand } from "./commands/ListTypesCommand";
52
+ import { PutGraphqlApiEnvironmentVariablesCommand, } from "./commands/PutGraphqlApiEnvironmentVariablesCommand";
51
53
  import { StartDataSourceIntrospectionCommand, } from "./commands/StartDataSourceIntrospectionCommand";
52
54
  import { StartSchemaCreationCommand, } from "./commands/StartSchemaCreationCommand";
53
55
  import { StartSchemaMergeCommand, } from "./commands/StartSchemaMergeCommand";
@@ -95,6 +97,7 @@ const commands = {
95
97
  GetDomainNameCommand,
96
98
  GetFunctionCommand,
97
99
  GetGraphqlApiCommand,
100
+ GetGraphqlApiEnvironmentVariablesCommand,
98
101
  GetIntrospectionSchemaCommand,
99
102
  GetResolverCommand,
100
103
  GetSchemaCreationStatusCommand,
@@ -111,6 +114,7 @@ const commands = {
111
114
  ListTagsForResourceCommand,
112
115
  ListTypesCommand,
113
116
  ListTypesByAssociationCommand,
117
+ PutGraphqlApiEnvironmentVariablesCommand,
114
118
  StartDataSourceIntrospectionCommand,
115
119
  StartSchemaCreationCommand,
116
120
  StartSchemaMergeCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetGraphqlApiEnvironmentVariablesCommand, se_GetGraphqlApiEnvironmentVariablesCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetGraphqlApiEnvironmentVariablesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSDeepdishControlPlaneService", "GetGraphqlApiEnvironmentVariables", {})
19
+ .n("AppSyncClient", "GetGraphqlApiEnvironmentVariablesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetGraphqlApiEnvironmentVariablesCommand)
22
+ .de(de_GetGraphqlApiEnvironmentVariablesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutGraphqlApiEnvironmentVariablesCommand, se_PutGraphqlApiEnvironmentVariablesCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutGraphqlApiEnvironmentVariablesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSDeepdishControlPlaneService", "PutGraphqlApiEnvironmentVariables", {})
19
+ .n("AppSyncClient", "PutGraphqlApiEnvironmentVariablesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutGraphqlApiEnvironmentVariablesCommand)
22
+ .de(de_PutGraphqlApiEnvironmentVariablesCommand)
23
+ .build() {
24
+ }
@@ -30,6 +30,7 @@ export * from "./GetDataSourceIntrospectionCommand";
30
30
  export * from "./GetDomainNameCommand";
31
31
  export * from "./GetFunctionCommand";
32
32
  export * from "./GetGraphqlApiCommand";
33
+ export * from "./GetGraphqlApiEnvironmentVariablesCommand";
33
34
  export * from "./GetIntrospectionSchemaCommand";
34
35
  export * from "./GetResolverCommand";
35
36
  export * from "./GetSchemaCreationStatusCommand";
@@ -46,6 +47,7 @@ export * from "./ListSourceApiAssociationsCommand";
46
47
  export * from "./ListTagsForResourceCommand";
47
48
  export * from "./ListTypesByAssociationCommand";
48
49
  export * from "./ListTypesCommand";
50
+ export * from "./PutGraphqlApiEnvironmentVariablesCommand";
49
51
  export * from "./StartDataSourceIntrospectionCommand";
50
52
  export * from "./StartSchemaCreationCommand";
51
53
  export * from "./StartSchemaMergeCommand";
@@ -427,6 +427,15 @@ export const se_GetGraphqlApiCommand = async (input, context) => {
427
427
  b.m("GET").h(headers).b(body);
428
428
  return b.build();
429
429
  };
430
+ export const se_GetGraphqlApiEnvironmentVariablesCommand = async (input, context) => {
431
+ const b = rb(input, context);
432
+ const headers = {};
433
+ b.bp("/v1/apis/{apiId}/environmentVariables");
434
+ b.p("apiId", () => input.apiId, "{apiId}", false);
435
+ let body;
436
+ b.m("GET").h(headers).b(body);
437
+ return b.build();
438
+ };
430
439
  export const se_GetIntrospectionSchemaCommand = async (input, context) => {
431
440
  const b = rb(input, context);
432
441
  const headers = {};
@@ -627,6 +636,20 @@ export const se_ListTypesByAssociationCommand = async (input, context) => {
627
636
  b.m("GET").h(headers).q(query).b(body);
628
637
  return b.build();
629
638
  };
639
+ export const se_PutGraphqlApiEnvironmentVariablesCommand = async (input, context) => {
640
+ const b = rb(input, context);
641
+ const headers = {
642
+ "content-type": "application/json",
643
+ };
644
+ b.bp("/v1/apis/{apiId}/environmentVariables");
645
+ b.p("apiId", () => input.apiId, "{apiId}", false);
646
+ let body;
647
+ body = JSON.stringify(take(input, {
648
+ environmentVariables: (_) => _json(_),
649
+ }));
650
+ b.m("PUT").h(headers).b(body);
651
+ return b.build();
652
+ };
630
653
  export const se_StartDataSourceIntrospectionCommand = async (input, context) => {
631
654
  const b = rb(input, context);
632
655
  const headers = {
@@ -1285,6 +1308,20 @@ export const de_GetGraphqlApiCommand = async (output, context) => {
1285
1308
  Object.assign(contents, doc);
1286
1309
  return contents;
1287
1310
  };
1311
+ export const de_GetGraphqlApiEnvironmentVariablesCommand = async (output, context) => {
1312
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
+ return de_CommandError(output, context);
1314
+ }
1315
+ const contents = map({
1316
+ $metadata: deserializeMetadata(output),
1317
+ });
1318
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1319
+ const doc = take(data, {
1320
+ environmentVariables: _json,
1321
+ });
1322
+ Object.assign(contents, doc);
1323
+ return contents;
1324
+ };
1288
1325
  export const de_GetIntrospectionSchemaCommand = async (output, context) => {
1289
1326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1290
1327
  return de_CommandError(output, context);
@@ -1517,6 +1554,20 @@ export const de_ListTypesByAssociationCommand = async (output, context) => {
1517
1554
  Object.assign(contents, doc);
1518
1555
  return contents;
1519
1556
  };
1557
+ export const de_PutGraphqlApiEnvironmentVariablesCommand = async (output, context) => {
1558
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1559
+ return de_CommandError(output, context);
1560
+ }
1561
+ const contents = map({
1562
+ $metadata: deserializeMetadata(output),
1563
+ });
1564
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1565
+ const doc = take(data, {
1566
+ environmentVariables: _json,
1567
+ });
1568
+ Object.assign(contents, doc);
1569
+ return contents;
1570
+ };
1520
1571
  export const de_StartDataSourceIntrospectionCommand = async (output, context) => {
1521
1572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1522
1573
  return de_CommandError(output, context);
@@ -32,6 +32,7 @@ import { GetDataSourceIntrospectionCommandInput, GetDataSourceIntrospectionComma
32
32
  import { GetDomainNameCommandInput, GetDomainNameCommandOutput } from "./commands/GetDomainNameCommand";
33
33
  import { GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand";
34
34
  import { GetGraphqlApiCommandInput, GetGraphqlApiCommandOutput } from "./commands/GetGraphqlApiCommand";
35
+ import { GetGraphqlApiEnvironmentVariablesCommandInput, GetGraphqlApiEnvironmentVariablesCommandOutput } from "./commands/GetGraphqlApiEnvironmentVariablesCommand";
35
36
  import { GetIntrospectionSchemaCommandInput, GetIntrospectionSchemaCommandOutput } from "./commands/GetIntrospectionSchemaCommand";
36
37
  import { GetResolverCommandInput, GetResolverCommandOutput } from "./commands/GetResolverCommand";
37
38
  import { GetSchemaCreationStatusCommandInput, GetSchemaCreationStatusCommandOutput } from "./commands/GetSchemaCreationStatusCommand";
@@ -48,6 +49,7 @@ import { ListSourceApiAssociationsCommandInput, ListSourceApiAssociationsCommand
48
49
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
49
50
  import { ListTypesByAssociationCommandInput, ListTypesByAssociationCommandOutput } from "./commands/ListTypesByAssociationCommand";
50
51
  import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTypesCommand";
52
+ import { PutGraphqlApiEnvironmentVariablesCommandInput, PutGraphqlApiEnvironmentVariablesCommandOutput } from "./commands/PutGraphqlApiEnvironmentVariablesCommand";
51
53
  import { StartDataSourceIntrospectionCommandInput, StartDataSourceIntrospectionCommandOutput } from "./commands/StartDataSourceIntrospectionCommand";
52
54
  import { StartSchemaCreationCommandInput, StartSchemaCreationCommandOutput } from "./commands/StartSchemaCreationCommand";
53
55
  import { StartSchemaMergeCommandInput, StartSchemaMergeCommandOutput } from "./commands/StartSchemaMergeCommand";
@@ -255,6 +257,12 @@ export interface AppSync {
255
257
  getGraphqlApi(args: GetGraphqlApiCommandInput, options?: __HttpHandlerOptions): Promise<GetGraphqlApiCommandOutput>;
256
258
  getGraphqlApi(args: GetGraphqlApiCommandInput, cb: (err: any, data?: GetGraphqlApiCommandOutput) => void): void;
257
259
  getGraphqlApi(args: GetGraphqlApiCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGraphqlApiCommandOutput) => void): void;
260
+ /**
261
+ * @see {@link GetGraphqlApiEnvironmentVariablesCommand}
262
+ */
263
+ getGraphqlApiEnvironmentVariables(args: GetGraphqlApiEnvironmentVariablesCommandInput, options?: __HttpHandlerOptions): Promise<GetGraphqlApiEnvironmentVariablesCommandOutput>;
264
+ getGraphqlApiEnvironmentVariables(args: GetGraphqlApiEnvironmentVariablesCommandInput, cb: (err: any, data?: GetGraphqlApiEnvironmentVariablesCommandOutput) => void): void;
265
+ getGraphqlApiEnvironmentVariables(args: GetGraphqlApiEnvironmentVariablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGraphqlApiEnvironmentVariablesCommandOutput) => void): void;
258
266
  /**
259
267
  * @see {@link GetIntrospectionSchemaCommand}
260
268
  */
@@ -351,6 +359,12 @@ export interface AppSync {
351
359
  listTypesByAssociation(args: ListTypesByAssociationCommandInput, options?: __HttpHandlerOptions): Promise<ListTypesByAssociationCommandOutput>;
352
360
  listTypesByAssociation(args: ListTypesByAssociationCommandInput, cb: (err: any, data?: ListTypesByAssociationCommandOutput) => void): void;
353
361
  listTypesByAssociation(args: ListTypesByAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTypesByAssociationCommandOutput) => void): void;
362
+ /**
363
+ * @see {@link PutGraphqlApiEnvironmentVariablesCommand}
364
+ */
365
+ putGraphqlApiEnvironmentVariables(args: PutGraphqlApiEnvironmentVariablesCommandInput, options?: __HttpHandlerOptions): Promise<PutGraphqlApiEnvironmentVariablesCommandOutput>;
366
+ putGraphqlApiEnvironmentVariables(args: PutGraphqlApiEnvironmentVariablesCommandInput, cb: (err: any, data?: PutGraphqlApiEnvironmentVariablesCommandOutput) => void): void;
367
+ putGraphqlApiEnvironmentVariables(args: PutGraphqlApiEnvironmentVariablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutGraphqlApiEnvironmentVariablesCommandOutput) => void): void;
354
368
  /**
355
369
  * @see {@link StartDataSourceIntrospectionCommand}
356
370
  */
@@ -40,6 +40,7 @@ import { GetDataSourceIntrospectionCommandInput, GetDataSourceIntrospectionComma
40
40
  import { GetDomainNameCommandInput, GetDomainNameCommandOutput } from "./commands/GetDomainNameCommand";
41
41
  import { GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand";
42
42
  import { GetGraphqlApiCommandInput, GetGraphqlApiCommandOutput } from "./commands/GetGraphqlApiCommand";
43
+ import { GetGraphqlApiEnvironmentVariablesCommandInput, GetGraphqlApiEnvironmentVariablesCommandOutput } from "./commands/GetGraphqlApiEnvironmentVariablesCommand";
43
44
  import { GetIntrospectionSchemaCommandInput, GetIntrospectionSchemaCommandOutput } from "./commands/GetIntrospectionSchemaCommand";
44
45
  import { GetResolverCommandInput, GetResolverCommandOutput } from "./commands/GetResolverCommand";
45
46
  import { GetSchemaCreationStatusCommandInput, GetSchemaCreationStatusCommandOutput } from "./commands/GetSchemaCreationStatusCommand";
@@ -56,6 +57,7 @@ import { ListSourceApiAssociationsCommandInput, ListSourceApiAssociationsCommand
56
57
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
57
58
  import { ListTypesByAssociationCommandInput, ListTypesByAssociationCommandOutput } from "./commands/ListTypesByAssociationCommand";
58
59
  import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTypesCommand";
60
+ import { PutGraphqlApiEnvironmentVariablesCommandInput, PutGraphqlApiEnvironmentVariablesCommandOutput } from "./commands/PutGraphqlApiEnvironmentVariablesCommand";
59
61
  import { StartDataSourceIntrospectionCommandInput, StartDataSourceIntrospectionCommandOutput } from "./commands/StartDataSourceIntrospectionCommand";
60
62
  import { StartSchemaCreationCommandInput, StartSchemaCreationCommandOutput } from "./commands/StartSchemaCreationCommand";
61
63
  import { StartSchemaMergeCommandInput, StartSchemaMergeCommandOutput } from "./commands/StartSchemaMergeCommand";
@@ -76,11 +78,11 @@ export { __Client };
76
78
  /**
77
79
  * @public
78
80
  */
79
- export type ServiceInputTypes = AssociateApiCommandInput | AssociateMergedGraphqlApiCommandInput | AssociateSourceGraphqlApiCommandInput | CreateApiCacheCommandInput | CreateApiKeyCommandInput | CreateDataSourceCommandInput | CreateDomainNameCommandInput | CreateFunctionCommandInput | CreateGraphqlApiCommandInput | CreateResolverCommandInput | CreateTypeCommandInput | DeleteApiCacheCommandInput | DeleteApiKeyCommandInput | DeleteDataSourceCommandInput | DeleteDomainNameCommandInput | DeleteFunctionCommandInput | DeleteGraphqlApiCommandInput | DeleteResolverCommandInput | DeleteTypeCommandInput | DisassociateApiCommandInput | DisassociateMergedGraphqlApiCommandInput | DisassociateSourceGraphqlApiCommandInput | EvaluateCodeCommandInput | EvaluateMappingTemplateCommandInput | FlushApiCacheCommandInput | GetApiAssociationCommandInput | GetApiCacheCommandInput | GetDataSourceCommandInput | GetDataSourceIntrospectionCommandInput | GetDomainNameCommandInput | GetFunctionCommandInput | GetGraphqlApiCommandInput | GetIntrospectionSchemaCommandInput | GetResolverCommandInput | GetSchemaCreationStatusCommandInput | GetSourceApiAssociationCommandInput | GetTypeCommandInput | ListApiKeysCommandInput | ListDataSourcesCommandInput | ListDomainNamesCommandInput | ListFunctionsCommandInput | ListGraphqlApisCommandInput | ListResolversByFunctionCommandInput | ListResolversCommandInput | ListSourceApiAssociationsCommandInput | ListTagsForResourceCommandInput | ListTypesByAssociationCommandInput | ListTypesCommandInput | StartDataSourceIntrospectionCommandInput | StartSchemaCreationCommandInput | StartSchemaMergeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApiCacheCommandInput | UpdateApiKeyCommandInput | UpdateDataSourceCommandInput | UpdateDomainNameCommandInput | UpdateFunctionCommandInput | UpdateGraphqlApiCommandInput | UpdateResolverCommandInput | UpdateSourceApiAssociationCommandInput | UpdateTypeCommandInput;
81
+ export type ServiceInputTypes = AssociateApiCommandInput | AssociateMergedGraphqlApiCommandInput | AssociateSourceGraphqlApiCommandInput | CreateApiCacheCommandInput | CreateApiKeyCommandInput | CreateDataSourceCommandInput | CreateDomainNameCommandInput | CreateFunctionCommandInput | CreateGraphqlApiCommandInput | CreateResolverCommandInput | CreateTypeCommandInput | DeleteApiCacheCommandInput | DeleteApiKeyCommandInput | DeleteDataSourceCommandInput | DeleteDomainNameCommandInput | DeleteFunctionCommandInput | DeleteGraphqlApiCommandInput | DeleteResolverCommandInput | DeleteTypeCommandInput | DisassociateApiCommandInput | DisassociateMergedGraphqlApiCommandInput | DisassociateSourceGraphqlApiCommandInput | EvaluateCodeCommandInput | EvaluateMappingTemplateCommandInput | FlushApiCacheCommandInput | GetApiAssociationCommandInput | GetApiCacheCommandInput | GetDataSourceCommandInput | GetDataSourceIntrospectionCommandInput | GetDomainNameCommandInput | GetFunctionCommandInput | GetGraphqlApiCommandInput | GetGraphqlApiEnvironmentVariablesCommandInput | GetIntrospectionSchemaCommandInput | GetResolverCommandInput | GetSchemaCreationStatusCommandInput | GetSourceApiAssociationCommandInput | GetTypeCommandInput | ListApiKeysCommandInput | ListDataSourcesCommandInput | ListDomainNamesCommandInput | ListFunctionsCommandInput | ListGraphqlApisCommandInput | ListResolversByFunctionCommandInput | ListResolversCommandInput | ListSourceApiAssociationsCommandInput | ListTagsForResourceCommandInput | ListTypesByAssociationCommandInput | ListTypesCommandInput | PutGraphqlApiEnvironmentVariablesCommandInput | StartDataSourceIntrospectionCommandInput | StartSchemaCreationCommandInput | StartSchemaMergeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApiCacheCommandInput | UpdateApiKeyCommandInput | UpdateDataSourceCommandInput | UpdateDomainNameCommandInput | UpdateFunctionCommandInput | UpdateGraphqlApiCommandInput | UpdateResolverCommandInput | UpdateSourceApiAssociationCommandInput | UpdateTypeCommandInput;
80
82
  /**
81
83
  * @public
82
84
  */
83
- export type ServiceOutputTypes = AssociateApiCommandOutput | AssociateMergedGraphqlApiCommandOutput | AssociateSourceGraphqlApiCommandOutput | CreateApiCacheCommandOutput | CreateApiKeyCommandOutput | CreateDataSourceCommandOutput | CreateDomainNameCommandOutput | CreateFunctionCommandOutput | CreateGraphqlApiCommandOutput | CreateResolverCommandOutput | CreateTypeCommandOutput | DeleteApiCacheCommandOutput | DeleteApiKeyCommandOutput | DeleteDataSourceCommandOutput | DeleteDomainNameCommandOutput | DeleteFunctionCommandOutput | DeleteGraphqlApiCommandOutput | DeleteResolverCommandOutput | DeleteTypeCommandOutput | DisassociateApiCommandOutput | DisassociateMergedGraphqlApiCommandOutput | DisassociateSourceGraphqlApiCommandOutput | EvaluateCodeCommandOutput | EvaluateMappingTemplateCommandOutput | FlushApiCacheCommandOutput | GetApiAssociationCommandOutput | GetApiCacheCommandOutput | GetDataSourceCommandOutput | GetDataSourceIntrospectionCommandOutput | GetDomainNameCommandOutput | GetFunctionCommandOutput | GetGraphqlApiCommandOutput | GetIntrospectionSchemaCommandOutput | GetResolverCommandOutput | GetSchemaCreationStatusCommandOutput | GetSourceApiAssociationCommandOutput | GetTypeCommandOutput | ListApiKeysCommandOutput | ListDataSourcesCommandOutput | ListDomainNamesCommandOutput | ListFunctionsCommandOutput | ListGraphqlApisCommandOutput | ListResolversByFunctionCommandOutput | ListResolversCommandOutput | ListSourceApiAssociationsCommandOutput | ListTagsForResourceCommandOutput | ListTypesByAssociationCommandOutput | ListTypesCommandOutput | StartDataSourceIntrospectionCommandOutput | StartSchemaCreationCommandOutput | StartSchemaMergeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApiCacheCommandOutput | UpdateApiKeyCommandOutput | UpdateDataSourceCommandOutput | UpdateDomainNameCommandOutput | UpdateFunctionCommandOutput | UpdateGraphqlApiCommandOutput | UpdateResolverCommandOutput | UpdateSourceApiAssociationCommandOutput | UpdateTypeCommandOutput;
85
+ export type ServiceOutputTypes = AssociateApiCommandOutput | AssociateMergedGraphqlApiCommandOutput | AssociateSourceGraphqlApiCommandOutput | CreateApiCacheCommandOutput | CreateApiKeyCommandOutput | CreateDataSourceCommandOutput | CreateDomainNameCommandOutput | CreateFunctionCommandOutput | CreateGraphqlApiCommandOutput | CreateResolverCommandOutput | CreateTypeCommandOutput | DeleteApiCacheCommandOutput | DeleteApiKeyCommandOutput | DeleteDataSourceCommandOutput | DeleteDomainNameCommandOutput | DeleteFunctionCommandOutput | DeleteGraphqlApiCommandOutput | DeleteResolverCommandOutput | DeleteTypeCommandOutput | DisassociateApiCommandOutput | DisassociateMergedGraphqlApiCommandOutput | DisassociateSourceGraphqlApiCommandOutput | EvaluateCodeCommandOutput | EvaluateMappingTemplateCommandOutput | FlushApiCacheCommandOutput | GetApiAssociationCommandOutput | GetApiCacheCommandOutput | GetDataSourceCommandOutput | GetDataSourceIntrospectionCommandOutput | GetDomainNameCommandOutput | GetFunctionCommandOutput | GetGraphqlApiCommandOutput | GetGraphqlApiEnvironmentVariablesCommandOutput | GetIntrospectionSchemaCommandOutput | GetResolverCommandOutput | GetSchemaCreationStatusCommandOutput | GetSourceApiAssociationCommandOutput | GetTypeCommandOutput | ListApiKeysCommandOutput | ListDataSourcesCommandOutput | ListDomainNamesCommandOutput | ListFunctionsCommandOutput | ListGraphqlApisCommandOutput | ListResolversByFunctionCommandOutput | ListResolversCommandOutput | ListSourceApiAssociationsCommandOutput | ListTagsForResourceCommandOutput | ListTypesByAssociationCommandOutput | ListTypesCommandOutput | PutGraphqlApiEnvironmentVariablesCommandOutput | StartDataSourceIntrospectionCommandOutput | StartSchemaCreationCommandOutput | StartSchemaMergeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApiCacheCommandOutput | UpdateApiKeyCommandOutput | UpdateDataSourceCommandOutput | UpdateDomainNameCommandOutput | UpdateFunctionCommandOutput | UpdateGraphqlApiCommandOutput | UpdateResolverCommandOutput | UpdateSourceApiAssociationCommandOutput | UpdateTypeCommandOutput;
84
86
  /**
85
87
  * @public
86
88
  */
@@ -0,0 +1,76 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
4
+ import { GetGraphqlApiEnvironmentVariablesRequest, GetGraphqlApiEnvironmentVariablesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetGraphqlApiEnvironmentVariablesCommand}.
13
+ */
14
+ export interface GetGraphqlApiEnvironmentVariablesCommandInput extends GetGraphqlApiEnvironmentVariablesRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetGraphqlApiEnvironmentVariablesCommand}.
20
+ */
21
+ export interface GetGraphqlApiEnvironmentVariablesCommandOutput extends GetGraphqlApiEnvironmentVariablesResponse, __MetadataBearer {
22
+ }
23
+ declare const GetGraphqlApiEnvironmentVariablesCommand_base: {
24
+ new (input: GetGraphqlApiEnvironmentVariablesCommandInput): import("@smithy/smithy-client").CommandImpl<GetGraphqlApiEnvironmentVariablesCommandInput, GetGraphqlApiEnvironmentVariablesCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { AppSyncClient, GetGraphqlApiEnvironmentVariablesCommand } from "@aws-sdk/client-appsync"; // ES Modules import
34
+ * // const { AppSyncClient, GetGraphqlApiEnvironmentVariablesCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
35
+ * const client = new AppSyncClient(config);
36
+ * const input = { // GetGraphqlApiEnvironmentVariablesRequest
37
+ * apiId: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new GetGraphqlApiEnvironmentVariablesCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetGraphqlApiEnvironmentVariablesResponse
42
+ * // environmentVariables: { // EnvironmentVariableMap
43
+ * // "<keys>": "STRING_VALUE",
44
+ * // },
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetGraphqlApiEnvironmentVariablesCommandInput - {@link GetGraphqlApiEnvironmentVariablesCommandInput}
50
+ * @returns {@link GetGraphqlApiEnvironmentVariablesCommandOutput}
51
+ * @see {@link GetGraphqlApiEnvironmentVariablesCommandInput} for command's `input` shape.
52
+ * @see {@link GetGraphqlApiEnvironmentVariablesCommandOutput} for command's `response` shape.
53
+ * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>You don't have access to perform this operation on this resource.</p>
57
+ *
58
+ * @throws {@link BadRequestException} (client fault)
59
+ * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
60
+ * field values, and then try again.</p>
61
+ *
62
+ * @throws {@link InternalFailureException} (server fault)
63
+ * <p>An internal AppSync error occurred. Try your request again.</p>
64
+ *
65
+ * @throws {@link NotFoundException} (client fault)
66
+ * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
67
+ *
68
+ * @throws {@link UnauthorizedException} (client fault)
69
+ * <p>You aren't authorized to perform this operation.</p>
70
+ *
71
+ * @throws {@link AppSyncServiceException}
72
+ * <p>Base exception class for all service exceptions from AppSync service.</p>
73
+ *
74
+ */
75
+ export declare class GetGraphqlApiEnvironmentVariablesCommand extends GetGraphqlApiEnvironmentVariablesCommand_base {
76
+ }
@@ -0,0 +1,127 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
4
+ import { PutGraphqlApiEnvironmentVariablesRequest, PutGraphqlApiEnvironmentVariablesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link PutGraphqlApiEnvironmentVariablesCommand}.
13
+ */
14
+ export interface PutGraphqlApiEnvironmentVariablesCommandInput extends PutGraphqlApiEnvironmentVariablesRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link PutGraphqlApiEnvironmentVariablesCommand}.
20
+ */
21
+ export interface PutGraphqlApiEnvironmentVariablesCommandOutput extends PutGraphqlApiEnvironmentVariablesResponse, __MetadataBearer {
22
+ }
23
+ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
24
+ new (input: PutGraphqlApiEnvironmentVariablesCommandInput): import("@smithy/smithy-client").CommandImpl<PutGraphqlApiEnvironmentVariablesCommandInput, PutGraphqlApiEnvironmentVariablesCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Creates a list of environmental variables in an API by its ID value. </p>
30
+ * <p>When creating an environmental variable, it must follow the constraints below:</p>
31
+ * <ul>
32
+ * <li>
33
+ * <p>Both JavaScript and VTL templates support environmental variables.</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>Environmental variables are not evaluated before function invocation.</p>
37
+ * </li>
38
+ * <li>
39
+ * <p>Environmental variables only support string values.</p>
40
+ * </li>
41
+ * <li>
42
+ * <p>Any defined value in an environmental variable is considered a string literal and not
43
+ * expanded.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>Variable evaluations should ideally be performed in the function code.</p>
47
+ * </li>
48
+ * </ul>
49
+ * <p>When creating an environmental variable key-value pair, it must follow the additional constraints
50
+ * below:</p>
51
+ * <ul>
52
+ * <li>
53
+ * <p>Keys must begin with a letter.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>Keys must be at least two characters long.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>Keys can only contain letters, numbers, and the underscore character (_).</p>
60
+ * </li>
61
+ * <li>
62
+ * <p>Values can be up to 512 characters long.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>You can configure up to 50 key-value pairs in a GraphQL API.</p>
66
+ * </li>
67
+ * </ul>
68
+ * <p>You can create a list of environmental variables by adding it to the <code>environmentVariables</code>
69
+ * payload as a list in the format <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
70
+ * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
71
+ * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
72
+ * this, you must include all existing and new environmental variables in the list each time you call this
73
+ * action.</p>
74
+ * @example
75
+ * Use a bare-bones client and the command you need to make an API call.
76
+ * ```javascript
77
+ * import { AppSyncClient, PutGraphqlApiEnvironmentVariablesCommand } from "@aws-sdk/client-appsync"; // ES Modules import
78
+ * // const { AppSyncClient, PutGraphqlApiEnvironmentVariablesCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
79
+ * const client = new AppSyncClient(config);
80
+ * const input = { // PutGraphqlApiEnvironmentVariablesRequest
81
+ * apiId: "STRING_VALUE", // required
82
+ * environmentVariables: { // EnvironmentVariableMap // required
83
+ * "<keys>": "STRING_VALUE",
84
+ * },
85
+ * };
86
+ * const command = new PutGraphqlApiEnvironmentVariablesCommand(input);
87
+ * const response = await client.send(command);
88
+ * // { // PutGraphqlApiEnvironmentVariablesResponse
89
+ * // environmentVariables: { // EnvironmentVariableMap
90
+ * // "<keys>": "STRING_VALUE",
91
+ * // },
92
+ * // };
93
+ *
94
+ * ```
95
+ *
96
+ * @param PutGraphqlApiEnvironmentVariablesCommandInput - {@link PutGraphqlApiEnvironmentVariablesCommandInput}
97
+ * @returns {@link PutGraphqlApiEnvironmentVariablesCommandOutput}
98
+ * @see {@link PutGraphqlApiEnvironmentVariablesCommandInput} for command's `input` shape.
99
+ * @see {@link PutGraphqlApiEnvironmentVariablesCommandOutput} for command's `response` shape.
100
+ * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
101
+ *
102
+ * @throws {@link AccessDeniedException} (client fault)
103
+ * <p>You don't have access to perform this operation on this resource.</p>
104
+ *
105
+ * @throws {@link BadRequestException} (client fault)
106
+ * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
107
+ * field values, and then try again.</p>
108
+ *
109
+ * @throws {@link ConcurrentModificationException} (client fault)
110
+ * <p>Another modification is in progress at this time and it must complete before you can make your
111
+ * change.</p>
112
+ *
113
+ * @throws {@link InternalFailureException} (server fault)
114
+ * <p>An internal AppSync error occurred. Try your request again.</p>
115
+ *
116
+ * @throws {@link NotFoundException} (client fault)
117
+ * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
118
+ *
119
+ * @throws {@link UnauthorizedException} (client fault)
120
+ * <p>You aren't authorized to perform this operation.</p>
121
+ *
122
+ * @throws {@link AppSyncServiceException}
123
+ * <p>Base exception class for all service exceptions from AppSync service.</p>
124
+ *
125
+ */
126
+ export declare class PutGraphqlApiEnvironmentVariablesCommand extends PutGraphqlApiEnvironmentVariablesCommand_base {
127
+ }
@@ -30,6 +30,7 @@ export * from "./GetDataSourceIntrospectionCommand";
30
30
  export * from "./GetDomainNameCommand";
31
31
  export * from "./GetFunctionCommand";
32
32
  export * from "./GetGraphqlApiCommand";
33
+ export * from "./GetGraphqlApiEnvironmentVariablesCommand";
33
34
  export * from "./GetIntrospectionSchemaCommand";
34
35
  export * from "./GetResolverCommand";
35
36
  export * from "./GetSchemaCreationStatusCommand";
@@ -46,6 +47,7 @@ export * from "./ListSourceApiAssociationsCommand";
46
47
  export * from "./ListTagsForResourceCommand";
47
48
  export * from "./ListTypesByAssociationCommand";
48
49
  export * from "./ListTypesCommand";
50
+ export * from "./PutGraphqlApiEnvironmentVariablesCommand";
49
51
  export * from "./StartDataSourceIntrospectionCommand";
50
52
  export * from "./StartSchemaCreationCommand";
51
53
  export * from "./StartSchemaMergeCommand";
@@ -3078,6 +3078,26 @@ export interface GetGraphqlApiResponse {
3078
3078
  */
3079
3079
  graphqlApi?: GraphqlApi;
3080
3080
  }
3081
+ /**
3082
+ * @public
3083
+ */
3084
+ export interface GetGraphqlApiEnvironmentVariablesRequest {
3085
+ /**
3086
+ * @public
3087
+ * <p>The ID of the API from which the environmental variable list will be retrieved.</p>
3088
+ */
3089
+ apiId: string | undefined;
3090
+ }
3091
+ /**
3092
+ * @public
3093
+ */
3094
+ export interface GetGraphqlApiEnvironmentVariablesResponse {
3095
+ /**
3096
+ * @public
3097
+ * <p>The payload containing each environmental variable in the <code>"key" : "value"</code> format.</p>
3098
+ */
3099
+ environmentVariables?: Record<string, string>;
3100
+ }
3081
3101
  /**
3082
3102
  * @public
3083
3103
  * @enum
@@ -3733,6 +3753,56 @@ export interface ListTypesByAssociationResponse {
3733
3753
  */
3734
3754
  nextToken?: string;
3735
3755
  }
3756
+ /**
3757
+ * @public
3758
+ */
3759
+ export interface PutGraphqlApiEnvironmentVariablesRequest {
3760
+ /**
3761
+ * @public
3762
+ * <p>The ID of the API to which the environmental variable list will be written.</p>
3763
+ */
3764
+ apiId: string | undefined;
3765
+ /**
3766
+ * @public
3767
+ * <p>The list of environmental variables to add to the API.</p>
3768
+ * <p>When creating an environmental variable key-value pair, it must follow the additional constraints
3769
+ * below:</p>
3770
+ * <ul>
3771
+ * <li>
3772
+ * <p>Keys must begin with a letter.</p>
3773
+ * </li>
3774
+ * <li>
3775
+ * <p>Keys must be at least two characters long.</p>
3776
+ * </li>
3777
+ * <li>
3778
+ * <p>Keys can only contain letters, numbers, and the underscore character (_).</p>
3779
+ * </li>
3780
+ * <li>
3781
+ * <p>Values can be up to 512 characters long.</p>
3782
+ * </li>
3783
+ * <li>
3784
+ * <p>You can configure up to 50 key-value pairs in a GraphQL API.</p>
3785
+ * </li>
3786
+ * </ul>
3787
+ * <p>You can create a list of environmental variables by adding it to the <code>environmentVariables</code>
3788
+ * payload as a list in the format <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
3789
+ * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
3790
+ * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
3791
+ * this, you must include all existing and new environmental variables in the list each time you call this
3792
+ * action.</p>
3793
+ */
3794
+ environmentVariables: Record<string, string> | undefined;
3795
+ }
3796
+ /**
3797
+ * @public
3798
+ */
3799
+ export interface PutGraphqlApiEnvironmentVariablesResponse {
3800
+ /**
3801
+ * @public
3802
+ * <p>The payload containing each environmental variable in the <code>"key" : "value"</code> format.</p>
3803
+ */
3804
+ environmentVariables?: Record<string, string>;
3805
+ }
3736
3806
  /**
3737
3807
  * @public
3738
3808
  * <p>Contains the metadata required to introspect the RDS cluster.</p>
@@ -32,6 +32,7 @@ import { GetDataSourceIntrospectionCommandInput, GetDataSourceIntrospectionComma
32
32
  import { GetDomainNameCommandInput, GetDomainNameCommandOutput } from "../commands/GetDomainNameCommand";
33
33
  import { GetFunctionCommandInput, GetFunctionCommandOutput } from "../commands/GetFunctionCommand";
34
34
  import { GetGraphqlApiCommandInput, GetGraphqlApiCommandOutput } from "../commands/GetGraphqlApiCommand";
35
+ import { GetGraphqlApiEnvironmentVariablesCommandInput, GetGraphqlApiEnvironmentVariablesCommandOutput } from "../commands/GetGraphqlApiEnvironmentVariablesCommand";
35
36
  import { GetIntrospectionSchemaCommandInput, GetIntrospectionSchemaCommandOutput } from "../commands/GetIntrospectionSchemaCommand";
36
37
  import { GetResolverCommandInput, GetResolverCommandOutput } from "../commands/GetResolverCommand";
37
38
  import { GetSchemaCreationStatusCommandInput, GetSchemaCreationStatusCommandOutput } from "../commands/GetSchemaCreationStatusCommand";
@@ -48,6 +49,7 @@ import { ListSourceApiAssociationsCommandInput, ListSourceApiAssociationsCommand
48
49
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
49
50
  import { ListTypesByAssociationCommandInput, ListTypesByAssociationCommandOutput } from "../commands/ListTypesByAssociationCommand";
50
51
  import { ListTypesCommandInput, ListTypesCommandOutput } from "../commands/ListTypesCommand";
52
+ import { PutGraphqlApiEnvironmentVariablesCommandInput, PutGraphqlApiEnvironmentVariablesCommandOutput } from "../commands/PutGraphqlApiEnvironmentVariablesCommand";
51
53
  import { StartDataSourceIntrospectionCommandInput, StartDataSourceIntrospectionCommandOutput } from "../commands/StartDataSourceIntrospectionCommand";
52
54
  import { StartSchemaCreationCommandInput, StartSchemaCreationCommandOutput } from "../commands/StartSchemaCreationCommand";
53
55
  import { StartSchemaMergeCommandInput, StartSchemaMergeCommandOutput } from "../commands/StartSchemaMergeCommand";
@@ -190,6 +192,10 @@ export declare const se_GetFunctionCommand: (input: GetFunctionCommandInput, con
190
192
  * serializeAws_restJson1GetGraphqlApiCommand
191
193
  */
192
194
  export declare const se_GetGraphqlApiCommand: (input: GetGraphqlApiCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
195
+ /**
196
+ * serializeAws_restJson1GetGraphqlApiEnvironmentVariablesCommand
197
+ */
198
+ export declare const se_GetGraphqlApiEnvironmentVariablesCommand: (input: GetGraphqlApiEnvironmentVariablesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
193
199
  /**
194
200
  * serializeAws_restJson1GetIntrospectionSchemaCommand
195
201
  */
@@ -254,6 +260,10 @@ export declare const se_ListTypesCommand: (input: ListTypesCommandInput, context
254
260
  * serializeAws_restJson1ListTypesByAssociationCommand
255
261
  */
256
262
  export declare const se_ListTypesByAssociationCommand: (input: ListTypesByAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
263
+ /**
264
+ * serializeAws_restJson1PutGraphqlApiEnvironmentVariablesCommand
265
+ */
266
+ export declare const se_PutGraphqlApiEnvironmentVariablesCommand: (input: PutGraphqlApiEnvironmentVariablesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
257
267
  /**
258
268
  * serializeAws_restJson1StartDataSourceIntrospectionCommand
259
269
  */
@@ -438,6 +448,10 @@ export declare const de_GetFunctionCommand: (output: __HttpResponse, context: __
438
448
  * deserializeAws_restJson1GetGraphqlApiCommand
439
449
  */
440
450
  export declare const de_GetGraphqlApiCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetGraphqlApiCommandOutput>;
451
+ /**
452
+ * deserializeAws_restJson1GetGraphqlApiEnvironmentVariablesCommand
453
+ */
454
+ export declare const de_GetGraphqlApiEnvironmentVariablesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetGraphqlApiEnvironmentVariablesCommandOutput>;
441
455
  /**
442
456
  * deserializeAws_restJson1GetIntrospectionSchemaCommand
443
457
  */
@@ -502,6 +516,10 @@ export declare const de_ListTypesCommand: (output: __HttpResponse, context: __Se
502
516
  * deserializeAws_restJson1ListTypesByAssociationCommand
503
517
  */
504
518
  export declare const de_ListTypesByAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTypesByAssociationCommandOutput>;
519
+ /**
520
+ * deserializeAws_restJson1PutGraphqlApiEnvironmentVariablesCommand
521
+ */
522
+ export declare const de_PutGraphqlApiEnvironmentVariablesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutGraphqlApiEnvironmentVariablesCommandOutput>;
505
523
  /**
506
524
  * deserializeAws_restJson1StartDataSourceIntrospectionCommand
507
525
  */
@@ -128,6 +128,10 @@ import {
128
128
  GetGraphqlApiCommandInput,
129
129
  GetGraphqlApiCommandOutput,
130
130
  } from "./commands/GetGraphqlApiCommand";
131
+ import {
132
+ GetGraphqlApiEnvironmentVariablesCommandInput,
133
+ GetGraphqlApiEnvironmentVariablesCommandOutput,
134
+ } from "./commands/GetGraphqlApiEnvironmentVariablesCommand";
131
135
  import {
132
136
  GetIntrospectionSchemaCommandInput,
133
137
  GetIntrospectionSchemaCommandOutput,
@@ -192,6 +196,10 @@ import {
192
196
  ListTypesCommandInput,
193
197
  ListTypesCommandOutput,
194
198
  } from "./commands/ListTypesCommand";
199
+ import {
200
+ PutGraphqlApiEnvironmentVariablesCommandInput,
201
+ PutGraphqlApiEnvironmentVariablesCommandOutput,
202
+ } from "./commands/PutGraphqlApiEnvironmentVariablesCommand";
195
203
  import {
196
204
  StartDataSourceIntrospectionCommandInput,
197
205
  StartDataSourceIntrospectionCommandOutput,
@@ -665,6 +673,25 @@ export interface AppSync {
665
673
  options: __HttpHandlerOptions,
666
674
  cb: (err: any, data?: GetGraphqlApiCommandOutput) => void
667
675
  ): void;
676
+ getGraphqlApiEnvironmentVariables(
677
+ args: GetGraphqlApiEnvironmentVariablesCommandInput,
678
+ options?: __HttpHandlerOptions
679
+ ): Promise<GetGraphqlApiEnvironmentVariablesCommandOutput>;
680
+ getGraphqlApiEnvironmentVariables(
681
+ args: GetGraphqlApiEnvironmentVariablesCommandInput,
682
+ cb: (
683
+ err: any,
684
+ data?: GetGraphqlApiEnvironmentVariablesCommandOutput
685
+ ) => void
686
+ ): void;
687
+ getGraphqlApiEnvironmentVariables(
688
+ args: GetGraphqlApiEnvironmentVariablesCommandInput,
689
+ options: __HttpHandlerOptions,
690
+ cb: (
691
+ err: any,
692
+ data?: GetGraphqlApiEnvironmentVariablesCommandOutput
693
+ ) => void
694
+ ): void;
668
695
  getIntrospectionSchema(
669
696
  args: GetIntrospectionSchemaCommandInput,
670
697
  options?: __HttpHandlerOptions
@@ -873,6 +900,25 @@ export interface AppSync {
873
900
  options: __HttpHandlerOptions,
874
901
  cb: (err: any, data?: ListTypesByAssociationCommandOutput) => void
875
902
  ): void;
903
+ putGraphqlApiEnvironmentVariables(
904
+ args: PutGraphqlApiEnvironmentVariablesCommandInput,
905
+ options?: __HttpHandlerOptions
906
+ ): Promise<PutGraphqlApiEnvironmentVariablesCommandOutput>;
907
+ putGraphqlApiEnvironmentVariables(
908
+ args: PutGraphqlApiEnvironmentVariablesCommandInput,
909
+ cb: (
910
+ err: any,
911
+ data?: PutGraphqlApiEnvironmentVariablesCommandOutput
912
+ ) => void
913
+ ): void;
914
+ putGraphqlApiEnvironmentVariables(
915
+ args: PutGraphqlApiEnvironmentVariablesCommandInput,
916
+ options: __HttpHandlerOptions,
917
+ cb: (
918
+ err: any,
919
+ data?: PutGraphqlApiEnvironmentVariablesCommandOutput
920
+ ) => void
921
+ ): void;
876
922
  startDataSourceIntrospection(
877
923
  args: StartDataSourceIntrospectionCommandInput,
878
924
  options?: __HttpHandlerOptions
@@ -173,6 +173,10 @@ import {
173
173
  GetGraphqlApiCommandInput,
174
174
  GetGraphqlApiCommandOutput,
175
175
  } from "./commands/GetGraphqlApiCommand";
176
+ import {
177
+ GetGraphqlApiEnvironmentVariablesCommandInput,
178
+ GetGraphqlApiEnvironmentVariablesCommandOutput,
179
+ } from "./commands/GetGraphqlApiEnvironmentVariablesCommand";
176
180
  import {
177
181
  GetIntrospectionSchemaCommandInput,
178
182
  GetIntrospectionSchemaCommandOutput,
@@ -237,6 +241,10 @@ import {
237
241
  ListTypesCommandInput,
238
242
  ListTypesCommandOutput,
239
243
  } from "./commands/ListTypesCommand";
244
+ import {
245
+ PutGraphqlApiEnvironmentVariablesCommandInput,
246
+ PutGraphqlApiEnvironmentVariablesCommandOutput,
247
+ } from "./commands/PutGraphqlApiEnvironmentVariablesCommand";
240
248
  import {
241
249
  StartDataSourceIntrospectionCommandInput,
242
250
  StartDataSourceIntrospectionCommandOutput,
@@ -333,6 +341,7 @@ export type ServiceInputTypes =
333
341
  | GetDomainNameCommandInput
334
342
  | GetFunctionCommandInput
335
343
  | GetGraphqlApiCommandInput
344
+ | GetGraphqlApiEnvironmentVariablesCommandInput
336
345
  | GetIntrospectionSchemaCommandInput
337
346
  | GetResolverCommandInput
338
347
  | GetSchemaCreationStatusCommandInput
@@ -349,6 +358,7 @@ export type ServiceInputTypes =
349
358
  | ListTagsForResourceCommandInput
350
359
  | ListTypesByAssociationCommandInput
351
360
  | ListTypesCommandInput
361
+ | PutGraphqlApiEnvironmentVariablesCommandInput
352
362
  | StartDataSourceIntrospectionCommandInput
353
363
  | StartSchemaCreationCommandInput
354
364
  | StartSchemaMergeCommandInput
@@ -396,6 +406,7 @@ export type ServiceOutputTypes =
396
406
  | GetDomainNameCommandOutput
397
407
  | GetFunctionCommandOutput
398
408
  | GetGraphqlApiCommandOutput
409
+ | GetGraphqlApiEnvironmentVariablesCommandOutput
399
410
  | GetIntrospectionSchemaCommandOutput
400
411
  | GetResolverCommandOutput
401
412
  | GetSchemaCreationStatusCommandOutput
@@ -412,6 +423,7 @@ export type ServiceOutputTypes =
412
423
  | ListTagsForResourceCommandOutput
413
424
  | ListTypesByAssociationCommandOutput
414
425
  | ListTypesCommandOutput
426
+ | PutGraphqlApiEnvironmentVariablesCommandOutput
415
427
  | StartDataSourceIntrospectionCommandOutput
416
428
  | StartSchemaCreationCommandOutput
417
429
  | StartSchemaMergeCommandOutput
@@ -0,0 +1,30 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AppSyncClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AppSyncClient";
8
+ import {
9
+ GetGraphqlApiEnvironmentVariablesRequest,
10
+ GetGraphqlApiEnvironmentVariablesResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetGraphqlApiEnvironmentVariablesCommandInput
14
+ extends GetGraphqlApiEnvironmentVariablesRequest {}
15
+ export interface GetGraphqlApiEnvironmentVariablesCommandOutput
16
+ extends GetGraphqlApiEnvironmentVariablesResponse,
17
+ __MetadataBearer {}
18
+ declare const GetGraphqlApiEnvironmentVariablesCommand_base: {
19
+ new (
20
+ input: GetGraphqlApiEnvironmentVariablesCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetGraphqlApiEnvironmentVariablesCommandInput,
23
+ GetGraphqlApiEnvironmentVariablesCommandOutput,
24
+ AppSyncClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class GetGraphqlApiEnvironmentVariablesCommand extends GetGraphqlApiEnvironmentVariablesCommand_base {}
@@ -0,0 +1,30 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AppSyncClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AppSyncClient";
8
+ import {
9
+ PutGraphqlApiEnvironmentVariablesRequest,
10
+ PutGraphqlApiEnvironmentVariablesResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface PutGraphqlApiEnvironmentVariablesCommandInput
14
+ extends PutGraphqlApiEnvironmentVariablesRequest {}
15
+ export interface PutGraphqlApiEnvironmentVariablesCommandOutput
16
+ extends PutGraphqlApiEnvironmentVariablesResponse,
17
+ __MetadataBearer {}
18
+ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
19
+ new (
20
+ input: PutGraphqlApiEnvironmentVariablesCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ PutGraphqlApiEnvironmentVariablesCommandInput,
23
+ PutGraphqlApiEnvironmentVariablesCommandOutput,
24
+ AppSyncClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class PutGraphqlApiEnvironmentVariablesCommand extends PutGraphqlApiEnvironmentVariablesCommand_base {}
@@ -30,6 +30,7 @@ export * from "./GetDataSourceIntrospectionCommand";
30
30
  export * from "./GetDomainNameCommand";
31
31
  export * from "./GetFunctionCommand";
32
32
  export * from "./GetGraphqlApiCommand";
33
+ export * from "./GetGraphqlApiEnvironmentVariablesCommand";
33
34
  export * from "./GetIntrospectionSchemaCommand";
34
35
  export * from "./GetResolverCommand";
35
36
  export * from "./GetSchemaCreationStatusCommand";
@@ -46,6 +47,7 @@ export * from "./ListSourceApiAssociationsCommand";
46
47
  export * from "./ListTagsForResourceCommand";
47
48
  export * from "./ListTypesByAssociationCommand";
48
49
  export * from "./ListTypesCommand";
50
+ export * from "./PutGraphqlApiEnvironmentVariablesCommand";
49
51
  export * from "./StartDataSourceIntrospectionCommand";
50
52
  export * from "./StartSchemaCreationCommand";
51
53
  export * from "./StartSchemaMergeCommand";
@@ -732,6 +732,12 @@ export interface GetGraphqlApiRequest {
732
732
  export interface GetGraphqlApiResponse {
733
733
  graphqlApi?: GraphqlApi;
734
734
  }
735
+ export interface GetGraphqlApiEnvironmentVariablesRequest {
736
+ apiId: string | undefined;
737
+ }
738
+ export interface GetGraphqlApiEnvironmentVariablesResponse {
739
+ environmentVariables?: Record<string, string>;
740
+ }
735
741
  export declare const OutputType: {
736
742
  readonly JSON: "JSON";
737
743
  readonly SDL: "SDL";
@@ -906,6 +912,13 @@ export interface ListTypesByAssociationResponse {
906
912
  types?: Type[];
907
913
  nextToken?: string;
908
914
  }
915
+ export interface PutGraphqlApiEnvironmentVariablesRequest {
916
+ apiId: string | undefined;
917
+ environmentVariables: Record<string, string> | undefined;
918
+ }
919
+ export interface PutGraphqlApiEnvironmentVariablesResponse {
920
+ environmentVariables?: Record<string, string>;
921
+ }
909
922
  export interface RdsDataApiConfig {
910
923
  resourceArn: string | undefined;
911
924
  secretArn: string | undefined;
@@ -131,6 +131,10 @@ import {
131
131
  GetGraphqlApiCommandInput,
132
132
  GetGraphqlApiCommandOutput,
133
133
  } from "../commands/GetGraphqlApiCommand";
134
+ import {
135
+ GetGraphqlApiEnvironmentVariablesCommandInput,
136
+ GetGraphqlApiEnvironmentVariablesCommandOutput,
137
+ } from "../commands/GetGraphqlApiEnvironmentVariablesCommand";
134
138
  import {
135
139
  GetIntrospectionSchemaCommandInput,
136
140
  GetIntrospectionSchemaCommandOutput,
@@ -195,6 +199,10 @@ import {
195
199
  ListTypesCommandInput,
196
200
  ListTypesCommandOutput,
197
201
  } from "../commands/ListTypesCommand";
202
+ import {
203
+ PutGraphqlApiEnvironmentVariablesCommandInput,
204
+ PutGraphqlApiEnvironmentVariablesCommandOutput,
205
+ } from "../commands/PutGraphqlApiEnvironmentVariablesCommand";
198
206
  import {
199
207
  StartDataSourceIntrospectionCommandInput,
200
208
  StartDataSourceIntrospectionCommandOutput,
@@ -379,6 +387,10 @@ export declare const se_GetGraphqlApiCommand: (
379
387
  input: GetGraphqlApiCommandInput,
380
388
  context: __SerdeContext
381
389
  ) => Promise<__HttpRequest>;
390
+ export declare const se_GetGraphqlApiEnvironmentVariablesCommand: (
391
+ input: GetGraphqlApiEnvironmentVariablesCommandInput,
392
+ context: __SerdeContext
393
+ ) => Promise<__HttpRequest>;
382
394
  export declare const se_GetIntrospectionSchemaCommand: (
383
395
  input: GetIntrospectionSchemaCommandInput,
384
396
  context: __SerdeContext
@@ -443,6 +455,10 @@ export declare const se_ListTypesByAssociationCommand: (
443
455
  input: ListTypesByAssociationCommandInput,
444
456
  context: __SerdeContext
445
457
  ) => Promise<__HttpRequest>;
458
+ export declare const se_PutGraphqlApiEnvironmentVariablesCommand: (
459
+ input: PutGraphqlApiEnvironmentVariablesCommandInput,
460
+ context: __SerdeContext
461
+ ) => Promise<__HttpRequest>;
446
462
  export declare const se_StartDataSourceIntrospectionCommand: (
447
463
  input: StartDataSourceIntrospectionCommandInput,
448
464
  context: __SerdeContext
@@ -627,6 +643,10 @@ export declare const de_GetGraphqlApiCommand: (
627
643
  output: __HttpResponse,
628
644
  context: __SerdeContext
629
645
  ) => Promise<GetGraphqlApiCommandOutput>;
646
+ export declare const de_GetGraphqlApiEnvironmentVariablesCommand: (
647
+ output: __HttpResponse,
648
+ context: __SerdeContext
649
+ ) => Promise<GetGraphqlApiEnvironmentVariablesCommandOutput>;
630
650
  export declare const de_GetIntrospectionSchemaCommand: (
631
651
  output: __HttpResponse,
632
652
  context: __SerdeContext
@@ -691,6 +711,10 @@ export declare const de_ListTypesByAssociationCommand: (
691
711
  output: __HttpResponse,
692
712
  context: __SerdeContext
693
713
  ) => Promise<ListTypesByAssociationCommandOutput>;
714
+ export declare const de_PutGraphqlApiEnvironmentVariablesCommand: (
715
+ output: __HttpResponse,
716
+ context: __SerdeContext
717
+ ) => Promise<PutGraphqlApiEnvironmentVariablesCommandOutput>;
694
718
  export declare const de_StartDataSourceIntrospectionCommand: (
695
719
  output: __HttpResponse,
696
720
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appsync",
3
3
  "description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
4
- "version": "3.507.0",
4
+ "version": "3.509.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appsync",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
23
  "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.507.0",
25
+ "@aws-sdk/credential-provider-node": "3.509.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",