@aws-sdk/client-appsync 3.511.0 → 3.513.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/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/index.js +109 -7
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/AppSyncClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/protocols/Aws_restJson1.js +8 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/AppSyncClient.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateApiCacheCommand.d.ts +2 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +4 -0
- package/dist-types/commands/CreateGraphqlApiCommand.d.ts +10 -0
- package/dist-types/commands/CreateResolverCommand.d.ts +2 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
- package/dist-types/commands/GetApiCacheCommand.d.ts +1 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -0
- package/dist-types/commands/GetGraphqlApiCommand.d.ts +5 -0
- package/dist-types/commands/GetResolverCommand.d.ts +1 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -0
- package/dist-types/commands/ListGraphqlApisCommand.d.ts +5 -0
- package/dist-types/commands/ListResolversByFunctionCommand.d.ts +1 -0
- package/dist-types/commands/ListResolversCommand.d.ts +1 -0
- package/dist-types/commands/PutGraphqlApiEnvironmentVariablesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateApiCacheCommand.d.ts +2 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +4 -0
- package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +10 -0
- package/dist-types/commands/UpdateResolverCommand.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +387 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +53 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +7 -7
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
-
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
2
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
3
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
4
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
6
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
11
10
|
import { AssociateApiCommandInput, AssociateApiCommandOutput } from "./commands/AssociateApiCommand";
|
|
12
11
|
import { AssociateMergedGraphqlApiCommandInput, AssociateMergedGraphqlApiCommandOutput } from "./commands/AssociateMergedGraphqlApiCommand";
|
|
13
12
|
import { AssociateSourceGraphqlApiCommandInput, AssociateSourceGraphqlApiCommandOutput } from "./commands/AssociateSourceGraphqlApiCommand";
|
|
@@ -155,20 +154,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
155
154
|
* Enables FIPS compatible endpoints.
|
|
156
155
|
*/
|
|
157
156
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
157
|
+
/**
|
|
158
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
158
162
|
/**
|
|
159
163
|
* The AWS region to which this client will send requests
|
|
160
164
|
*/
|
|
161
165
|
region?: string | __Provider<string>;
|
|
162
166
|
/**
|
|
163
167
|
* Default credentials provider; Not available in browser runtime.
|
|
168
|
+
* @deprecated
|
|
164
169
|
* @internal
|
|
165
170
|
*/
|
|
166
|
-
credentialDefaultProvider?: (input: any) =>
|
|
167
|
-
/**
|
|
168
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
171
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
172
172
|
/**
|
|
173
173
|
* Value for how many times a request will be made at most in case of retry.
|
|
174
174
|
*/
|
|
@@ -195,7 +195,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
195
195
|
/**
|
|
196
196
|
* @public
|
|
197
197
|
*/
|
|
198
|
-
export type AppSyncClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig &
|
|
198
|
+
export type AppSyncClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
199
199
|
/**
|
|
200
200
|
* @public
|
|
201
201
|
*
|
|
@@ -206,7 +206,7 @@ export interface AppSyncClientConfig extends AppSyncClientConfigType {
|
|
|
206
206
|
/**
|
|
207
207
|
* @public
|
|
208
208
|
*/
|
|
209
|
-
export type AppSyncClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig &
|
|
209
|
+
export type AppSyncClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
210
210
|
/**
|
|
211
211
|
* @public
|
|
212
212
|
*
|
|
@@ -231,4 +231,6 @@ export declare class AppSyncClient extends __Client<__HttpHandlerOptions, Servic
|
|
|
231
231
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
232
232
|
*/
|
|
233
233
|
destroy(): void;
|
|
234
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
235
|
+
private getIdentityProviderConfigProvider;
|
|
234
236
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { AppSyncHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: AppSyncHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): AppSyncHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: AppSyncHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
import { AppSyncClientResolvedConfig } from "../AppSyncClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface AppSyncHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface AppSyncHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<AppSyncClientResolvedConfig, HandlerExecutionContext, AppSyncHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultAppSyncHttpAuthSchemeParametersProvider: (config: AppSyncClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<AppSyncHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface AppSyncHttpAuthSchemeProvider extends HttpAuthSchemeProvider<AppSyncHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultAppSyncHttpAuthSchemeProvider: AppSyncHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: AppSyncHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
|
+
/**
|
|
53
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: AppSyncHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -40,6 +40,7 @@ declare const CreateApiCacheCommand_base: {
|
|
|
40
40
|
* atRestEncryptionEnabled: true || false,
|
|
41
41
|
* apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING", // required
|
|
42
42
|
* type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X", // required
|
|
43
|
+
* healthMetricsConfig: "ENABLED" || "DISABLED",
|
|
43
44
|
* };
|
|
44
45
|
* const command = new CreateApiCacheCommand(input);
|
|
45
46
|
* const response = await client.send(command);
|
|
@@ -51,6 +52,7 @@ declare const CreateApiCacheCommand_base: {
|
|
|
51
52
|
* // atRestEncryptionEnabled: true || false,
|
|
52
53
|
* // type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X",
|
|
53
54
|
* // status: "AVAILABLE" || "CREATING" || "DELETING" || "MODIFYING" || "FAILED",
|
|
55
|
+
* // healthMetricsConfig: "ENABLED" || "DISABLED",
|
|
54
56
|
* // },
|
|
55
57
|
* // };
|
|
56
58
|
*
|
|
@@ -84,6 +84,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
84
84
|
* eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
85
85
|
* eventBusArn: "STRING_VALUE", // required
|
|
86
86
|
* },
|
|
87
|
+
* metricsConfig: "ENABLED" || "DISABLED",
|
|
87
88
|
* };
|
|
88
89
|
* const command = new CreateDataSourceCommand(input);
|
|
89
90
|
* const response = await client.send(command);
|
|
@@ -139,6 +140,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
139
140
|
* // eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
140
141
|
* // eventBusArn: "STRING_VALUE", // required
|
|
141
142
|
* // },
|
|
143
|
+
* // metricsConfig: "ENABLED" || "DISABLED",
|
|
142
144
|
* // },
|
|
143
145
|
* // };
|
|
144
146
|
*
|
|
@@ -92,6 +92,10 @@ declare const CreateFunctionCommand_base: {
|
|
|
92
92
|
* @see {@link CreateFunctionCommandOutput} for command's `response` shape.
|
|
93
93
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
94
94
|
*
|
|
95
|
+
* @throws {@link BadRequestException} (client fault)
|
|
96
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
|
|
97
|
+
* field values, and then try again.</p>
|
|
98
|
+
*
|
|
95
99
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
96
100
|
* <p>Another modification is in progress at this time and it must complete before you can make your
|
|
97
101
|
* change.</p>
|
|
@@ -90,6 +90,11 @@ declare const CreateGraphqlApiCommand_base: {
|
|
|
90
90
|
* introspectionConfig: "ENABLED" || "DISABLED",
|
|
91
91
|
* queryDepthLimit: Number("int"),
|
|
92
92
|
* resolverCountLimit: Number("int"),
|
|
93
|
+
* enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
94
|
+
* resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
95
|
+
* dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
96
|
+
* operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
97
|
+
* },
|
|
93
98
|
* };
|
|
94
99
|
* const command = new CreateGraphqlApiCommand(input);
|
|
95
100
|
* const response = await client.send(command);
|
|
@@ -161,6 +166,11 @@ declare const CreateGraphqlApiCommand_base: {
|
|
|
161
166
|
* // introspectionConfig: "ENABLED" || "DISABLED",
|
|
162
167
|
* // queryDepthLimit: Number("int"),
|
|
163
168
|
* // resolverCountLimit: Number("int"),
|
|
169
|
+
* // enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
170
|
+
* // resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
171
|
+
* // dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
172
|
+
* // operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
173
|
+
* // },
|
|
164
174
|
* // },
|
|
165
175
|
* // };
|
|
166
176
|
*
|
|
@@ -67,6 +67,7 @@ declare const CreateResolverCommand_base: {
|
|
|
67
67
|
* runtimeVersion: "STRING_VALUE", // required
|
|
68
68
|
* },
|
|
69
69
|
* code: "STRING_VALUE",
|
|
70
|
+
* metricsConfig: "ENABLED" || "DISABLED",
|
|
70
71
|
* };
|
|
71
72
|
* const command = new CreateResolverCommand(input);
|
|
72
73
|
* const response = await client.send(command);
|
|
@@ -103,6 +104,7 @@ declare const CreateResolverCommand_base: {
|
|
|
103
104
|
* // runtimeVersion: "STRING_VALUE", // required
|
|
104
105
|
* // },
|
|
105
106
|
* // code: "STRING_VALUE",
|
|
107
|
+
* // metricsConfig: "ENABLED" || "DISABLED",
|
|
106
108
|
* // },
|
|
107
109
|
* // };
|
|
108
110
|
*
|
|
@@ -49,6 +49,10 @@ declare const DeleteFunctionCommand_base: {
|
|
|
49
49
|
* @see {@link DeleteFunctionCommandOutput} for command's `response` shape.
|
|
50
50
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
51
51
|
*
|
|
52
|
+
* @throws {@link BadRequestException} (client fault)
|
|
53
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
|
|
54
|
+
* field values, and then try again.</p>
|
|
55
|
+
*
|
|
52
56
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
53
57
|
* <p>Another modification is in progress at this time and it must complete before you can make your
|
|
54
58
|
* change.</p>
|
|
@@ -46,6 +46,7 @@ declare const GetApiCacheCommand_base: {
|
|
|
46
46
|
* // atRestEncryptionEnabled: true || false,
|
|
47
47
|
* // type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X",
|
|
48
48
|
* // status: "AVAILABLE" || "CREATING" || "DELETING" || "MODIFYING" || "FAILED",
|
|
49
|
+
* // healthMetricsConfig: "ENABLED" || "DISABLED",
|
|
49
50
|
* // },
|
|
50
51
|
* // };
|
|
51
52
|
*
|
|
@@ -106,6 +106,11 @@ declare const GetGraphqlApiCommand_base: {
|
|
|
106
106
|
* // introspectionConfig: "ENABLED" || "DISABLED",
|
|
107
107
|
* // queryDepthLimit: Number("int"),
|
|
108
108
|
* // resolverCountLimit: Number("int"),
|
|
109
|
+
* // enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
110
|
+
* // resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
111
|
+
* // dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
112
|
+
* // operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
113
|
+
* // },
|
|
109
114
|
* // },
|
|
110
115
|
* // };
|
|
111
116
|
*
|
|
@@ -93,6 +93,7 @@ declare const ListDataSourcesCommand_base: {
|
|
|
93
93
|
* // eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
94
94
|
* // eventBusArn: "STRING_VALUE", // required
|
|
95
95
|
* // },
|
|
96
|
+
* // metricsConfig: "ENABLED" || "DISABLED",
|
|
96
97
|
* // },
|
|
97
98
|
* // ],
|
|
98
99
|
* // nextToken: "STRING_VALUE",
|
|
@@ -110,6 +110,11 @@ declare const ListGraphqlApisCommand_base: {
|
|
|
110
110
|
* // introspectionConfig: "ENABLED" || "DISABLED",
|
|
111
111
|
* // queryDepthLimit: Number("int"),
|
|
112
112
|
* // resolverCountLimit: Number("int"),
|
|
113
|
+
* // enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
114
|
+
* // resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
115
|
+
* // dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
116
|
+
* // operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
117
|
+
* // },
|
|
113
118
|
* // },
|
|
114
119
|
* // ],
|
|
115
120
|
* // nextToken: "STRING_VALUE",
|
|
@@ -67,7 +67,7 @@ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
|
|
|
67
67
|
* </ul>
|
|
68
68
|
* <p>You can create a list of environmental variables by adding it to the <code>environmentVariables</code>
|
|
69
69
|
* payload as a list in the format <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
|
|
70
|
-
*
|
|
70
|
+
* <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
|
|
71
71
|
* environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
|
|
72
72
|
* this, you must include all existing and new environmental variables in the list each time you call this
|
|
73
73
|
* action.</p>
|
|
@@ -38,6 +38,7 @@ declare const UpdateApiCacheCommand_base: {
|
|
|
38
38
|
* ttl: Number("long"), // required
|
|
39
39
|
* apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING", // required
|
|
40
40
|
* type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X", // required
|
|
41
|
+
* healthMetricsConfig: "ENABLED" || "DISABLED",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new UpdateApiCacheCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -49,6 +50,7 @@ declare const UpdateApiCacheCommand_base: {
|
|
|
49
50
|
* // atRestEncryptionEnabled: true || false,
|
|
50
51
|
* // type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X",
|
|
51
52
|
* // status: "AVAILABLE" || "CREATING" || "DELETING" || "MODIFYING" || "FAILED",
|
|
53
|
+
* // healthMetricsConfig: "ENABLED" || "DISABLED",
|
|
52
54
|
* // },
|
|
53
55
|
* // };
|
|
54
56
|
*
|
|
@@ -84,6 +84,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
84
84
|
* eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
85
85
|
* eventBusArn: "STRING_VALUE", // required
|
|
86
86
|
* },
|
|
87
|
+
* metricsConfig: "ENABLED" || "DISABLED",
|
|
87
88
|
* };
|
|
88
89
|
* const command = new UpdateDataSourceCommand(input);
|
|
89
90
|
* const response = await client.send(command);
|
|
@@ -139,6 +140,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
139
140
|
* // eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
140
141
|
* // eventBusArn: "STRING_VALUE", // required
|
|
141
142
|
* // },
|
|
143
|
+
* // metricsConfig: "ENABLED" || "DISABLED",
|
|
142
144
|
* // },
|
|
143
145
|
* // };
|
|
144
146
|
*
|
|
@@ -92,6 +92,10 @@ declare const UpdateFunctionCommand_base: {
|
|
|
92
92
|
* @see {@link UpdateFunctionCommandOutput} for command's `response` shape.
|
|
93
93
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
94
94
|
*
|
|
95
|
+
* @throws {@link BadRequestException} (client fault)
|
|
96
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
|
|
97
|
+
* field values, and then try again.</p>
|
|
98
|
+
*
|
|
95
99
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
96
100
|
* <p>Another modification is in progress at this time and it must complete before you can make your
|
|
97
101
|
* change.</p>
|
|
@@ -86,6 +86,11 @@ declare const UpdateGraphqlApiCommand_base: {
|
|
|
86
86
|
* introspectionConfig: "ENABLED" || "DISABLED",
|
|
87
87
|
* queryDepthLimit: Number("int"),
|
|
88
88
|
* resolverCountLimit: Number("int"),
|
|
89
|
+
* enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
90
|
+
* resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
91
|
+
* dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
92
|
+
* operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
93
|
+
* },
|
|
89
94
|
* };
|
|
90
95
|
* const command = new UpdateGraphqlApiCommand(input);
|
|
91
96
|
* const response = await client.send(command);
|
|
@@ -157,6 +162,11 @@ declare const UpdateGraphqlApiCommand_base: {
|
|
|
157
162
|
* // introspectionConfig: "ENABLED" || "DISABLED",
|
|
158
163
|
* // queryDepthLimit: Number("int"),
|
|
159
164
|
* // resolverCountLimit: Number("int"),
|
|
165
|
+
* // enhancedMetricsConfig: { // EnhancedMetricsConfig
|
|
166
|
+
* // resolverLevelMetricsBehavior: "FULL_REQUEST_RESOLVER_METRICS" || "PER_RESOLVER_METRICS", // required
|
|
167
|
+
* // dataSourceLevelMetricsBehavior: "FULL_REQUEST_DATA_SOURCE_METRICS" || "PER_DATA_SOURCE_METRICS", // required
|
|
168
|
+
* // operationLevelMetricsConfig: "ENABLED" || "DISABLED", // required
|
|
169
|
+
* // },
|
|
160
170
|
* // },
|
|
161
171
|
* // };
|
|
162
172
|
*
|
|
@@ -65,6 +65,7 @@ declare const UpdateResolverCommand_base: {
|
|
|
65
65
|
* runtimeVersion: "STRING_VALUE", // required
|
|
66
66
|
* },
|
|
67
67
|
* code: "STRING_VALUE",
|
|
68
|
+
* metricsConfig: "ENABLED" || "DISABLED",
|
|
68
69
|
* };
|
|
69
70
|
* const command = new UpdateResolverCommand(input);
|
|
70
71
|
* const response = await client.send(command);
|
|
@@ -101,6 +102,7 @@ declare const UpdateResolverCommand_base: {
|
|
|
101
102
|
* // runtimeVersion: "STRING_VALUE", // required
|
|
102
103
|
* // },
|
|
103
104
|
* // code: "STRING_VALUE",
|
|
105
|
+
* // metricsConfig: "ENABLED" || "DISABLED",
|
|
104
106
|
* // },
|
|
105
107
|
* // };
|
|
106
108
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
|
-
export interface AppSyncExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
export interface AppSyncExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
9
|
}
|