@aws-sdk/client-security-ir 3.703.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/LICENSE +201 -0
- package/README.md +381 -0
- package/dist-cjs/SecurityIR.js +55 -0
- package/dist-cjs/SecurityIRClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/BatchGetMemberAccountDetailsCommand.js +26 -0
- package/dist-cjs/commands/CancelMembershipCommand.js +26 -0
- package/dist-cjs/commands/CloseCaseCommand.js +26 -0
- package/dist-cjs/commands/CreateCaseCommand.js +27 -0
- package/dist-cjs/commands/CreateCaseCommentCommand.js +27 -0
- package/dist-cjs/commands/CreateMembershipCommand.js +27 -0
- package/dist-cjs/commands/GetCaseAttachmentDownloadUrlCommand.js +27 -0
- package/dist-cjs/commands/GetCaseAttachmentUploadUrlCommand.js +27 -0
- package/dist-cjs/commands/GetCaseCommand.js +27 -0
- package/dist-cjs/commands/GetMembershipCommand.js +27 -0
- package/dist-cjs/commands/ListCaseEditsCommand.js +26 -0
- package/dist-cjs/commands/ListCasesCommand.js +27 -0
- package/dist-cjs/commands/ListCommentsCommand.js +27 -0
- package/dist-cjs/commands/ListMembershipsCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateCaseCommand.js +27 -0
- package/dist-cjs/commands/UpdateCaseCommentCommand.js +27 -0
- package/dist-cjs/commands/UpdateCaseStatusCommand.js +26 -0
- package/dist-cjs/commands/UpdateMembershipCommand.js +27 -0
- package/dist-cjs/commands/UpdateResolverTypeCommand.js +26 -0
- package/dist-cjs/commands/index.js +25 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SecurityIRServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +373 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCaseEditsPaginator.js +7 -0
- package/dist-cjs/pagination/ListCasesPaginator.js +7 -0
- package/dist-cjs/pagination/ListCommentsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMembershipsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +956 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/SecurityIR.js +51 -0
- package/dist-es/SecurityIRClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/BatchGetMemberAccountDetailsCommand.js +22 -0
- package/dist-es/commands/CancelMembershipCommand.js +22 -0
- package/dist-es/commands/CloseCaseCommand.js +22 -0
- package/dist-es/commands/CreateCaseCommand.js +23 -0
- package/dist-es/commands/CreateCaseCommentCommand.js +23 -0
- package/dist-es/commands/CreateMembershipCommand.js +23 -0
- package/dist-es/commands/GetCaseAttachmentDownloadUrlCommand.js +23 -0
- package/dist-es/commands/GetCaseAttachmentUploadUrlCommand.js +23 -0
- package/dist-es/commands/GetCaseCommand.js +23 -0
- package/dist-es/commands/GetMembershipCommand.js +23 -0
- package/dist-es/commands/ListCaseEditsCommand.js +22 -0
- package/dist-es/commands/ListCasesCommand.js +23 -0
- package/dist-es/commands/ListCommentsCommand.js +23 -0
- package/dist-es/commands/ListMembershipsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateCaseCommand.js +23 -0
- package/dist-es/commands/UpdateCaseCommentCommand.js +23 -0
- package/dist-es/commands/UpdateCaseStatusCommand.js +22 -0
- package/dist-es/commands/UpdateMembershipCommand.js +23 -0
- package/dist-es/commands/UpdateResolverTypeCommand.js +22 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SecurityIRServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +341 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCaseEditsPaginator.js +4 -0
- package/dist-es/pagination/ListCasesPaginator.js +4 -0
- package/dist-es/pagination/ListCommentsPaginator.js +4 -0
- package/dist-es/pagination/ListMembershipsPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +909 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/SecurityIR.d.ts +166 -0
- package/dist-types/SecurityIRClient.d.ts +191 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/BatchGetMemberAccountDetailsCommand.d.ts +114 -0
- package/dist-types/commands/CancelMembershipCommand.d.ts +98 -0
- package/dist-types/commands/CloseCaseCommand.d.ts +99 -0
- package/dist-types/commands/CreateCaseCommand.d.ts +130 -0
- package/dist-types/commands/CreateCaseCommentCommand.d.ts +100 -0
- package/dist-types/commands/CreateMembershipCommand.d.ts +115 -0
- package/dist-types/commands/GetCaseAttachmentDownloadUrlCommand.d.ts +99 -0
- package/dist-types/commands/GetCaseAttachmentUploadUrlCommand.d.ts +101 -0
- package/dist-types/commands/GetCaseCommand.d.ts +143 -0
- package/dist-types/commands/GetMembershipCommand.d.ts +120 -0
- package/dist-types/commands/ListCaseEditsCommand.d.ts +109 -0
- package/dist-types/commands/ListCasesCommand.d.ts +114 -0
- package/dist-types/commands/ListCommentsCommand.d.ts +111 -0
- package/dist-types/commands/ListMembershipsCommand.d.ts +108 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +100 -0
- package/dist-types/commands/TagResourceCommand.d.ts +99 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +99 -0
- package/dist-types/commands/UpdateCaseCommand.d.ts +149 -0
- package/dist-types/commands/UpdateCaseCommentCommand.d.ts +101 -0
- package/dist-types/commands/UpdateCaseStatusCommand.d.ts +101 -0
- package/dist-types/commands/UpdateMembershipCommand.d.ts +110 -0
- package/dist-types/commands/UpdateResolverTypeCommand.d.ts +105 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/SecurityIRServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1734 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListCaseEditsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCommentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMembershipsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +200 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/SecurityIR.d.ts +383 -0
- package/dist-types/ts3.4/SecurityIRClient.d.ts +250 -0
- 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/commands/BatchGetMemberAccountDetailsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CloseCaseCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateCaseCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateCaseCommentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetCaseAttachmentDownloadUrlCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCaseAttachmentUploadUrlCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCaseCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListCaseEditsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListCasesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListCommentsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCaseCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCaseCommentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCaseStatusCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateResolverTypeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/SecurityIRServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +552 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCaseEditsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCommentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +269 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +103 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
34
|
+
retryMode: config?.retryMode ??
|
|
35
|
+
loadNodeConfig({
|
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
+
}),
|
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
5
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultSecurityIRHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2018-05-10",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
15
|
+
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSecurityIRHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
25
|
+
serviceId: config?.serviceId ?? "Security IR",
|
|
26
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
27
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
28
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
const asPartial = (t) => t;
|
|
6
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
+
};
|
|
13
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
+
return {
|
|
15
|
+
...runtimeConfig,
|
|
16
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { BatchGetMemberAccountDetailsCommandInput, BatchGetMemberAccountDetailsCommandOutput } from "./commands/BatchGetMemberAccountDetailsCommand";
|
|
3
|
+
import { CancelMembershipCommandInput, CancelMembershipCommandOutput } from "./commands/CancelMembershipCommand";
|
|
4
|
+
import { CloseCaseCommandInput, CloseCaseCommandOutput } from "./commands/CloseCaseCommand";
|
|
5
|
+
import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/CreateCaseCommand";
|
|
6
|
+
import { CreateCaseCommentCommandInput, CreateCaseCommentCommandOutput } from "./commands/CreateCaseCommentCommand";
|
|
7
|
+
import { CreateMembershipCommandInput, CreateMembershipCommandOutput } from "./commands/CreateMembershipCommand";
|
|
8
|
+
import { GetCaseAttachmentDownloadUrlCommandInput, GetCaseAttachmentDownloadUrlCommandOutput } from "./commands/GetCaseAttachmentDownloadUrlCommand";
|
|
9
|
+
import { GetCaseAttachmentUploadUrlCommandInput, GetCaseAttachmentUploadUrlCommandOutput } from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
10
|
+
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
11
|
+
import { GetMembershipCommandInput, GetMembershipCommandOutput } from "./commands/GetMembershipCommand";
|
|
12
|
+
import { ListCaseEditsCommandInput, ListCaseEditsCommandOutput } from "./commands/ListCaseEditsCommand";
|
|
13
|
+
import { ListCasesCommandInput, ListCasesCommandOutput } from "./commands/ListCasesCommand";
|
|
14
|
+
import { ListCommentsCommandInput, ListCommentsCommandOutput } from "./commands/ListCommentsCommand";
|
|
15
|
+
import { ListMembershipsCommandInput, ListMembershipsCommandOutput } from "./commands/ListMembershipsCommand";
|
|
16
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
17
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
18
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
19
|
+
import { UpdateCaseCommandInput, UpdateCaseCommandOutput } from "./commands/UpdateCaseCommand";
|
|
20
|
+
import { UpdateCaseCommentCommandInput, UpdateCaseCommentCommandOutput } from "./commands/UpdateCaseCommentCommand";
|
|
21
|
+
import { UpdateCaseStatusCommandInput, UpdateCaseStatusCommandOutput } from "./commands/UpdateCaseStatusCommand";
|
|
22
|
+
import { UpdateMembershipCommandInput, UpdateMembershipCommandOutput } from "./commands/UpdateMembershipCommand";
|
|
23
|
+
import { UpdateResolverTypeCommandInput, UpdateResolverTypeCommandOutput } from "./commands/UpdateResolverTypeCommand";
|
|
24
|
+
import { SecurityIRClient } from "./SecurityIRClient";
|
|
25
|
+
export interface SecurityIR {
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link BatchGetMemberAccountDetailsCommand}
|
|
28
|
+
*/
|
|
29
|
+
batchGetMemberAccountDetails(args: BatchGetMemberAccountDetailsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetMemberAccountDetailsCommandOutput>;
|
|
30
|
+
batchGetMemberAccountDetails(args: BatchGetMemberAccountDetailsCommandInput, cb: (err: any, data?: BatchGetMemberAccountDetailsCommandOutput) => void): void;
|
|
31
|
+
batchGetMemberAccountDetails(args: BatchGetMemberAccountDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetMemberAccountDetailsCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link CancelMembershipCommand}
|
|
34
|
+
*/
|
|
35
|
+
cancelMembership(args: CancelMembershipCommandInput, options?: __HttpHandlerOptions): Promise<CancelMembershipCommandOutput>;
|
|
36
|
+
cancelMembership(args: CancelMembershipCommandInput, cb: (err: any, data?: CancelMembershipCommandOutput) => void): void;
|
|
37
|
+
cancelMembership(args: CancelMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelMembershipCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link CloseCaseCommand}
|
|
40
|
+
*/
|
|
41
|
+
closeCase(args: CloseCaseCommandInput, options?: __HttpHandlerOptions): Promise<CloseCaseCommandOutput>;
|
|
42
|
+
closeCase(args: CloseCaseCommandInput, cb: (err: any, data?: CloseCaseCommandOutput) => void): void;
|
|
43
|
+
closeCase(args: CloseCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CloseCaseCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link CreateCaseCommand}
|
|
46
|
+
*/
|
|
47
|
+
createCase(args: CreateCaseCommandInput, options?: __HttpHandlerOptions): Promise<CreateCaseCommandOutput>;
|
|
48
|
+
createCase(args: CreateCaseCommandInput, cb: (err: any, data?: CreateCaseCommandOutput) => void): void;
|
|
49
|
+
createCase(args: CreateCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCaseCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link CreateCaseCommentCommand}
|
|
52
|
+
*/
|
|
53
|
+
createCaseComment(args: CreateCaseCommentCommandInput, options?: __HttpHandlerOptions): Promise<CreateCaseCommentCommandOutput>;
|
|
54
|
+
createCaseComment(args: CreateCaseCommentCommandInput, cb: (err: any, data?: CreateCaseCommentCommandOutput) => void): void;
|
|
55
|
+
createCaseComment(args: CreateCaseCommentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCaseCommentCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link CreateMembershipCommand}
|
|
58
|
+
*/
|
|
59
|
+
createMembership(args: CreateMembershipCommandInput, options?: __HttpHandlerOptions): Promise<CreateMembershipCommandOutput>;
|
|
60
|
+
createMembership(args: CreateMembershipCommandInput, cb: (err: any, data?: CreateMembershipCommandOutput) => void): void;
|
|
61
|
+
createMembership(args: CreateMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMembershipCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link GetCaseCommand}
|
|
64
|
+
*/
|
|
65
|
+
getCase(args: GetCaseCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseCommandOutput>;
|
|
66
|
+
getCase(args: GetCaseCommandInput, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
67
|
+
getCase(args: GetCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link GetCaseAttachmentDownloadUrlCommand}
|
|
70
|
+
*/
|
|
71
|
+
getCaseAttachmentDownloadUrl(args: GetCaseAttachmentDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseAttachmentDownloadUrlCommandOutput>;
|
|
72
|
+
getCaseAttachmentDownloadUrl(args: GetCaseAttachmentDownloadUrlCommandInput, cb: (err: any, data?: GetCaseAttachmentDownloadUrlCommandOutput) => void): void;
|
|
73
|
+
getCaseAttachmentDownloadUrl(args: GetCaseAttachmentDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseAttachmentDownloadUrlCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link GetCaseAttachmentUploadUrlCommand}
|
|
76
|
+
*/
|
|
77
|
+
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseAttachmentUploadUrlCommandOutput>;
|
|
78
|
+
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, cb: (err: any, data?: GetCaseAttachmentUploadUrlCommandOutput) => void): void;
|
|
79
|
+
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseAttachmentUploadUrlCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link GetMembershipCommand}
|
|
82
|
+
*/
|
|
83
|
+
getMembership(args: GetMembershipCommandInput, options?: __HttpHandlerOptions): Promise<GetMembershipCommandOutput>;
|
|
84
|
+
getMembership(args: GetMembershipCommandInput, cb: (err: any, data?: GetMembershipCommandOutput) => void): void;
|
|
85
|
+
getMembership(args: GetMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMembershipCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link ListCaseEditsCommand}
|
|
88
|
+
*/
|
|
89
|
+
listCaseEdits(args: ListCaseEditsCommandInput, options?: __HttpHandlerOptions): Promise<ListCaseEditsCommandOutput>;
|
|
90
|
+
listCaseEdits(args: ListCaseEditsCommandInput, cb: (err: any, data?: ListCaseEditsCommandOutput) => void): void;
|
|
91
|
+
listCaseEdits(args: ListCaseEditsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCaseEditsCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link ListCasesCommand}
|
|
94
|
+
*/
|
|
95
|
+
listCases(): Promise<ListCasesCommandOutput>;
|
|
96
|
+
listCases(args: ListCasesCommandInput, options?: __HttpHandlerOptions): Promise<ListCasesCommandOutput>;
|
|
97
|
+
listCases(args: ListCasesCommandInput, cb: (err: any, data?: ListCasesCommandOutput) => void): void;
|
|
98
|
+
listCases(args: ListCasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCasesCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link ListCommentsCommand}
|
|
101
|
+
*/
|
|
102
|
+
listComments(args: ListCommentsCommandInput, options?: __HttpHandlerOptions): Promise<ListCommentsCommandOutput>;
|
|
103
|
+
listComments(args: ListCommentsCommandInput, cb: (err: any, data?: ListCommentsCommandOutput) => void): void;
|
|
104
|
+
listComments(args: ListCommentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCommentsCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link ListMembershipsCommand}
|
|
107
|
+
*/
|
|
108
|
+
listMemberships(): Promise<ListMembershipsCommandOutput>;
|
|
109
|
+
listMemberships(args: ListMembershipsCommandInput, options?: __HttpHandlerOptions): Promise<ListMembershipsCommandOutput>;
|
|
110
|
+
listMemberships(args: ListMembershipsCommandInput, cb: (err: any, data?: ListMembershipsCommandOutput) => void): void;
|
|
111
|
+
listMemberships(args: ListMembershipsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMembershipsCommandOutput) => void): void;
|
|
112
|
+
/**
|
|
113
|
+
* @see {@link ListTagsForResourceCommand}
|
|
114
|
+
*/
|
|
115
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
116
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
117
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
118
|
+
/**
|
|
119
|
+
* @see {@link TagResourceCommand}
|
|
120
|
+
*/
|
|
121
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
122
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
123
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
124
|
+
/**
|
|
125
|
+
* @see {@link UntagResourceCommand}
|
|
126
|
+
*/
|
|
127
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
128
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
129
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
130
|
+
/**
|
|
131
|
+
* @see {@link UpdateCaseCommand}
|
|
132
|
+
*/
|
|
133
|
+
updateCase(args: UpdateCaseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCaseCommandOutput>;
|
|
134
|
+
updateCase(args: UpdateCaseCommandInput, cb: (err: any, data?: UpdateCaseCommandOutput) => void): void;
|
|
135
|
+
updateCase(args: UpdateCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCaseCommandOutput) => void): void;
|
|
136
|
+
/**
|
|
137
|
+
* @see {@link UpdateCaseCommentCommand}
|
|
138
|
+
*/
|
|
139
|
+
updateCaseComment(args: UpdateCaseCommentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCaseCommentCommandOutput>;
|
|
140
|
+
updateCaseComment(args: UpdateCaseCommentCommandInput, cb: (err: any, data?: UpdateCaseCommentCommandOutput) => void): void;
|
|
141
|
+
updateCaseComment(args: UpdateCaseCommentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCaseCommentCommandOutput) => void): void;
|
|
142
|
+
/**
|
|
143
|
+
* @see {@link UpdateCaseStatusCommand}
|
|
144
|
+
*/
|
|
145
|
+
updateCaseStatus(args: UpdateCaseStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCaseStatusCommandOutput>;
|
|
146
|
+
updateCaseStatus(args: UpdateCaseStatusCommandInput, cb: (err: any, data?: UpdateCaseStatusCommandOutput) => void): void;
|
|
147
|
+
updateCaseStatus(args: UpdateCaseStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCaseStatusCommandOutput) => void): void;
|
|
148
|
+
/**
|
|
149
|
+
* @see {@link UpdateMembershipCommand}
|
|
150
|
+
*/
|
|
151
|
+
updateMembership(args: UpdateMembershipCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMembershipCommandOutput>;
|
|
152
|
+
updateMembership(args: UpdateMembershipCommandInput, cb: (err: any, data?: UpdateMembershipCommandOutput) => void): void;
|
|
153
|
+
updateMembership(args: UpdateMembershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMembershipCommandOutput) => void): void;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link UpdateResolverTypeCommand}
|
|
156
|
+
*/
|
|
157
|
+
updateResolverType(args: UpdateResolverTypeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateResolverTypeCommandOutput>;
|
|
158
|
+
updateResolverType(args: UpdateResolverTypeCommandInput, cb: (err: any, data?: UpdateResolverTypeCommandOutput) => void): void;
|
|
159
|
+
updateResolverType(args: UpdateResolverTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResolverTypeCommandOutput) => void): void;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* <p>This guide provides documents the action and response elements for customer use of the service.</p>
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
export declare class SecurityIR extends SecurityIRClient implements SecurityIR {
|
|
166
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
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";
|
|
10
|
+
import { BatchGetMemberAccountDetailsCommandInput, BatchGetMemberAccountDetailsCommandOutput } from "./commands/BatchGetMemberAccountDetailsCommand";
|
|
11
|
+
import { CancelMembershipCommandInput, CancelMembershipCommandOutput } from "./commands/CancelMembershipCommand";
|
|
12
|
+
import { CloseCaseCommandInput, CloseCaseCommandOutput } from "./commands/CloseCaseCommand";
|
|
13
|
+
import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/CreateCaseCommand";
|
|
14
|
+
import { CreateCaseCommentCommandInput, CreateCaseCommentCommandOutput } from "./commands/CreateCaseCommentCommand";
|
|
15
|
+
import { CreateMembershipCommandInput, CreateMembershipCommandOutput } from "./commands/CreateMembershipCommand";
|
|
16
|
+
import { GetCaseAttachmentDownloadUrlCommandInput, GetCaseAttachmentDownloadUrlCommandOutput } from "./commands/GetCaseAttachmentDownloadUrlCommand";
|
|
17
|
+
import { GetCaseAttachmentUploadUrlCommandInput, GetCaseAttachmentUploadUrlCommandOutput } from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
18
|
+
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
19
|
+
import { GetMembershipCommandInput, GetMembershipCommandOutput } from "./commands/GetMembershipCommand";
|
|
20
|
+
import { ListCaseEditsCommandInput, ListCaseEditsCommandOutput } from "./commands/ListCaseEditsCommand";
|
|
21
|
+
import { ListCasesCommandInput, ListCasesCommandOutput } from "./commands/ListCasesCommand";
|
|
22
|
+
import { ListCommentsCommandInput, ListCommentsCommandOutput } from "./commands/ListCommentsCommand";
|
|
23
|
+
import { ListMembershipsCommandInput, ListMembershipsCommandOutput } from "./commands/ListMembershipsCommand";
|
|
24
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
25
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
26
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
27
|
+
import { UpdateCaseCommandInput, UpdateCaseCommandOutput } from "./commands/UpdateCaseCommand";
|
|
28
|
+
import { UpdateCaseCommentCommandInput, UpdateCaseCommentCommandOutput } from "./commands/UpdateCaseCommentCommand";
|
|
29
|
+
import { UpdateCaseStatusCommandInput, UpdateCaseStatusCommandOutput } from "./commands/UpdateCaseStatusCommand";
|
|
30
|
+
import { UpdateMembershipCommandInput, UpdateMembershipCommandOutput } from "./commands/UpdateMembershipCommand";
|
|
31
|
+
import { UpdateResolverTypeCommandInput, UpdateResolverTypeCommandOutput } from "./commands/UpdateResolverTypeCommand";
|
|
32
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
33
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
34
|
+
export { __Client };
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type ServiceInputTypes = BatchGetMemberAccountDetailsCommandInput | CancelMembershipCommandInput | CloseCaseCommandInput | CreateCaseCommandInput | CreateCaseCommentCommandInput | CreateMembershipCommandInput | GetCaseAttachmentDownloadUrlCommandInput | GetCaseAttachmentUploadUrlCommandInput | GetCaseCommandInput | GetMembershipCommandInput | ListCaseEditsCommandInput | ListCasesCommandInput | ListCommentsCommandInput | ListMembershipsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseCommentCommandInput | UpdateCaseStatusCommandInput | UpdateMembershipCommandInput | UpdateResolverTypeCommandInput;
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type ServiceOutputTypes = BatchGetMemberAccountDetailsCommandOutput | CancelMembershipCommandOutput | CloseCaseCommandOutput | CreateCaseCommandOutput | CreateCaseCommentCommandOutput | CreateMembershipCommandOutput | GetCaseAttachmentDownloadUrlCommandOutput | GetCaseAttachmentUploadUrlCommandOutput | GetCaseCommandOutput | GetMembershipCommandOutput | ListCaseEditsCommandOutput | ListCasesCommandOutput | ListCommentsCommandOutput | ListMembershipsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseCommentCommandOutput | UpdateCaseStatusCommandOutput | UpdateMembershipCommandOutput | UpdateResolverTypeCommandOutput;
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
47
|
+
/**
|
|
48
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
49
|
+
*/
|
|
50
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
51
|
+
/**
|
|
52
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
53
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
57
|
+
/**
|
|
58
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
urlParser?: __UrlParser;
|
|
62
|
+
/**
|
|
63
|
+
* A function that can calculate the length of a request body.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
67
|
+
/**
|
|
68
|
+
* A function that converts a stream into an array of bytes.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
streamCollector?: __StreamCollector;
|
|
72
|
+
/**
|
|
73
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
base64Decoder?: __Decoder;
|
|
77
|
+
/**
|
|
78
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
base64Encoder?: __Encoder;
|
|
82
|
+
/**
|
|
83
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
utf8Decoder?: __Decoder;
|
|
87
|
+
/**
|
|
88
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
utf8Encoder?: __Encoder;
|
|
92
|
+
/**
|
|
93
|
+
* The runtime environment.
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
runtime?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
99
|
+
* trait of an operation.
|
|
100
|
+
*/
|
|
101
|
+
disableHostPrefix?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Unique service identifier.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
serviceId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
109
|
+
*/
|
|
110
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Enables FIPS compatible endpoints.
|
|
113
|
+
*/
|
|
114
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* The AWS region to which this client will send requests
|
|
117
|
+
*/
|
|
118
|
+
region?: string | __Provider<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
124
|
+
/**
|
|
125
|
+
* Default credentials provider; Not available in browser runtime.
|
|
126
|
+
* @deprecated
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
130
|
+
/**
|
|
131
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
132
|
+
*/
|
|
133
|
+
maxAttempts?: number | __Provider<number>;
|
|
134
|
+
/**
|
|
135
|
+
* Specifies which retry algorithm to use.
|
|
136
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
retryMode?: string | __Provider<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Optional logger for logging debug/info/warn/error.
|
|
142
|
+
*/
|
|
143
|
+
logger?: __Logger;
|
|
144
|
+
/**
|
|
145
|
+
* Optional extensions
|
|
146
|
+
*/
|
|
147
|
+
extensions?: RuntimeExtension[];
|
|
148
|
+
/**
|
|
149
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
150
|
+
*/
|
|
151
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export type SecurityIRClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*
|
|
160
|
+
* The configuration interface of SecurityIRClient class constructor that set the region, credentials and other options.
|
|
161
|
+
*/
|
|
162
|
+
export interface SecurityIRClientConfig extends SecurityIRClientConfigType {
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export type SecurityIRClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*
|
|
171
|
+
* The resolved configuration interface of SecurityIRClient class. This is resolved and normalized from the {@link SecurityIRClientConfig | constructor configuration interface}.
|
|
172
|
+
*/
|
|
173
|
+
export interface SecurityIRClientResolvedConfig extends SecurityIRClientResolvedConfigType {
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* <p>This guide provides documents the action and response elements for customer use of the service.</p>
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export declare class SecurityIRClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SecurityIRClientResolvedConfig> {
|
|
180
|
+
/**
|
|
181
|
+
* The resolved configuration of SecurityIRClient class. This is resolved and normalized from the {@link SecurityIRClientConfig | constructor configuration interface}.
|
|
182
|
+
*/
|
|
183
|
+
readonly config: SecurityIRClientResolvedConfig;
|
|
184
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SecurityIRClientConfig>);
|
|
185
|
+
/**
|
|
186
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
187
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
188
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
189
|
+
*/
|
|
190
|
+
destroy(): void;
|
|
191
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { SecurityIRHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SecurityIRHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): SecurityIRHttpAuthSchemeProvider;
|
|
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: SecurityIRHttpAuthSchemeProvider;
|
|
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 { SecurityIRClientResolvedConfig } from "../SecurityIRClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SecurityIRHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SecurityIRHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SecurityIRClientResolvedConfig, HandlerExecutionContext, SecurityIRHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSecurityIRHttpAuthSchemeParametersProvider: (config: SecurityIRClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SecurityIRHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SecurityIRHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SecurityIRHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSecurityIRHttpAuthSchemeProvider: SecurityIRHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: SecurityIRHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* 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
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: SecurityIRHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|