@aws-sdk/client-agent-registry-control 3.1105.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 +286 -0
- package/dist-cjs/index.js +1536 -0
- package/dist-es/AgentRegistryControl.js +49 -0
- package/dist-es/AgentRegistryControlClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateRegistryCommand.js +4 -0
- package/dist-es/commands/CreateRegistryRecordCommand.js +4 -0
- package/dist-es/commands/DeleteRegistryCommand.js +4 -0
- package/dist-es/commands/DeleteRegistryRecordCommand.js +4 -0
- package/dist-es/commands/GetRegistryCommand.js +4 -0
- package/dist-es/commands/GetRegistryRecordCommand.js +4 -0
- package/dist-es/commands/ListRegistriesCommand.js +4 -0
- package/dist-es/commands/ListRegistryRecordsCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/SubmitRegistryRecordForApprovalCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateRegistryCommand.js +4 -0
- package/dist-es/commands/UpdateRegistryRecordCommand.js +4 -0
- package/dist-es/commands/UpdateRegistryRecordStatusCommand.js +4 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoint/EndpointParameters.js +9 -0
- package/dist-es/endpoint/bdd.js +22 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/AgentRegistryControlServiceException.js +8 -0
- package/dist-es/models/enums.js +69 -0
- package/dist-es/models/errors.js +89 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRegistriesPaginator.js +4 -0
- package/dist-es/pagination/ListRegistryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +783 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForRegistryReady.js +58 -0
- package/dist-es/waiters/waitForRegistryRecordApproved.js +58 -0
- package/dist-types/AgentRegistryControl.d.ts +143 -0
- package/dist-types/AgentRegistryControlClient.d.ts +201 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateRegistryCommand.d.ts +172 -0
- package/dist-types/commands/CreateRegistryRecordCommand.d.ts +212 -0
- package/dist-types/commands/DeleteRegistryCommand.d.ts +89 -0
- package/dist-types/commands/DeleteRegistryRecordCommand.d.ts +88 -0
- package/dist-types/commands/GetRegistryCommand.d.ts +173 -0
- package/dist-types/commands/GetRegistryRecordCommand.d.ts +211 -0
- package/dist-types/commands/ListRegistriesCommand.d.ts +179 -0
- package/dist-types/commands/ListRegistryRecordsCommand.d.ts +114 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/SubmitRegistryRecordForApprovalCommand.d.ts +94 -0
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateRegistryCommand.d.ts +266 -0
- package/dist-types/commands/UpdateRegistryRecordCommand.d.ts +375 -0
- package/dist-types/commands/UpdateRegistryRecordStatusCommand.d.ts +97 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +19 -0
- package/dist-types/models/AgentRegistryControlServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +173 -0
- package/dist-types/models/errors.d.ts +98 -0
- package/dist-types/models/models_0.d.ts +1886 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListRegistriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRegistryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +118 -0
- package/dist-types/ts3.4/AgentRegistryControl.d.ts +295 -0
- package/dist-types/ts3.4/AgentRegistryControlClient.d.ts +187 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateRegistryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateRegistryRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteRegistryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteRegistryRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRegistryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRegistryRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRegistriesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListRegistryRecordsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SubmitRegistryRecordForApprovalCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRegistryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRegistryRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateRegistryRecordStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/AgentRegistryControlServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +90 -0
- package/dist-types/ts3.4/models/errors.d.ts +41 -0
- package/dist-types/ts3.4/models/models_0.d.ts +528 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListRegistriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRegistryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +118 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForRegistryReady.d.ts +12 -0
- package/dist-types/ts3.4/waiters/waitForRegistryRecordApproved.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForRegistryReady.d.ts +15 -0
- package/dist-types/waiters/waitForRegistryRecordApproved.d.ts +15 -0
- package/package.json +69 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetRegistryCommand, } from "../commands/GetRegistryCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetRegistryCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "READY") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "UPDATE_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.status;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "DELETE_FAILED") {
|
|
40
|
+
return { state: WaiterState.FAILURE, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
}
|
|
45
|
+
catch (exception) {
|
|
46
|
+
reason = exception;
|
|
47
|
+
}
|
|
48
|
+
return { state: WaiterState.RETRY, reason };
|
|
49
|
+
};
|
|
50
|
+
export const waitForRegistryReady = async (params, input) => {
|
|
51
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
52
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
+
};
|
|
54
|
+
export const waitUntilRegistryReady = async (params, input) => {
|
|
55
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
56
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
+
return checkExceptions(result);
|
|
58
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetRegistryRecordCommand, } from "../commands/GetRegistryRecordCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetRegistryRecordCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "APPROVED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "REJECTED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.status;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "UPDATE_FAILED") {
|
|
40
|
+
return { state: WaiterState.FAILURE, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
}
|
|
45
|
+
catch (exception) {
|
|
46
|
+
reason = exception;
|
|
47
|
+
}
|
|
48
|
+
return { state: WaiterState.RETRY, reason };
|
|
49
|
+
};
|
|
50
|
+
export const waitForRegistryRecordApproved = async (params, input) => {
|
|
51
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
52
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
+
};
|
|
54
|
+
export const waitUntilRegistryRecordApproved = async (params, input) => {
|
|
55
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
56
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
+
return checkExceptions(result);
|
|
58
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { type WaiterResult } from "@smithy/core/client";
|
|
2
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
|
|
3
|
+
import { AgentRegistryControlClient } from "./AgentRegistryControlClient";
|
|
4
|
+
import { type CreateRegistryCommandInput, type CreateRegistryCommandOutput } from "./commands/CreateRegistryCommand";
|
|
5
|
+
import { type CreateRegistryRecordCommandInput, type CreateRegistryRecordCommandOutput } from "./commands/CreateRegistryRecordCommand";
|
|
6
|
+
import { type DeleteRegistryCommandInput, type DeleteRegistryCommandOutput } from "./commands/DeleteRegistryCommand";
|
|
7
|
+
import { type DeleteRegistryRecordCommandInput, type DeleteRegistryRecordCommandOutput } from "./commands/DeleteRegistryRecordCommand";
|
|
8
|
+
import { type GetRegistryCommandInput, type GetRegistryCommandOutput } from "./commands/GetRegistryCommand";
|
|
9
|
+
import { type GetRegistryRecordCommandInput, type GetRegistryRecordCommandOutput } from "./commands/GetRegistryRecordCommand";
|
|
10
|
+
import { type ListRegistriesCommandInput, type ListRegistriesCommandOutput } from "./commands/ListRegistriesCommand";
|
|
11
|
+
import { type ListRegistryRecordsCommandInput, type ListRegistryRecordsCommandOutput } from "./commands/ListRegistryRecordsCommand";
|
|
12
|
+
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
13
|
+
import { type SubmitRegistryRecordForApprovalCommandInput, type SubmitRegistryRecordForApprovalCommandOutput } from "./commands/SubmitRegistryRecordForApprovalCommand";
|
|
14
|
+
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
15
|
+
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
16
|
+
import { type UpdateRegistryCommandInput, type UpdateRegistryCommandOutput } from "./commands/UpdateRegistryCommand";
|
|
17
|
+
import { type UpdateRegistryRecordCommandInput, type UpdateRegistryRecordCommandOutput } from "./commands/UpdateRegistryRecordCommand";
|
|
18
|
+
import { type UpdateRegistryRecordStatusCommandInput, type UpdateRegistryRecordStatusCommandOutput } from "./commands/UpdateRegistryRecordStatusCommand";
|
|
19
|
+
export interface AgentRegistryControl {
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link CreateRegistryCommand}
|
|
22
|
+
*/
|
|
23
|
+
createRegistry(args: CreateRegistryCommandInput, options?: __HttpHandlerOptions): Promise<CreateRegistryCommandOutput>;
|
|
24
|
+
createRegistry(args: CreateRegistryCommandInput, cb: (err: any, data?: CreateRegistryCommandOutput) => void): void;
|
|
25
|
+
createRegistry(args: CreateRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRegistryCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link CreateRegistryRecordCommand}
|
|
28
|
+
*/
|
|
29
|
+
createRegistryRecord(args: CreateRegistryRecordCommandInput, options?: __HttpHandlerOptions): Promise<CreateRegistryRecordCommandOutput>;
|
|
30
|
+
createRegistryRecord(args: CreateRegistryRecordCommandInput, cb: (err: any, data?: CreateRegistryRecordCommandOutput) => void): void;
|
|
31
|
+
createRegistryRecord(args: CreateRegistryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRegistryRecordCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link DeleteRegistryCommand}
|
|
34
|
+
*/
|
|
35
|
+
deleteRegistry(args: DeleteRegistryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRegistryCommandOutput>;
|
|
36
|
+
deleteRegistry(args: DeleteRegistryCommandInput, cb: (err: any, data?: DeleteRegistryCommandOutput) => void): void;
|
|
37
|
+
deleteRegistry(args: DeleteRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRegistryCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link DeleteRegistryRecordCommand}
|
|
40
|
+
*/
|
|
41
|
+
deleteRegistryRecord(args: DeleteRegistryRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRegistryRecordCommandOutput>;
|
|
42
|
+
deleteRegistryRecord(args: DeleteRegistryRecordCommandInput, cb: (err: any, data?: DeleteRegistryRecordCommandOutput) => void): void;
|
|
43
|
+
deleteRegistryRecord(args: DeleteRegistryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRegistryRecordCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link GetRegistryCommand}
|
|
46
|
+
*/
|
|
47
|
+
getRegistry(args: GetRegistryCommandInput, options?: __HttpHandlerOptions): Promise<GetRegistryCommandOutput>;
|
|
48
|
+
getRegistry(args: GetRegistryCommandInput, cb: (err: any, data?: GetRegistryCommandOutput) => void): void;
|
|
49
|
+
getRegistry(args: GetRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRegistryCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link GetRegistryRecordCommand}
|
|
52
|
+
*/
|
|
53
|
+
getRegistryRecord(args: GetRegistryRecordCommandInput, options?: __HttpHandlerOptions): Promise<GetRegistryRecordCommandOutput>;
|
|
54
|
+
getRegistryRecord(args: GetRegistryRecordCommandInput, cb: (err: any, data?: GetRegistryRecordCommandOutput) => void): void;
|
|
55
|
+
getRegistryRecord(args: GetRegistryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRegistryRecordCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link ListRegistriesCommand}
|
|
58
|
+
*/
|
|
59
|
+
listRegistries(): Promise<ListRegistriesCommandOutput>;
|
|
60
|
+
listRegistries(args: ListRegistriesCommandInput, options?: __HttpHandlerOptions): Promise<ListRegistriesCommandOutput>;
|
|
61
|
+
listRegistries(args: ListRegistriesCommandInput, cb: (err: any, data?: ListRegistriesCommandOutput) => void): void;
|
|
62
|
+
listRegistries(args: ListRegistriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRegistriesCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link ListRegistryRecordsCommand}
|
|
65
|
+
*/
|
|
66
|
+
listRegistryRecords(args: ListRegistryRecordsCommandInput, options?: __HttpHandlerOptions): Promise<ListRegistryRecordsCommandOutput>;
|
|
67
|
+
listRegistryRecords(args: ListRegistryRecordsCommandInput, cb: (err: any, data?: ListRegistryRecordsCommandOutput) => void): void;
|
|
68
|
+
listRegistryRecords(args: ListRegistryRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRegistryRecordsCommandOutput) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link ListTagsForResourceCommand}
|
|
71
|
+
*/
|
|
72
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
73
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
74
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link SubmitRegistryRecordForApprovalCommand}
|
|
77
|
+
*/
|
|
78
|
+
submitRegistryRecordForApproval(args: SubmitRegistryRecordForApprovalCommandInput, options?: __HttpHandlerOptions): Promise<SubmitRegistryRecordForApprovalCommandOutput>;
|
|
79
|
+
submitRegistryRecordForApproval(args: SubmitRegistryRecordForApprovalCommandInput, cb: (err: any, data?: SubmitRegistryRecordForApprovalCommandOutput) => void): void;
|
|
80
|
+
submitRegistryRecordForApproval(args: SubmitRegistryRecordForApprovalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubmitRegistryRecordForApprovalCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link TagResourceCommand}
|
|
83
|
+
*/
|
|
84
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
85
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
86
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link UntagResourceCommand}
|
|
89
|
+
*/
|
|
90
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
91
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
92
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link UpdateRegistryCommand}
|
|
95
|
+
*/
|
|
96
|
+
updateRegistry(args: UpdateRegistryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRegistryCommandOutput>;
|
|
97
|
+
updateRegistry(args: UpdateRegistryCommandInput, cb: (err: any, data?: UpdateRegistryCommandOutput) => void): void;
|
|
98
|
+
updateRegistry(args: UpdateRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRegistryCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link UpdateRegistryRecordCommand}
|
|
101
|
+
*/
|
|
102
|
+
updateRegistryRecord(args: UpdateRegistryRecordCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRegistryRecordCommandOutput>;
|
|
103
|
+
updateRegistryRecord(args: UpdateRegistryRecordCommandInput, cb: (err: any, data?: UpdateRegistryRecordCommandOutput) => void): void;
|
|
104
|
+
updateRegistryRecord(args: UpdateRegistryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRegistryRecordCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link UpdateRegistryRecordStatusCommand}
|
|
107
|
+
*/
|
|
108
|
+
updateRegistryRecordStatus(args: UpdateRegistryRecordStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRegistryRecordStatusCommandOutput>;
|
|
109
|
+
updateRegistryRecordStatus(args: UpdateRegistryRecordStatusCommandInput, cb: (err: any, data?: UpdateRegistryRecordStatusCommandOutput) => void): void;
|
|
110
|
+
updateRegistryRecordStatus(args: UpdateRegistryRecordStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRegistryRecordStatusCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link ListRegistriesCommand}
|
|
113
|
+
* @param args - command input.
|
|
114
|
+
* @param paginationConfig - optional pagination config.
|
|
115
|
+
* @returns AsyncIterable of {@link ListRegistriesCommandOutput}.
|
|
116
|
+
*/
|
|
117
|
+
paginateListRegistries(args?: ListRegistriesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRegistriesCommandOutput>;
|
|
118
|
+
/**
|
|
119
|
+
* @see {@link ListRegistryRecordsCommand}
|
|
120
|
+
* @param args - command input.
|
|
121
|
+
* @param paginationConfig - optional pagination config.
|
|
122
|
+
* @returns AsyncIterable of {@link ListRegistryRecordsCommandOutput}.
|
|
123
|
+
*/
|
|
124
|
+
paginateListRegistryRecords(args: ListRegistryRecordsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRegistryRecordsCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* @see {@link GetRegistryCommand}
|
|
127
|
+
* @param args - command input.
|
|
128
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
129
|
+
*/
|
|
130
|
+
waitUntilRegistryReady(args: GetRegistryCommandInput, waiterConfig: number | Omit<WaiterConfiguration<AgentRegistryControl>, "client">): Promise<WaiterResult<GetRegistryCommandOutput>>;
|
|
131
|
+
/**
|
|
132
|
+
* @see {@link GetRegistryRecordCommand}
|
|
133
|
+
* @param args - command input.
|
|
134
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
135
|
+
*/
|
|
136
|
+
waitUntilRegistryRecordApproved(args: GetRegistryRecordCommandInput, waiterConfig: number | Omit<WaiterConfiguration<AgentRegistryControl>, "client">): Promise<WaiterResult<GetRegistryRecordCommandOutput>>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* <p>AWS Agent Registry is a managed catalog for publishing and discovering resources such as MCP servers, agents, and agent skills. Agent Registry Control is its control-plane API: use it to create and manage registries and the records they contain, configure discovery and authorization, govern record approval and curation workflows, and manage automatic detection of resources. Data-plane search and MCP invocation operations are provided by the companion Agent Registry API.</p>
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export declare class AgentRegistryControl extends AgentRegistryControlClient implements AgentRegistryControl {
|
|
143
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
6
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
7
|
+
import type { 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, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { CreateRegistryCommandInput, CreateRegistryCommandOutput } from "./commands/CreateRegistryCommand";
|
|
10
|
+
import type { CreateRegistryRecordCommandInput, CreateRegistryRecordCommandOutput } from "./commands/CreateRegistryRecordCommand";
|
|
11
|
+
import type { DeleteRegistryCommandInput, DeleteRegistryCommandOutput } from "./commands/DeleteRegistryCommand";
|
|
12
|
+
import type { DeleteRegistryRecordCommandInput, DeleteRegistryRecordCommandOutput } from "./commands/DeleteRegistryRecordCommand";
|
|
13
|
+
import type { GetRegistryCommandInput, GetRegistryCommandOutput } from "./commands/GetRegistryCommand";
|
|
14
|
+
import type { GetRegistryRecordCommandInput, GetRegistryRecordCommandOutput } from "./commands/GetRegistryRecordCommand";
|
|
15
|
+
import type { ListRegistriesCommandInput, ListRegistriesCommandOutput } from "./commands/ListRegistriesCommand";
|
|
16
|
+
import type { ListRegistryRecordsCommandInput, ListRegistryRecordsCommandOutput } from "./commands/ListRegistryRecordsCommand";
|
|
17
|
+
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
18
|
+
import type { SubmitRegistryRecordForApprovalCommandInput, SubmitRegistryRecordForApprovalCommandOutput } from "./commands/SubmitRegistryRecordForApprovalCommand";
|
|
19
|
+
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
|
+
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import type { UpdateRegistryCommandInput, UpdateRegistryCommandOutput } from "./commands/UpdateRegistryCommand";
|
|
22
|
+
import type { UpdateRegistryRecordCommandInput, UpdateRegistryRecordCommandOutput } from "./commands/UpdateRegistryRecordCommand";
|
|
23
|
+
import type { UpdateRegistryRecordStatusCommandInput, UpdateRegistryRecordStatusCommandOutput } from "./commands/UpdateRegistryRecordStatusCommand";
|
|
24
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
25
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
26
|
+
export { __Client };
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type ServiceInputTypes = CreateRegistryCommandInput | CreateRegistryRecordCommandInput | DeleteRegistryCommandInput | DeleteRegistryRecordCommandInput | GetRegistryCommandInput | GetRegistryRecordCommandInput | ListRegistriesCommandInput | ListRegistryRecordsCommandInput | ListTagsForResourceCommandInput | SubmitRegistryRecordForApprovalCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateRegistryCommandInput | UpdateRegistryRecordCommandInput | UpdateRegistryRecordStatusCommandInput;
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export type ServiceOutputTypes = CreateRegistryCommandOutput | CreateRegistryRecordCommandOutput | DeleteRegistryCommandOutput | DeleteRegistryRecordCommandOutput | GetRegistryCommandOutput | GetRegistryRecordCommandOutput | ListRegistriesCommandOutput | ListRegistryRecordsCommandOutput | ListTagsForResourceCommandOutput | SubmitRegistryRecordForApprovalCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateRegistryCommandOutput | UpdateRegistryRecordCommandOutput | UpdateRegistryRecordStatusCommandOutput;
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
39
|
+
/**
|
|
40
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
41
|
+
*/
|
|
42
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
43
|
+
/**
|
|
44
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
45
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
49
|
+
/**
|
|
50
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
urlParser?: __UrlParser;
|
|
54
|
+
/**
|
|
55
|
+
* A function that can calculate the length of a request body.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
59
|
+
/**
|
|
60
|
+
* A function that converts a stream into an array of bytes.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
streamCollector?: __StreamCollector;
|
|
64
|
+
/**
|
|
65
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
base64Decoder?: __Decoder;
|
|
69
|
+
/**
|
|
70
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
base64Encoder?: __Encoder;
|
|
74
|
+
/**
|
|
75
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
utf8Decoder?: __Decoder;
|
|
79
|
+
/**
|
|
80
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
utf8Encoder?: __Encoder;
|
|
84
|
+
/**
|
|
85
|
+
* The runtime environment.
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
runtime?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
91
|
+
* trait of an operation.
|
|
92
|
+
*/
|
|
93
|
+
disableHostPrefix?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Unique service identifier.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
serviceId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
101
|
+
*/
|
|
102
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Enables FIPS compatible endpoints.
|
|
105
|
+
*/
|
|
106
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* The AWS region to which this client will send requests
|
|
109
|
+
*/
|
|
110
|
+
region?: string | __Provider<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Setting a client profile is similar to setting a value for the
|
|
113
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
114
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
115
|
+
*
|
|
116
|
+
* When set, and only for environments where an AWS configuration
|
|
117
|
+
* file exists, fields configurable by this file will be retrieved
|
|
118
|
+
* from the specified profile within that file.
|
|
119
|
+
* Conflicting code configuration and environment variables will
|
|
120
|
+
* still have higher priority.
|
|
121
|
+
*
|
|
122
|
+
* For client credential resolution that involves checking the AWS
|
|
123
|
+
* configuration file, the client's profile (this value) will be
|
|
124
|
+
* used unless a different profile is set in the credential
|
|
125
|
+
* provider options.
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
profile?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
134
|
+
/**
|
|
135
|
+
* Default credentials provider; Not available in browser runtime.
|
|
136
|
+
* @deprecated
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
140
|
+
/**
|
|
141
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
142
|
+
*/
|
|
143
|
+
maxAttempts?: number | __Provider<number>;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies which retry algorithm to use.
|
|
146
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
retryMode?: string | __Provider<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Optional logger for logging debug/info/warn/error.
|
|
152
|
+
*/
|
|
153
|
+
logger?: __Logger;
|
|
154
|
+
/**
|
|
155
|
+
* Optional extensions
|
|
156
|
+
*/
|
|
157
|
+
extensions?: RuntimeExtension[];
|
|
158
|
+
/**
|
|
159
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
160
|
+
*/
|
|
161
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export type AgentRegistryControlClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
*
|
|
170
|
+
* The configuration interface of AgentRegistryControlClient class constructor that set the region, credentials and other options.
|
|
171
|
+
*/
|
|
172
|
+
export interface AgentRegistryControlClientConfig extends AgentRegistryControlClientConfigType {
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
export type AgentRegistryControlClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
178
|
+
/**
|
|
179
|
+
* @public
|
|
180
|
+
*
|
|
181
|
+
* The resolved configuration interface of AgentRegistryControlClient class. This is resolved and normalized from the {@link AgentRegistryControlClientConfig | constructor configuration interface}.
|
|
182
|
+
*/
|
|
183
|
+
export interface AgentRegistryControlClientResolvedConfig extends AgentRegistryControlClientResolvedConfigType {
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* <p>AWS Agent Registry is a managed catalog for publishing and discovering resources such as MCP servers, agents, and agent skills. Agent Registry Control is its control-plane API: use it to create and manage registries and the records they contain, configure discovery and authorization, govern record approval and curation workflows, and manage automatic detection of resources. Data-plane search and MCP invocation operations are provided by the companion Agent Registry API.</p>
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export declare class AgentRegistryControlClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AgentRegistryControlClientResolvedConfig> {
|
|
190
|
+
/**
|
|
191
|
+
* The resolved configuration of AgentRegistryControlClient class. This is resolved and normalized from the {@link AgentRegistryControlClientConfig | constructor configuration interface}.
|
|
192
|
+
*/
|
|
193
|
+
readonly config: AgentRegistryControlClientResolvedConfig;
|
|
194
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<AgentRegistryControlClientConfig>);
|
|
195
|
+
/**
|
|
196
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
197
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
198
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
199
|
+
*/
|
|
200
|
+
destroy(): void;
|
|
201
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { AgentRegistryControlHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: AgentRegistryControlHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): AgentRegistryControlHttpAuthSchemeProvider;
|
|
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: AgentRegistryControlHttpAuthSchemeProvider;
|
|
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,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type AgentRegistryControlClientResolvedConfig } from "../AgentRegistryControlClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface AgentRegistryControlHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface AgentRegistryControlHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<AgentRegistryControlClientResolvedConfig, HandlerExecutionContext, AgentRegistryControlHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultAgentRegistryControlHttpAuthSchemeParametersProvider: (config: AgentRegistryControlClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<AgentRegistryControlHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentRegistryControlHttpAuthSchemeProvider extends HttpAuthSchemeProvider<AgentRegistryControlHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultAgentRegistryControlHttpAuthSchemeProvider: AgentRegistryControlHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: AgentRegistryControlHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: AgentRegistryControlHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { AgentRegistryControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AgentRegistryControlClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, AgentRegistryControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AgentRegistryControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|