@aws-sdk/client-appsync 3.504.0 → 3.508.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.
@@ -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 {}