@aws-sdk/client-devops-agent 3.1067.0 → 3.1069.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +298 -244
- package/dist-cjs/models/DevOpsAgentServiceException.js +4 -8
- package/dist-cjs/models/errors.js +21 -34
- package/dist-cjs/runtimeConfig.browser.js +24 -28
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +776 -423
- package/dist-es/DevOpsAgent.js +12 -0
- package/dist-es/commands/CreateTriggerCommand.js +16 -0
- package/dist-es/commands/DeleteTriggerCommand.js +16 -0
- package/dist-es/commands/GetTriggerCommand.js +16 -0
- package/dist-es/commands/ListTriggersCommand.js +16 -0
- package/dist-es/commands/UpdateTriggerCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/pagination/ListTriggersPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +118 -11
- package/dist-types/DevOpsAgent.d.ts +42 -0
- package/dist-types/DevOpsAgentClient.d.ts +7 -2
- package/dist-types/commands/CreateTriggerCommand.d.ts +125 -0
- package/dist-types/commands/DeleteTriggerCommand.d.ts +102 -0
- package/dist-types/commands/GetTriggerCommand.d.ts +117 -0
- package/dist-types/commands/ListTriggersCommand.d.ts +122 -0
- package/dist-types/commands/UpdateTriggerCommand.d.ts +119 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +255 -0
- package/dist-types/pagination/ListTriggersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +18 -0
- package/dist-types/ts3.4/DevOpsAgent.d.ts +92 -0
- package/dist-types/ts3.4/DevOpsAgentClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateTriggerCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/DeleteTriggerCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/GetTriggerCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListTriggersCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UpdateTriggerCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +72 -0
- package/dist-types/ts3.4/pagination/ListTriggersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -230,6 +230,13 @@ CreatePrivateConnection
|
|
|
230
230
|
</details>
|
|
231
231
|
<details>
|
|
232
232
|
<summary>
|
|
233
|
+
CreateTrigger
|
|
234
|
+
</summary>
|
|
235
|
+
|
|
236
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/devops-agent/command/CreateTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/CreateTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/CreateTriggerCommandOutput/)
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
233
240
|
DeleteAgentSpace
|
|
234
241
|
</summary>
|
|
235
242
|
|
|
@@ -258,6 +265,13 @@ DeletePrivateConnection
|
|
|
258
265
|
</details>
|
|
259
266
|
<details>
|
|
260
267
|
<summary>
|
|
268
|
+
DeleteTrigger
|
|
269
|
+
</summary>
|
|
270
|
+
|
|
271
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/devops-agent/command/DeleteTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/DeleteTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/DeleteTriggerCommandOutput/)
|
|
272
|
+
</details>
|
|
273
|
+
<details>
|
|
274
|
+
<summary>
|
|
261
275
|
DeregisterService
|
|
262
276
|
</summary>
|
|
263
277
|
|
|
@@ -363,6 +377,13 @@ GetService
|
|
|
363
377
|
</details>
|
|
364
378
|
<details>
|
|
365
379
|
<summary>
|
|
380
|
+
GetTrigger
|
|
381
|
+
</summary>
|
|
382
|
+
|
|
383
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/devops-agent/command/GetTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/GetTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/GetTriggerCommandOutput/)
|
|
384
|
+
</details>
|
|
385
|
+
<details>
|
|
386
|
+
<summary>
|
|
366
387
|
ListAgentSpaces
|
|
367
388
|
</summary>
|
|
368
389
|
|
|
@@ -475,6 +496,13 @@ ListTagsForResource
|
|
|
475
496
|
</details>
|
|
476
497
|
<details>
|
|
477
498
|
<summary>
|
|
499
|
+
ListTriggers
|
|
500
|
+
</summary>
|
|
501
|
+
|
|
502
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/devops-agent/command/ListTriggersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/ListTriggersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/ListTriggersCommandOutput/)
|
|
503
|
+
</details>
|
|
504
|
+
<details>
|
|
505
|
+
<summary>
|
|
478
506
|
ListWebhooks
|
|
479
507
|
</summary>
|
|
480
508
|
|
|
@@ -573,6 +601,13 @@ UpdateRecommendation
|
|
|
573
601
|
</details>
|
|
574
602
|
<details>
|
|
575
603
|
<summary>
|
|
604
|
+
UpdateTrigger
|
|
605
|
+
</summary>
|
|
606
|
+
|
|
607
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/devops-agent/command/UpdateTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/UpdateTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-devops-agent/Interface/UpdateTriggerCommandOutput/)
|
|
608
|
+
</details>
|
|
609
|
+
<details>
|
|
610
|
+
<summary>
|
|
576
611
|
ValidateAwsAssociations
|
|
577
612
|
</summary>
|
|
578
613
|
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultDevOpsAgentHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultDevOpsAgentHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultDevOpsAgentHttpAuthSchemeParametersProvider = defaultDevOpsAgentHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultDevOpsAgentHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultDevOpsAgentHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
6
3
|
const _data = {
|
|
7
4
|
conditions: [
|
|
@@ -29,4 +26,4 @@ const nodes = new Int32Array([
|
|
|
29
26
|
3, r + 3, r + 4,
|
|
30
27
|
3, r + 1, r + 2,
|
|
31
28
|
]);
|
|
32
|
-
exports.bdd =
|
|
29
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|