@aws-sdk/client-securityagent 3.1142.0 → 3.1144.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 +7 -0
- package/dist-cjs/index.js +123 -43
- package/dist-es/SecurityAgent.js +2 -0
- package/dist-es/commands/UpdateIntegrationCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +5 -0
- package/dist-es/schemas/schemas_0.js +103 -42
- package/dist-types/SecurityAgent.d.ts +7 -0
- package/dist-types/SecurityAgentClient.d.ts +3 -2
- package/dist-types/commands/CreateIntegrationCommand.d.ts +11 -1
- package/dist-types/commands/GetIntegrationCommand.d.ts +2 -1
- package/dist-types/commands/InitiateProviderRegistrationCommand.d.ts +5 -1
- package/dist-types/commands/ListIntegratedResourcesCommand.d.ts +12 -0
- package/dist-types/commands/ListIntegrationsCommand.d.ts +3 -2
- package/dist-types/commands/UpdateIntegratedResourcesCommand.d.ts +10 -1
- package/dist-types/commands/UpdateIntegrationCommand.d.ts +92 -0
- package/dist-types/commands/UpdatePentestCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThreatCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThreatModelCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +281 -427
- package/dist-types/models/models_1.d.ts +422 -2
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/SecurityAgent.d.ts +17 -0
- package/dist-types/ts3.4/SecurityAgentClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateIntegratedResourcesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateIntegrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePentestCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateThreatCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateThreatModelCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +120 -89
- package/dist-types/ts3.4/models/models_1.d.ts +112 -2
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateIntegrationInput, UpdateIntegrationOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateIntegrationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateIntegrationCommandInput extends UpdateIntegrationInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateIntegrationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateIntegrationCommandOutput extends UpdateIntegrationOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateIntegrationCommand_base: {
|
|
22
|
+
new (input: UpdateIntegrationCommandInput): import("@smithy/core/client").CommandImpl<UpdateIntegrationCommandInput, UpdateIntegrationCommandOutput, import("..").SecurityAgentClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateIntegrationCommandInput): import("@smithy/core/client").CommandImpl<UpdateIntegrationCommandInput, UpdateIntegrationCommandOutput, import("..").SecurityAgentClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates an integration's webhook, or rotates the HMAC signing secret of an existing one. The secret is returned only once, in this response, and cannot be retrieved again.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityAgentClient, UpdateIntegrationCommand } from "@aws-sdk/client-securityagent"; // ES Modules import
|
|
32
|
+
* // const { SecurityAgentClient, UpdateIntegrationCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import
|
|
33
|
+
* // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent";
|
|
34
|
+
* const config = {}; // type is SecurityAgentClientConfig
|
|
35
|
+
* const client = new SecurityAgentClient(config);
|
|
36
|
+
* const input = { // UpdateIntegrationInput
|
|
37
|
+
* integrationId: "STRING_VALUE", // required
|
|
38
|
+
* webhookAction: "CREATE_IF_ABSENT" || "ROTATE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new UpdateIntegrationCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // UpdateIntegrationOutput
|
|
43
|
+
* // integrationId: "STRING_VALUE", // required
|
|
44
|
+
* // webhookUrl: "STRING_VALUE",
|
|
45
|
+
* // secret: "STRING_VALUE",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param UpdateIntegrationCommandInput - {@link UpdateIntegrationCommandInput}
|
|
51
|
+
* @returns {@link UpdateIntegrationCommandOutput}
|
|
52
|
+
* @see {@link UpdateIntegrationCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link UpdateIntegrationCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ConflictException} (client fault)
|
|
60
|
+
* <p>The request could not be completed due to a conflict with the current state of the resource.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>An unexpected error occurred during the processing of your request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* <p>The request was denied due to request throttling.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link SecurityAgentServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from SecurityAgent service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class UpdateIntegrationCommand extends UpdateIntegrationCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: UpdateIntegrationInput;
|
|
85
|
+
output: UpdateIntegrationOutput;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: UpdateIntegrationCommandInput;
|
|
89
|
+
output: UpdateIntegrationCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { UpdateThreatModelInput } from "../models/
|
|
3
|
-
import type { UpdateThreatModelOutput } from "../models/models_1";
|
|
2
|
+
import type { UpdateThreatModelInput, UpdateThreatModelOutput } from "../models/models_1";
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
@@ -84,6 +84,7 @@ export * from "./UpdateApplicationCommand";
|
|
|
84
84
|
export * from "./UpdateCodeReviewCommand";
|
|
85
85
|
export * from "./UpdateFindingCommand";
|
|
86
86
|
export * from "./UpdateIntegratedResourcesCommand";
|
|
87
|
+
export * from "./UpdateIntegrationCommand";
|
|
87
88
|
export * from "./UpdatePentestCommand";
|
|
88
89
|
export * from "./UpdatePrivateConnectionCertificateCommand";
|
|
89
90
|
export * from "./UpdateSecurityRequirementPackCommand";
|
|
@@ -721,6 +721,7 @@ export type GitLabTokenType = (typeof GitLabTokenType)[keyof typeof GitLabTokenT
|
|
|
721
721
|
* @enum
|
|
722
722
|
*/
|
|
723
723
|
export declare const Provider: {
|
|
724
|
+
readonly AZURE_DEVOPS: "AZURE_DEVOPS";
|
|
724
725
|
readonly BITBUCKET: "BITBUCKET";
|
|
725
726
|
readonly CONFLUENCE: "CONFLUENCE";
|
|
726
727
|
readonly GITHUB: "GITHUB";
|
|
@@ -875,6 +876,24 @@ export declare const SecurityRequirementArtifactFormat: {
|
|
|
875
876
|
* @public
|
|
876
877
|
*/
|
|
877
878
|
export type SecurityRequirementArtifactFormat = (typeof SecurityRequirementArtifactFormat)[keyof typeof SecurityRequirementArtifactFormat];
|
|
879
|
+
/**
|
|
880
|
+
* @public
|
|
881
|
+
* @enum
|
|
882
|
+
*/
|
|
883
|
+
export declare const WebhookAction: {
|
|
884
|
+
/**
|
|
885
|
+
* <p>Create the webhook if one does not already exist. Returns the payload URL and the signing secret.</p>
|
|
886
|
+
*/
|
|
887
|
+
readonly CREATE_IF_ABSENT: "CREATE_IF_ABSENT";
|
|
888
|
+
/**
|
|
889
|
+
* <p>Generate a new signing secret for the existing webhook, keeping the same payload URL. Returns the new secret.</p>
|
|
890
|
+
*/
|
|
891
|
+
readonly ROTATE: "ROTATE";
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* @public
|
|
895
|
+
*/
|
|
896
|
+
export type WebhookAction = (typeof WebhookAction)[keyof typeof WebhookAction];
|
|
878
897
|
/**
|
|
879
898
|
* @public
|
|
880
899
|
* @enum
|