@aws-sdk/client-codeconnections 3.545.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 +500 -0
- package/dist-cjs/CodeConnections.js +65 -0
- package/dist-cjs/CodeConnectionsClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateConnectionCommand.js +28 -0
- package/dist-cjs/commands/CreateHostCommand.js +28 -0
- package/dist-cjs/commands/CreateRepositoryLinkCommand.js +28 -0
- package/dist-cjs/commands/CreateSyncConfigurationCommand.js +28 -0
- package/dist-cjs/commands/DeleteConnectionCommand.js +28 -0
- package/dist-cjs/commands/DeleteHostCommand.js +28 -0
- package/dist-cjs/commands/DeleteRepositoryLinkCommand.js +28 -0
- package/dist-cjs/commands/DeleteSyncConfigurationCommand.js +28 -0
- package/dist-cjs/commands/GetConnectionCommand.js +28 -0
- package/dist-cjs/commands/GetHostCommand.js +28 -0
- package/dist-cjs/commands/GetRepositoryLinkCommand.js +28 -0
- package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +28 -0
- package/dist-cjs/commands/GetResourceSyncStatusCommand.js +28 -0
- package/dist-cjs/commands/GetSyncBlockerSummaryCommand.js +28 -0
- package/dist-cjs/commands/GetSyncConfigurationCommand.js +28 -0
- package/dist-cjs/commands/ListConnectionsCommand.js +28 -0
- package/dist-cjs/commands/ListHostsCommand.js +28 -0
- package/dist-cjs/commands/ListRepositoryLinksCommand.js +28 -0
- package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +28 -0
- package/dist-cjs/commands/ListSyncConfigurationsCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateHostCommand.js +28 -0
- package/dist-cjs/commands/UpdateRepositoryLinkCommand.js +28 -0
- package/dist-cjs/commands/UpdateSyncBlockerCommand.js +28 -0
- package/dist-cjs/commands/UpdateSyncConfigurationCommand.js +28 -0
- package/dist-cjs/commands/index.js +30 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -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/CodeConnectionsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +285 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListConnectionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListHostsPaginator.js +7 -0
- package/dist-cjs/pagination/ListRepositoryLinksPaginator.js +7 -0
- package/dist-cjs/pagination/ListSyncConfigurationsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +928 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -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/CodeConnections.js +61 -0
- package/dist-es/CodeConnectionsClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateConnectionCommand.js +24 -0
- package/dist-es/commands/CreateHostCommand.js +24 -0
- package/dist-es/commands/CreateRepositoryLinkCommand.js +24 -0
- package/dist-es/commands/CreateSyncConfigurationCommand.js +24 -0
- package/dist-es/commands/DeleteConnectionCommand.js +24 -0
- package/dist-es/commands/DeleteHostCommand.js +24 -0
- package/dist-es/commands/DeleteRepositoryLinkCommand.js +24 -0
- package/dist-es/commands/DeleteSyncConfigurationCommand.js +24 -0
- package/dist-es/commands/GetConnectionCommand.js +24 -0
- package/dist-es/commands/GetHostCommand.js +24 -0
- package/dist-es/commands/GetRepositoryLinkCommand.js +24 -0
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +24 -0
- package/dist-es/commands/GetResourceSyncStatusCommand.js +24 -0
- package/dist-es/commands/GetSyncBlockerSummaryCommand.js +24 -0
- package/dist-es/commands/GetSyncConfigurationCommand.js +24 -0
- package/dist-es/commands/ListConnectionsCommand.js +24 -0
- package/dist-es/commands/ListHostsCommand.js +24 -0
- package/dist-es/commands/ListRepositoryLinksCommand.js +24 -0
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +24 -0
- package/dist-es/commands/ListSyncConfigurationsCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateHostCommand.js +24 -0
- package/dist-es/commands/UpdateRepositoryLinkCommand.js +24 -0
- package/dist-es/commands/UpdateSyncBlockerCommand.js +24 -0
- package/dist-es/commands/UpdateSyncConfigurationCommand.js +24 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +10 -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/CodeConnectionsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +265 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
- package/dist-es/pagination/ListHostsPaginator.js +4 -0
- package/dist-es/pagination/ListRepositoryLinksPaginator.js +4 -0
- package/dist-es/pagination/ListSyncConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_0.js +870 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -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/CodeConnections.d.ts +280 -0
- package/dist-types/CodeConnectionsClient.d.ts +276 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateConnectionCommand.d.ts +84 -0
- package/dist-types/commands/CreateHostCommand.d.ts +93 -0
- package/dist-types/commands/CreateRepositoryLinkCommand.d.ts +97 -0
- package/dist-types/commands/CreateSyncConfigurationCommand.d.ts +101 -0
- package/dist-types/commands/DeleteConnectionCommand.d.ts +60 -0
- package/dist-types/commands/DeleteHostCommand.d.ts +66 -0
- package/dist-types/commands/DeleteRepositoryLinkCommand.d.ts +81 -0
- package/dist-types/commands/DeleteSyncConfigurationCommand.d.ts +76 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +72 -0
- package/dist-types/commands/GetHostCommand.d.ts +79 -0
- package/dist-types/commands/GetRepositoryLinkCommand.d.ts +86 -0
- package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +88 -0
- package/dist-types/commands/GetResourceSyncStatusCommand.d.ts +141 -0
- package/dist-types/commands/GetSyncBlockerSummaryCommand.d.ts +95 -0
- package/dist-types/commands/GetSyncConfigurationCommand.d.ts +87 -0
- package/dist-types/commands/ListConnectionsCommand.d.ts +75 -0
- package/dist-types/commands/ListHostsCommand.d.ts +80 -0
- package/dist-types/commands/ListRepositoryLinksCommand.d.ts +89 -0
- package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +83 -0
- package/dist-types/commands/ListSyncConfigurationsCommand.d.ts +92 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +67 -0
- package/dist-types/commands/TagResourceCommand.d.ts +70 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +63 -0
- package/dist-types/commands/UpdateHostCommand.d.ts +80 -0
- package/dist-types/commands/UpdateRepositoryLinkCommand.d.ts +92 -0
- package/dist-types/commands/UpdateSyncBlockerCommand.d.ts +99 -0
- package/dist-types/commands/UpdateSyncConfigurationCommand.d.ts +99 -0
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -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 +92 -0
- package/dist-types/models/CodeConnectionsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1735 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListHostsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRepositoryLinksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSyncConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +245 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/CodeConnections.d.ts +469 -0
- package/dist-types/ts3.4/CodeConnectionsClient.d.ts +283 -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/CreateConnectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateHostCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateRepositoryLinkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateSyncConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteHostCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteRepositoryLinkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteSyncConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetHostCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/GetRepositoryLinkCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetResourceSyncStatusCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSyncBlockerSummaryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSyncConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListHostsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListRepositoryLinksCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListSyncConfigurationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateHostCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateRepositoryLinkCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateSyncBlockerCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSyncConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -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/CodeConnectionsServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +531 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListHostsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRepositoryLinksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSyncConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +329 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } 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
|
+
defaultUserAgent({ 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,44 @@
|
|
|
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 { defaultUserAgent } 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
|
+
defaultUserAgent({ 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
|
+
};
|
|
44
|
+
};
|
|
@@ -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 { defaultCodeConnectionsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2023-12-01",
|
|
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 ?? defaultCodeConnectionsHttpAuthSchemeProvider,
|
|
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 ?? "CodeConnections",
|
|
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,280 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CodeConnectionsClient } from "./CodeConnectionsClient";
|
|
3
|
+
import { CreateConnectionCommandInput, CreateConnectionCommandOutput } from "./commands/CreateConnectionCommand";
|
|
4
|
+
import { CreateHostCommandInput, CreateHostCommandOutput } from "./commands/CreateHostCommand";
|
|
5
|
+
import { CreateRepositoryLinkCommandInput, CreateRepositoryLinkCommandOutput } from "./commands/CreateRepositoryLinkCommand";
|
|
6
|
+
import { CreateSyncConfigurationCommandInput, CreateSyncConfigurationCommandOutput } from "./commands/CreateSyncConfigurationCommand";
|
|
7
|
+
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
8
|
+
import { DeleteHostCommandInput, DeleteHostCommandOutput } from "./commands/DeleteHostCommand";
|
|
9
|
+
import { DeleteRepositoryLinkCommandInput, DeleteRepositoryLinkCommandOutput } from "./commands/DeleteRepositoryLinkCommand";
|
|
10
|
+
import { DeleteSyncConfigurationCommandInput, DeleteSyncConfigurationCommandOutput } from "./commands/DeleteSyncConfigurationCommand";
|
|
11
|
+
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
12
|
+
import { GetHostCommandInput, GetHostCommandOutput } from "./commands/GetHostCommand";
|
|
13
|
+
import { GetRepositoryLinkCommandInput, GetRepositoryLinkCommandOutput } from "./commands/GetRepositoryLinkCommand";
|
|
14
|
+
import { GetRepositorySyncStatusCommandInput, GetRepositorySyncStatusCommandOutput } from "./commands/GetRepositorySyncStatusCommand";
|
|
15
|
+
import { GetResourceSyncStatusCommandInput, GetResourceSyncStatusCommandOutput } from "./commands/GetResourceSyncStatusCommand";
|
|
16
|
+
import { GetSyncBlockerSummaryCommandInput, GetSyncBlockerSummaryCommandOutput } from "./commands/GetSyncBlockerSummaryCommand";
|
|
17
|
+
import { GetSyncConfigurationCommandInput, GetSyncConfigurationCommandOutput } from "./commands/GetSyncConfigurationCommand";
|
|
18
|
+
import { ListConnectionsCommandInput, ListConnectionsCommandOutput } from "./commands/ListConnectionsCommand";
|
|
19
|
+
import { ListHostsCommandInput, ListHostsCommandOutput } from "./commands/ListHostsCommand";
|
|
20
|
+
import { ListRepositoryLinksCommandInput, ListRepositoryLinksCommandOutput } from "./commands/ListRepositoryLinksCommand";
|
|
21
|
+
import { ListRepositorySyncDefinitionsCommandInput, ListRepositorySyncDefinitionsCommandOutput } from "./commands/ListRepositorySyncDefinitionsCommand";
|
|
22
|
+
import { ListSyncConfigurationsCommandInput, ListSyncConfigurationsCommandOutput } from "./commands/ListSyncConfigurationsCommand";
|
|
23
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
24
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
25
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
26
|
+
import { UpdateHostCommandInput, UpdateHostCommandOutput } from "./commands/UpdateHostCommand";
|
|
27
|
+
import { UpdateRepositoryLinkCommandInput, UpdateRepositoryLinkCommandOutput } from "./commands/UpdateRepositoryLinkCommand";
|
|
28
|
+
import { UpdateSyncBlockerCommandInput, UpdateSyncBlockerCommandOutput } from "./commands/UpdateSyncBlockerCommand";
|
|
29
|
+
import { UpdateSyncConfigurationCommandInput, UpdateSyncConfigurationCommandOutput } from "./commands/UpdateSyncConfigurationCommand";
|
|
30
|
+
export interface CodeConnections {
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link CreateConnectionCommand}
|
|
33
|
+
*/
|
|
34
|
+
createConnection(args: CreateConnectionCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectionCommandOutput>;
|
|
35
|
+
createConnection(args: CreateConnectionCommandInput, cb: (err: any, data?: CreateConnectionCommandOutput) => void): void;
|
|
36
|
+
createConnection(args: CreateConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectionCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link CreateHostCommand}
|
|
39
|
+
*/
|
|
40
|
+
createHost(args: CreateHostCommandInput, options?: __HttpHandlerOptions): Promise<CreateHostCommandOutput>;
|
|
41
|
+
createHost(args: CreateHostCommandInput, cb: (err: any, data?: CreateHostCommandOutput) => void): void;
|
|
42
|
+
createHost(args: CreateHostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHostCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link CreateRepositoryLinkCommand}
|
|
45
|
+
*/
|
|
46
|
+
createRepositoryLink(args: CreateRepositoryLinkCommandInput, options?: __HttpHandlerOptions): Promise<CreateRepositoryLinkCommandOutput>;
|
|
47
|
+
createRepositoryLink(args: CreateRepositoryLinkCommandInput, cb: (err: any, data?: CreateRepositoryLinkCommandOutput) => void): void;
|
|
48
|
+
createRepositoryLink(args: CreateRepositoryLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRepositoryLinkCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link CreateSyncConfigurationCommand}
|
|
51
|
+
*/
|
|
52
|
+
createSyncConfiguration(args: CreateSyncConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateSyncConfigurationCommandOutput>;
|
|
53
|
+
createSyncConfiguration(args: CreateSyncConfigurationCommandInput, cb: (err: any, data?: CreateSyncConfigurationCommandOutput) => void): void;
|
|
54
|
+
createSyncConfiguration(args: CreateSyncConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSyncConfigurationCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link DeleteConnectionCommand}
|
|
57
|
+
*/
|
|
58
|
+
deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
|
|
59
|
+
deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
60
|
+
deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link DeleteHostCommand}
|
|
63
|
+
*/
|
|
64
|
+
deleteHost(args: DeleteHostCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHostCommandOutput>;
|
|
65
|
+
deleteHost(args: DeleteHostCommandInput, cb: (err: any, data?: DeleteHostCommandOutput) => void): void;
|
|
66
|
+
deleteHost(args: DeleteHostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteHostCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link DeleteRepositoryLinkCommand}
|
|
69
|
+
*/
|
|
70
|
+
deleteRepositoryLink(args: DeleteRepositoryLinkCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRepositoryLinkCommandOutput>;
|
|
71
|
+
deleteRepositoryLink(args: DeleteRepositoryLinkCommandInput, cb: (err: any, data?: DeleteRepositoryLinkCommandOutput) => void): void;
|
|
72
|
+
deleteRepositoryLink(args: DeleteRepositoryLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRepositoryLinkCommandOutput) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link DeleteSyncConfigurationCommand}
|
|
75
|
+
*/
|
|
76
|
+
deleteSyncConfiguration(args: DeleteSyncConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSyncConfigurationCommandOutput>;
|
|
77
|
+
deleteSyncConfiguration(args: DeleteSyncConfigurationCommandInput, cb: (err: any, data?: DeleteSyncConfigurationCommandOutput) => void): void;
|
|
78
|
+
deleteSyncConfiguration(args: DeleteSyncConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSyncConfigurationCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link GetConnectionCommand}
|
|
81
|
+
*/
|
|
82
|
+
getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
|
|
83
|
+
getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
84
|
+
getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* @see {@link GetHostCommand}
|
|
87
|
+
*/
|
|
88
|
+
getHost(args: GetHostCommandInput, options?: __HttpHandlerOptions): Promise<GetHostCommandOutput>;
|
|
89
|
+
getHost(args: GetHostCommandInput, cb: (err: any, data?: GetHostCommandOutput) => void): void;
|
|
90
|
+
getHost(args: GetHostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHostCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link GetRepositoryLinkCommand}
|
|
93
|
+
*/
|
|
94
|
+
getRepositoryLink(args: GetRepositoryLinkCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositoryLinkCommandOutput>;
|
|
95
|
+
getRepositoryLink(args: GetRepositoryLinkCommandInput, cb: (err: any, data?: GetRepositoryLinkCommandOutput) => void): void;
|
|
96
|
+
getRepositoryLink(args: GetRepositoryLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositoryLinkCommandOutput) => void): void;
|
|
97
|
+
/**
|
|
98
|
+
* @see {@link GetRepositorySyncStatusCommand}
|
|
99
|
+
*/
|
|
100
|
+
getRepositorySyncStatus(args: GetRepositorySyncStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetRepositorySyncStatusCommandOutput>;
|
|
101
|
+
getRepositorySyncStatus(args: GetRepositorySyncStatusCommandInput, cb: (err: any, data?: GetRepositorySyncStatusCommandOutput) => void): void;
|
|
102
|
+
getRepositorySyncStatus(args: GetRepositorySyncStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRepositorySyncStatusCommandOutput) => void): void;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link GetResourceSyncStatusCommand}
|
|
105
|
+
*/
|
|
106
|
+
getResourceSyncStatus(args: GetResourceSyncStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceSyncStatusCommandOutput>;
|
|
107
|
+
getResourceSyncStatus(args: GetResourceSyncStatusCommandInput, cb: (err: any, data?: GetResourceSyncStatusCommandOutput) => void): void;
|
|
108
|
+
getResourceSyncStatus(args: GetResourceSyncStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceSyncStatusCommandOutput) => void): void;
|
|
109
|
+
/**
|
|
110
|
+
* @see {@link GetSyncBlockerSummaryCommand}
|
|
111
|
+
*/
|
|
112
|
+
getSyncBlockerSummary(args: GetSyncBlockerSummaryCommandInput, options?: __HttpHandlerOptions): Promise<GetSyncBlockerSummaryCommandOutput>;
|
|
113
|
+
getSyncBlockerSummary(args: GetSyncBlockerSummaryCommandInput, cb: (err: any, data?: GetSyncBlockerSummaryCommandOutput) => void): void;
|
|
114
|
+
getSyncBlockerSummary(args: GetSyncBlockerSummaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSyncBlockerSummaryCommandOutput) => void): void;
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link GetSyncConfigurationCommand}
|
|
117
|
+
*/
|
|
118
|
+
getSyncConfiguration(args: GetSyncConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetSyncConfigurationCommandOutput>;
|
|
119
|
+
getSyncConfiguration(args: GetSyncConfigurationCommandInput, cb: (err: any, data?: GetSyncConfigurationCommandOutput) => void): void;
|
|
120
|
+
getSyncConfiguration(args: GetSyncConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSyncConfigurationCommandOutput) => void): void;
|
|
121
|
+
/**
|
|
122
|
+
* @see {@link ListConnectionsCommand}
|
|
123
|
+
*/
|
|
124
|
+
listConnections(): Promise<ListConnectionsCommandOutput>;
|
|
125
|
+
listConnections(args: ListConnectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectionsCommandOutput>;
|
|
126
|
+
listConnections(args: ListConnectionsCommandInput, cb: (err: any, data?: ListConnectionsCommandOutput) => void): void;
|
|
127
|
+
listConnections(args: ListConnectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectionsCommandOutput) => void): void;
|
|
128
|
+
/**
|
|
129
|
+
* @see {@link ListHostsCommand}
|
|
130
|
+
*/
|
|
131
|
+
listHosts(): Promise<ListHostsCommandOutput>;
|
|
132
|
+
listHosts(args: ListHostsCommandInput, options?: __HttpHandlerOptions): Promise<ListHostsCommandOutput>;
|
|
133
|
+
listHosts(args: ListHostsCommandInput, cb: (err: any, data?: ListHostsCommandOutput) => void): void;
|
|
134
|
+
listHosts(args: ListHostsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListHostsCommandOutput) => void): void;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link ListRepositoryLinksCommand}
|
|
137
|
+
*/
|
|
138
|
+
listRepositoryLinks(): Promise<ListRepositoryLinksCommandOutput>;
|
|
139
|
+
listRepositoryLinks(args: ListRepositoryLinksCommandInput, options?: __HttpHandlerOptions): Promise<ListRepositoryLinksCommandOutput>;
|
|
140
|
+
listRepositoryLinks(args: ListRepositoryLinksCommandInput, cb: (err: any, data?: ListRepositoryLinksCommandOutput) => void): void;
|
|
141
|
+
listRepositoryLinks(args: ListRepositoryLinksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRepositoryLinksCommandOutput) => void): void;
|
|
142
|
+
/**
|
|
143
|
+
* @see {@link ListRepositorySyncDefinitionsCommand}
|
|
144
|
+
*/
|
|
145
|
+
listRepositorySyncDefinitions(args: ListRepositorySyncDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRepositorySyncDefinitionsCommandOutput>;
|
|
146
|
+
listRepositorySyncDefinitions(args: ListRepositorySyncDefinitionsCommandInput, cb: (err: any, data?: ListRepositorySyncDefinitionsCommandOutput) => void): void;
|
|
147
|
+
listRepositorySyncDefinitions(args: ListRepositorySyncDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRepositorySyncDefinitionsCommandOutput) => void): void;
|
|
148
|
+
/**
|
|
149
|
+
* @see {@link ListSyncConfigurationsCommand}
|
|
150
|
+
*/
|
|
151
|
+
listSyncConfigurations(args: ListSyncConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSyncConfigurationsCommandOutput>;
|
|
152
|
+
listSyncConfigurations(args: ListSyncConfigurationsCommandInput, cb: (err: any, data?: ListSyncConfigurationsCommandOutput) => void): void;
|
|
153
|
+
listSyncConfigurations(args: ListSyncConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSyncConfigurationsCommandOutput) => void): void;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link ListTagsForResourceCommand}
|
|
156
|
+
*/
|
|
157
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
158
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
159
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link TagResourceCommand}
|
|
162
|
+
*/
|
|
163
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
164
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
165
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
166
|
+
/**
|
|
167
|
+
* @see {@link UntagResourceCommand}
|
|
168
|
+
*/
|
|
169
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
170
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
171
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
172
|
+
/**
|
|
173
|
+
* @see {@link UpdateHostCommand}
|
|
174
|
+
*/
|
|
175
|
+
updateHost(args: UpdateHostCommandInput, options?: __HttpHandlerOptions): Promise<UpdateHostCommandOutput>;
|
|
176
|
+
updateHost(args: UpdateHostCommandInput, cb: (err: any, data?: UpdateHostCommandOutput) => void): void;
|
|
177
|
+
updateHost(args: UpdateHostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateHostCommandOutput) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* @see {@link UpdateRepositoryLinkCommand}
|
|
180
|
+
*/
|
|
181
|
+
updateRepositoryLink(args: UpdateRepositoryLinkCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRepositoryLinkCommandOutput>;
|
|
182
|
+
updateRepositoryLink(args: UpdateRepositoryLinkCommandInput, cb: (err: any, data?: UpdateRepositoryLinkCommandOutput) => void): void;
|
|
183
|
+
updateRepositoryLink(args: UpdateRepositoryLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRepositoryLinkCommandOutput) => void): void;
|
|
184
|
+
/**
|
|
185
|
+
* @see {@link UpdateSyncBlockerCommand}
|
|
186
|
+
*/
|
|
187
|
+
updateSyncBlocker(args: UpdateSyncBlockerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSyncBlockerCommandOutput>;
|
|
188
|
+
updateSyncBlocker(args: UpdateSyncBlockerCommandInput, cb: (err: any, data?: UpdateSyncBlockerCommandOutput) => void): void;
|
|
189
|
+
updateSyncBlocker(args: UpdateSyncBlockerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSyncBlockerCommandOutput) => void): void;
|
|
190
|
+
/**
|
|
191
|
+
* @see {@link UpdateSyncConfigurationCommand}
|
|
192
|
+
*/
|
|
193
|
+
updateSyncConfiguration(args: UpdateSyncConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSyncConfigurationCommandOutput>;
|
|
194
|
+
updateSyncConfiguration(args: UpdateSyncConfigurationCommandInput, cb: (err: any, data?: UpdateSyncConfigurationCommandOutput) => void): void;
|
|
195
|
+
updateSyncConfiguration(args: UpdateSyncConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSyncConfigurationCommandOutput) => void): void;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* <fullname>AWS CodeConnections</fullname>
|
|
199
|
+
* <p>This Amazon Web Services CodeConnections API Reference provides descriptions and usage examples of
|
|
200
|
+
* the operations and data types for the Amazon Web Services CodeConnections API. You can use the
|
|
201
|
+
* connections API to work with connections and installations.</p>
|
|
202
|
+
* <p>
|
|
203
|
+
* <i>Connections</i> are configurations that you use to connect Amazon Web Services
|
|
204
|
+
* resources to external code repositories. Each connection is a resource that can be given to
|
|
205
|
+
* services such as CodePipeline to connect to a third-party repository such as Bitbucket. For
|
|
206
|
+
* example, you can add the connection in CodePipeline so that it triggers your pipeline when a
|
|
207
|
+
* code change is made to your third-party code repository. Each connection is named and
|
|
208
|
+
* associated with a unique ARN that is used to reference the connection.</p>
|
|
209
|
+
* <p>When you create a connection, the console initiates a third-party connection handshake.
|
|
210
|
+
* <i>Installations</i> are the apps that are used to conduct this handshake. For
|
|
211
|
+
* example, the installation for the Bitbucket provider type is the Bitbucket app. When you
|
|
212
|
+
* create a connection, you can choose an existing installation or create one.</p>
|
|
213
|
+
* <p>When you want to create a connection to an installed provider type such as GitHub
|
|
214
|
+
* Enterprise Server, you create a <i>host</i> for your connections.</p>
|
|
215
|
+
* <p>You can work with connections by calling:</p>
|
|
216
|
+
* <ul>
|
|
217
|
+
* <li>
|
|
218
|
+
* <p>
|
|
219
|
+
* <a>CreateConnection</a>, which creates a uniquely named connection that can be
|
|
220
|
+
* referenced by services such as CodePipeline.</p>
|
|
221
|
+
* </li>
|
|
222
|
+
* <li>
|
|
223
|
+
* <p>
|
|
224
|
+
* <a>DeleteConnection</a>, which deletes the specified connection.</p>
|
|
225
|
+
* </li>
|
|
226
|
+
* <li>
|
|
227
|
+
* <p>
|
|
228
|
+
* <a>GetConnection</a>, which returns information about the connection, including
|
|
229
|
+
* the connection status.</p>
|
|
230
|
+
* </li>
|
|
231
|
+
* <li>
|
|
232
|
+
* <p>
|
|
233
|
+
* <a>ListConnections</a>, which lists the connections associated with your
|
|
234
|
+
* account.</p>
|
|
235
|
+
* </li>
|
|
236
|
+
* </ul>
|
|
237
|
+
* <p>You can work with hosts by calling:</p>
|
|
238
|
+
* <ul>
|
|
239
|
+
* <li>
|
|
240
|
+
* <p>
|
|
241
|
+
* <a>CreateHost</a>, which creates a host that represents the infrastructure where your provider is installed.</p>
|
|
242
|
+
* </li>
|
|
243
|
+
* <li>
|
|
244
|
+
* <p>
|
|
245
|
+
* <a>DeleteHost</a>, which deletes the specified host.</p>
|
|
246
|
+
* </li>
|
|
247
|
+
* <li>
|
|
248
|
+
* <p>
|
|
249
|
+
* <a>GetHost</a>, which returns information about the host, including
|
|
250
|
+
* the setup status.</p>
|
|
251
|
+
* </li>
|
|
252
|
+
* <li>
|
|
253
|
+
* <p>
|
|
254
|
+
* <a>ListHosts</a>, which lists the hosts associated with your
|
|
255
|
+
* account.</p>
|
|
256
|
+
* </li>
|
|
257
|
+
* </ul>
|
|
258
|
+
* <p>You can work with tags in Amazon Web Services CodeConnections by calling the following:</p>
|
|
259
|
+
* <ul>
|
|
260
|
+
* <li>
|
|
261
|
+
* <p>
|
|
262
|
+
* <a>ListTagsForResource</a>, which gets information about Amazon Web Services tags for a
|
|
263
|
+
* specified Amazon Resource Name (ARN) in Amazon Web Services CodeConnections.</p>
|
|
264
|
+
* </li>
|
|
265
|
+
* <li>
|
|
266
|
+
* <p>
|
|
267
|
+
* <a>TagResource</a>, which adds or updates tags for a resource in Amazon Web Services CodeConnections.</p>
|
|
268
|
+
* </li>
|
|
269
|
+
* <li>
|
|
270
|
+
* <p>
|
|
271
|
+
* <a>UntagResource</a>, which removes tags for a resource in Amazon Web Services
|
|
272
|
+
* CodeConnections.</p>
|
|
273
|
+
* </li>
|
|
274
|
+
* </ul>
|
|
275
|
+
* <p>For information about how to use Amazon Web Services CodeConnections, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer
|
|
276
|
+
* Tools User Guide</a>.</p>
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export declare class CodeConnections extends CodeConnectionsClient implements CodeConnections {
|
|
280
|
+
}
|