@aws-sdk/client-devops-agent 3.1020.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 +526 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1045 -0
- package/dist-cjs/models/DevOpsAgentServiceException.js +12 -0
- package/dist-cjs/models/errors.js +140 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +1891 -0
- package/dist-es/DevOpsAgent.js +119 -0
- package/dist-es/DevOpsAgentClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/AllowVendedLogDeliveryForResourceCommand.js +16 -0
- package/dist-es/commands/AssociateServiceCommand.js +16 -0
- package/dist-es/commands/CreateAgentSpaceCommand.js +16 -0
- package/dist-es/commands/CreateBacklogTaskCommand.js +16 -0
- package/dist-es/commands/CreateChatCommand.js +16 -0
- package/dist-es/commands/CreatePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/DeleteAgentSpaceCommand.js +16 -0
- package/dist-es/commands/DeletePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/DeregisterServiceCommand.js +16 -0
- package/dist-es/commands/DescribePrivateConnectionCommand.js +16 -0
- package/dist-es/commands/DescribeSupportLevelCommand.js +16 -0
- package/dist-es/commands/DisableOperatorAppCommand.js +16 -0
- package/dist-es/commands/DisassociateServiceCommand.js +16 -0
- package/dist-es/commands/EnableOperatorAppCommand.js +16 -0
- package/dist-es/commands/EndChatForCaseCommand.js +16 -0
- package/dist-es/commands/GetAccountUsageCommand.js +16 -0
- package/dist-es/commands/GetAgentSpaceCommand.js +16 -0
- package/dist-es/commands/GetAssociationCommand.js +16 -0
- package/dist-es/commands/GetBacklogTaskCommand.js +16 -0
- package/dist-es/commands/GetOperatorAppCommand.js +16 -0
- package/dist-es/commands/GetRecommendationCommand.js +16 -0
- package/dist-es/commands/GetServiceCommand.js +16 -0
- package/dist-es/commands/InitiateChatForCaseCommand.js +16 -0
- package/dist-es/commands/ListAgentSpacesCommand.js +16 -0
- package/dist-es/commands/ListAssociationsCommand.js +16 -0
- package/dist-es/commands/ListBacklogTasksCommand.js +16 -0
- package/dist-es/commands/ListChatsCommand.js +16 -0
- package/dist-es/commands/ListExecutionsCommand.js +16 -0
- package/dist-es/commands/ListGoalsCommand.js +16 -0
- package/dist-es/commands/ListJournalRecordsCommand.js +16 -0
- package/dist-es/commands/ListPendingMessagesCommand.js +16 -0
- package/dist-es/commands/ListPrivateConnectionsCommand.js +16 -0
- package/dist-es/commands/ListRecommendationsCommand.js +16 -0
- package/dist-es/commands/ListServicesCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/ListWebhooksCommand.js +16 -0
- package/dist-es/commands/RegisterServiceCommand.js +16 -0
- package/dist-es/commands/SendMessageCommand.js +20 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAgentSpaceCommand.js +16 -0
- package/dist-es/commands/UpdateAssociationCommand.js +16 -0
- package/dist-es/commands/UpdateBacklogTaskCommand.js +16 -0
- package/dist-es/commands/UpdateGoalCommand.js +16 -0
- package/dist-es/commands/UpdateOperatorAppIdpConfigCommand.js +16 -0
- package/dist-es/commands/UpdatePrivateConnectionCertificateCommand.js +16 -0
- package/dist-es/commands/UpdateRecommendationCommand.js +16 -0
- package/dist-es/commands/ValidateAwsAssociationsCommand.js +16 -0
- package/dist-es/commands/index.js +48 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/DevOpsAgentServiceException.js +8 -0
- package/dist-es/models/enums.js +164 -0
- package/dist-es/models/errors.js +127 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAgentSpacesPaginator.js +4 -0
- package/dist-es/pagination/ListAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListBacklogTasksPaginator.js +4 -0
- package/dist-es/pagination/ListExecutionsPaginator.js +4 -0
- package/dist-es/pagination/ListGoalsPaginator.js +4 -0
- package/dist-es/pagination/ListJournalRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListServicesPaginator.js +4 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/runtimeConfig.browser.js +35 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1883 -0
- package/dist-types/DevOpsAgent.d.ts +409 -0
- package/dist-types/DevOpsAgentClient.d.ts +250 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AllowVendedLogDeliveryForResourceCommand.d.ts +100 -0
- package/dist-types/commands/AssociateServiceCommand.d.ts +300 -0
- package/dist-types/commands/CreateAgentSpaceCommand.d.ts +121 -0
- package/dist-types/commands/CreateBacklogTaskCommand.d.ts +139 -0
- package/dist-types/commands/CreateChatCommand.d.ts +106 -0
- package/dist-types/commands/CreatePrivateConnectionCommand.d.ts +138 -0
- package/dist-types/commands/DeleteAgentSpaceCommand.d.ts +101 -0
- package/dist-types/commands/DeletePrivateConnectionCommand.d.ts +104 -0
- package/dist-types/commands/DeregisterServiceCommand.d.ts +101 -0
- package/dist-types/commands/DescribePrivateConnectionCommand.d.ts +113 -0
- package/dist-types/commands/DescribeSupportLevelCommand.d.ts +112 -0
- package/dist-types/commands/DisableOperatorAppCommand.d.ts +105 -0
- package/dist-types/commands/DisassociateServiceCommand.d.ts +102 -0
- package/dist-types/commands/EnableOperatorAppCommand.d.ts +133 -0
- package/dist-types/commands/EndChatForCaseCommand.d.ts +109 -0
- package/dist-types/commands/GetAccountUsageCommand.d.ts +114 -0
- package/dist-types/commands/GetAgentSpaceCommand.d.ts +114 -0
- package/dist-types/commands/GetAssociationCommand.d.ts +202 -0
- package/dist-types/commands/GetBacklogTaskCommand.d.ts +128 -0
- package/dist-types/commands/GetOperatorAppCommand.d.ts +122 -0
- package/dist-types/commands/GetRecommendationCommand.d.ts +122 -0
- package/dist-types/commands/GetServiceCommand.d.ts +188 -0
- package/dist-types/commands/InitiateChatForCaseCommand.d.ts +109 -0
- package/dist-types/commands/ListAgentSpacesCommand.d.ts +115 -0
- package/dist-types/commands/ListAssociationsCommand.d.ts +207 -0
- package/dist-types/commands/ListBacklogTasksCommand.d.ts +148 -0
- package/dist-types/commands/ListChatsCommand.d.ts +114 -0
- package/dist-types/commands/ListExecutionsCommand.d.ts +119 -0
- package/dist-types/commands/ListGoalsCommand.d.ts +130 -0
- package/dist-types/commands/ListJournalRecordsCommand.d.ts +122 -0
- package/dist-types/commands/ListPendingMessagesCommand.d.ts +125 -0
- package/dist-types/commands/ListPrivateConnectionsCommand.d.ts +112 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +129 -0
- package/dist-types/commands/ListServicesCommand.d.ts +190 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +105 -0
- package/dist-types/commands/ListWebhooksCommand.d.ts +110 -0
- package/dist-types/commands/RegisterServiceCommand.d.ts +347 -0
- package/dist-types/commands/SendMessageCommand.d.ts +166 -0
- package/dist-types/commands/TagResourceCommand.d.ts +104 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +104 -0
- package/dist-types/commands/UpdateAgentSpaceCommand.d.ts +114 -0
- package/dist-types/commands/UpdateAssociationCommand.d.ts +300 -0
- package/dist-types/commands/UpdateBacklogTaskCommand.d.ts +130 -0
- package/dist-types/commands/UpdateGoalCommand.d.ts +128 -0
- package/dist-types/commands/UpdateOperatorAppIdpConfigCommand.d.ts +112 -0
- package/dist-types/commands/UpdatePrivateConnectionCertificateCommand.d.ts +111 -0
- package/dist-types/commands/UpdateRecommendationCommand.d.ts +124 -0
- package/dist-types/commands/ValidateAwsAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +48 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +27 -0
- package/dist-types/models/DevOpsAgentServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +631 -0
- package/dist-types/models/errors.d.ts +138 -0
- package/dist-types/models/models_0.d.ts +5708 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAgentSpacesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBacklogTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGoalsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListJournalRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServicesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/runtimeConfig.d.ts +56 -0
- package/dist-types/runtimeConfig.native.d.ts +55 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +271 -0
- package/dist-types/ts3.4/DevOpsAgent.d.ts +892 -0
- package/dist-types/ts3.4/DevOpsAgentClient.d.ts +414 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AllowVendedLogDeliveryForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/AssociateServiceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateBacklogTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateChatCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreatePrivateConnectionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeletePrivateConnectionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterServiceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribePrivateConnectionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeSupportLevelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableOperatorAppCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DisassociateServiceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableOperatorAppCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/EndChatForCaseCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAccountUsageCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAgentSpaceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetAssociationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetBacklogTaskCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetOperatorAppCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InitiateChatForCaseCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAgentSpacesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListBacklogTasksCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListChatsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListGoalsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListJournalRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPendingMessagesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPrivateConnectionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWebhooksCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RegisterServiceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateBacklogTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGoalCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateOperatorAppIdpConfigCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdatePrivateConnectionCertificateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateRecommendationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ValidateAwsAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +48 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/DevOpsAgentServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +207 -0
- package/dist-types/ts3.4/models/errors.d.ts +75 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2202 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAgentSpacesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBacklogTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGoalsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListJournalRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +105 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +271 -0
- package/package.json +103 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export const GithubRepoOwnerType = {
|
|
2
|
+
ORGANIZATION: "organization",
|
|
3
|
+
USER: "user",
|
|
4
|
+
};
|
|
5
|
+
export const GitLabTokenType = {
|
|
6
|
+
GROUP: "group",
|
|
7
|
+
PERSONAL: "personal",
|
|
8
|
+
};
|
|
9
|
+
export const MCPServerAuthorizationMethod = {
|
|
10
|
+
API_KEY: "api-key",
|
|
11
|
+
BEARER_TOKEN: "bearer-token",
|
|
12
|
+
OAUTH_3LO: "oauth-3lo",
|
|
13
|
+
OAUTH_CLIENT_CREDENTIALS: "oauth-client-credentials",
|
|
14
|
+
};
|
|
15
|
+
export const NewRelicRegion = {
|
|
16
|
+
EU: "EU",
|
|
17
|
+
US: "US",
|
|
18
|
+
};
|
|
19
|
+
export const MonitorAccountType = {
|
|
20
|
+
MONITOR: "monitor",
|
|
21
|
+
};
|
|
22
|
+
export const SourceAccountType = {
|
|
23
|
+
SOURCE: "source",
|
|
24
|
+
};
|
|
25
|
+
export const ValidationStatus = {
|
|
26
|
+
INVALID: "invalid",
|
|
27
|
+
PENDING_CONFIRMATION: "pending-confirmation",
|
|
28
|
+
VALID: "valid",
|
|
29
|
+
};
|
|
30
|
+
export const WebhookType = {
|
|
31
|
+
API_KEY: "apikey",
|
|
32
|
+
GITLAB: "gitlab",
|
|
33
|
+
HMAC: "hmac",
|
|
34
|
+
PAGERDUTY: "pagerduty",
|
|
35
|
+
};
|
|
36
|
+
export const AuthFlow = {
|
|
37
|
+
IAM: "iam",
|
|
38
|
+
IDC: "idc",
|
|
39
|
+
IDP: "idp",
|
|
40
|
+
};
|
|
41
|
+
export const Priority = {
|
|
42
|
+
CRITICAL: "CRITICAL",
|
|
43
|
+
HIGH: "HIGH",
|
|
44
|
+
LOW: "LOW",
|
|
45
|
+
MEDIUM: "MEDIUM",
|
|
46
|
+
MINIMAL: "MINIMAL",
|
|
47
|
+
};
|
|
48
|
+
export const TaskType = {
|
|
49
|
+
EVALUATION: "EVALUATION",
|
|
50
|
+
INVESTIGATION: "INVESTIGATION",
|
|
51
|
+
};
|
|
52
|
+
export const TaskStatus = {
|
|
53
|
+
CANCELED: "CANCELED",
|
|
54
|
+
COMPLETED: "COMPLETED",
|
|
55
|
+
FAILED: "FAILED",
|
|
56
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
57
|
+
LINKED: "LINKED",
|
|
58
|
+
PENDING_CUSTOMER_APPROVAL: "PENDING_CUSTOMER_APPROVAL",
|
|
59
|
+
PENDING_START: "PENDING_START",
|
|
60
|
+
PENDING_TRIAGE: "PENDING_TRIAGE",
|
|
61
|
+
TIMED_OUT: "TIMED_OUT",
|
|
62
|
+
};
|
|
63
|
+
export const UserType = {
|
|
64
|
+
IAM: "IAM",
|
|
65
|
+
IDC: "IDC",
|
|
66
|
+
IDP: "IDP",
|
|
67
|
+
};
|
|
68
|
+
export const IpAddressType = {
|
|
69
|
+
DUAL_STACK: "DUAL_STACK",
|
|
70
|
+
IPV4: "IPV4",
|
|
71
|
+
IPV6: "IPV6",
|
|
72
|
+
};
|
|
73
|
+
export const PrivateConnectionStatus = {
|
|
74
|
+
ACTIVE: "ACTIVE",
|
|
75
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
76
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
77
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
78
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
79
|
+
};
|
|
80
|
+
export const PrivateConnectionType = {
|
|
81
|
+
SELF_MANAGED: "SELF_MANAGED",
|
|
82
|
+
SERVICE_MANAGED: "SERVICE_MANAGED",
|
|
83
|
+
};
|
|
84
|
+
export const RecommendationPriority = {
|
|
85
|
+
HIGH: "HIGH",
|
|
86
|
+
LOW: "LOW",
|
|
87
|
+
MEDIUM: "MEDIUM",
|
|
88
|
+
};
|
|
89
|
+
export const RecommendationStatus = {
|
|
90
|
+
ACCEPTED: "ACCEPTED",
|
|
91
|
+
CLOSED: "CLOSED",
|
|
92
|
+
COMPLETED: "COMPLETED",
|
|
93
|
+
PROPOSED: "PROPOSED",
|
|
94
|
+
REJECTED: "REJECTED",
|
|
95
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
96
|
+
};
|
|
97
|
+
export const TaskSortOrder = {
|
|
98
|
+
ASC: "ASC",
|
|
99
|
+
DESC: "DESC",
|
|
100
|
+
};
|
|
101
|
+
export const TaskSortField = {
|
|
102
|
+
CREATED_AT: "CREATED_AT",
|
|
103
|
+
PRIORITY: "PRIORITY",
|
|
104
|
+
};
|
|
105
|
+
export const ExecutionStatus = {
|
|
106
|
+
CANCELED: "CANCELED",
|
|
107
|
+
FAILED: "FAILED",
|
|
108
|
+
RUNNING: "RUNNING",
|
|
109
|
+
STOPPED: "STOPPED",
|
|
110
|
+
TIMED_OUT: "TIMED_OUT",
|
|
111
|
+
};
|
|
112
|
+
export const GoalType = {
|
|
113
|
+
CUSTOMER_DEFINED: "CUSTOMER_DEFINED",
|
|
114
|
+
ONCALL_REPORT: "ONCALL_REPORT",
|
|
115
|
+
};
|
|
116
|
+
export const GoalStatus = {
|
|
117
|
+
ACTIVE: "ACTIVE",
|
|
118
|
+
COMPLETE: "COMPLETE",
|
|
119
|
+
PAUSED: "PAUSED",
|
|
120
|
+
};
|
|
121
|
+
export const SchedulerState = {
|
|
122
|
+
DISABLED: "DISABLED",
|
|
123
|
+
ENABLED: "ENABLED",
|
|
124
|
+
};
|
|
125
|
+
export const OrderType = {
|
|
126
|
+
ASC: "ASC",
|
|
127
|
+
DESC: "DESC",
|
|
128
|
+
};
|
|
129
|
+
export const Service = {
|
|
130
|
+
AZURE: "azure",
|
|
131
|
+
AZURE_DEVOPS: "azuredevops",
|
|
132
|
+
AZURE_IDENTITY: "azureidentity",
|
|
133
|
+
DYNATRACE: "dynatrace",
|
|
134
|
+
EVENTCHANNEL: "eventChannel",
|
|
135
|
+
GITHUB: "github",
|
|
136
|
+
GITLAB: "gitlab",
|
|
137
|
+
MCP_SERVER: "mcpserver",
|
|
138
|
+
MCP_SERVER_DATADOG: "mcpserverdatadog",
|
|
139
|
+
MCP_SERVER_GRAFANA: "mcpservergrafana",
|
|
140
|
+
MCP_SERVER_NEWRELIC: "mcpservernewrelic",
|
|
141
|
+
MCP_SERVER_SIGV4: "mcpserversigv4",
|
|
142
|
+
MCP_SERVER_SPLUNK: "mcpserversplunk",
|
|
143
|
+
MS_TEAMS: "msteams",
|
|
144
|
+
PAGERDUTY: "pagerduty",
|
|
145
|
+
SERVICENOW: "servicenow",
|
|
146
|
+
SLACK: "slack",
|
|
147
|
+
};
|
|
148
|
+
export const PostRegisterServiceSupportedService = {
|
|
149
|
+
AZURE_IDENTITY: "azureidentity",
|
|
150
|
+
DYNATRACE: "dynatrace",
|
|
151
|
+
EVENTCHANNEL: "eventChannel",
|
|
152
|
+
GITLAB: "gitlab",
|
|
153
|
+
MCP_SERVER: "mcpserver",
|
|
154
|
+
MCP_SERVER_DATADOG: "mcpserverdatadog",
|
|
155
|
+
MCP_SERVER_GRAFANA: "mcpservergrafana",
|
|
156
|
+
MCP_SERVER_NEWRELIC: "mcpservernewrelic",
|
|
157
|
+
MCP_SERVER_SIGV4: "mcpserversigv4",
|
|
158
|
+
MCP_SERVER_SPLUNK: "mcpserversplunk",
|
|
159
|
+
PAGERDUTY: "pagerduty",
|
|
160
|
+
SERVICENOW: "servicenow",
|
|
161
|
+
};
|
|
162
|
+
export const EventChannelType = {
|
|
163
|
+
WEBHOOK: "webhook",
|
|
164
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { DevOpsAgentServiceException as __BaseException } from "./DevOpsAgentServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ConflictException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ContentSizeExceededException extends __BaseException {
|
|
27
|
+
name = "ContentSizeExceededException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ContentSizeExceededException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ContentSizeExceededException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class InternalServerException extends __BaseException {
|
|
39
|
+
name = "InternalServerException";
|
|
40
|
+
$fault = "server";
|
|
41
|
+
$retryable = {};
|
|
42
|
+
constructor(opts) {
|
|
43
|
+
super({
|
|
44
|
+
name: "InternalServerException",
|
|
45
|
+
$fault: "server",
|
|
46
|
+
...opts,
|
|
47
|
+
});
|
|
48
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export class InvalidParameterException extends __BaseException {
|
|
52
|
+
name = "InvalidParameterException";
|
|
53
|
+
$fault = "client";
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InvalidParameterException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
64
|
+
name = "ResourceNotFoundException";
|
|
65
|
+
$fault = "client";
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "ResourceNotFoundException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
76
|
+
name = "ServiceQuotaExceededException";
|
|
77
|
+
$fault = "client";
|
|
78
|
+
constructor(opts) {
|
|
79
|
+
super({
|
|
80
|
+
name: "ServiceQuotaExceededException",
|
|
81
|
+
$fault: "client",
|
|
82
|
+
...opts,
|
|
83
|
+
});
|
|
84
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export class ThrottlingException extends __BaseException {
|
|
88
|
+
name = "ThrottlingException";
|
|
89
|
+
$fault = "client";
|
|
90
|
+
$retryable = {};
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "ThrottlingException",
|
|
94
|
+
$fault: "client",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export class ValidationException extends __BaseException {
|
|
101
|
+
name = "ValidationException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
fieldList;
|
|
104
|
+
constructor(opts) {
|
|
105
|
+
super({
|
|
106
|
+
name: "ValidationException",
|
|
107
|
+
$fault: "client",
|
|
108
|
+
...opts,
|
|
109
|
+
});
|
|
110
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
111
|
+
this.fieldList = opts.fieldList;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class IdentityCenterServiceException extends __BaseException {
|
|
115
|
+
name = "IdentityCenterServiceException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
underlyingErrorCode;
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "IdentityCenterServiceException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
Object.setPrototypeOf(this, IdentityCenterServiceException.prototype);
|
|
125
|
+
this.underlyingErrorCode = opts.underlyingErrorCode;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAgentSpacesCommand, } from "../commands/ListAgentSpacesCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListAgentSpaces = createPaginator(DevOpsAgentClient, ListAgentSpacesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAssociationsCommand, } from "../commands/ListAssociationsCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListAssociations = createPaginator(DevOpsAgentClient, ListAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListBacklogTasksCommand, } from "../commands/ListBacklogTasksCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListBacklogTasks = createPaginator(DevOpsAgentClient, ListBacklogTasksCommand, "nextToken", "nextToken", "limit");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListExecutionsCommand, } from "../commands/ListExecutionsCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListExecutions = createPaginator(DevOpsAgentClient, ListExecutionsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListGoalsCommand } from "../commands/ListGoalsCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListGoals = createPaginator(DevOpsAgentClient, ListGoalsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListJournalRecordsCommand, } from "../commands/ListJournalRecordsCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListJournalRecords = createPaginator(DevOpsAgentClient, ListJournalRecordsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListServicesCommand, } from "../commands/ListServicesCommand";
|
|
3
|
+
import { DevOpsAgentClient } from "../DevOpsAgentClient";
|
|
4
|
+
export const paginateListServices = createPaginator(DevOpsAgentClient, ListServicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAgentSpacesPaginator";
|
|
3
|
+
export * from "./ListAssociationsPaginator";
|
|
4
|
+
export * from "./ListBacklogTasksPaginator";
|
|
5
|
+
export * from "./ListExecutionsPaginator";
|
|
6
|
+
export * from "./ListGoalsPaginator";
|
|
7
|
+
export * from "./ListJournalRecordsPaginator";
|
|
8
|
+
export * from "./ListServicesPaginator";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
6
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
8
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
9
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
10
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
11
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
16
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
+
return {
|
|
18
|
+
...clientSharedValues,
|
|
19
|
+
...config,
|
|
20
|
+
runtime: "browser",
|
|
21
|
+
defaultsMode,
|
|
22
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
23
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
28
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
30
|
+
sha256: config?.sha256 ?? Sha256,
|
|
31
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
|
|
3
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
6
|
+
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";
|
|
7
|
+
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
|
|
8
|
+
import { Hash } from "@smithy/hash-node";
|
|
9
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
10
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
11
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
13
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
16
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
23
|
+
const loaderConfig = {
|
|
24
|
+
profile: config?.profile,
|
|
25
|
+
logger: clientSharedValues.logger,
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
38
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
|
+
}, config),
|
|
45
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -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,39 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultDevOpsAgentHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
|
+
export const getRuntimeConfig = (config) => {
|
|
11
|
+
return {
|
|
12
|
+
apiVersion: "2026-01-01",
|
|
13
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
14
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
15
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
17
|
+
extensions: config?.extensions ?? [],
|
|
18
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDevOpsAgentHttpAuthSchemeProvider,
|
|
19
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
20
|
+
{
|
|
21
|
+
schemeId: "aws.auth#sigv4",
|
|
22
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
23
|
+
signer: new AwsSdkSigV4Signer(),
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
28
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
29
|
+
defaultNamespace: "com.amazonaws.devopsagent",
|
|
30
|
+
errorTypeRegistries,
|
|
31
|
+
version: "2026-01-01",
|
|
32
|
+
serviceTarget: "DevOpsAgent",
|
|
33
|
+
},
|
|
34
|
+
serviceId: config?.serviceId ?? "DevOps Agent",
|
|
35
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|