@aws-sdk/client-security-ir 3.774.0 → 3.777.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/dist-cjs/SecurityIRClient.js +2 -1
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/runtimeExtensions.js +2 -14
- package/dist-es/SecurityIRClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/BatchGetMemberAccountDetailsCommand.d.ts +9 -9
- package/dist-types/commands/CancelMembershipCommand.d.ts +5 -5
- package/dist-types/commands/CloseCaseCommand.d.ts +6 -6
- package/dist-types/commands/CreateCaseCommand.d.ts +25 -22
- package/dist-types/commands/CreateCaseCommentCommand.d.ts +6 -6
- package/dist-types/commands/CreateMembershipCommand.d.ts +15 -15
- package/dist-types/commands/GetCaseAttachmentDownloadUrlCommand.d.ts +6 -6
- package/dist-types/commands/GetCaseAttachmentUploadUrlCommand.d.ts +7 -7
- package/dist-types/commands/GetCaseCommand.d.ts +29 -29
- package/dist-types/commands/GetMembershipCommand.d.ts +24 -24
- package/dist-types/commands/ListCaseEditsCommand.d.ts +10 -10
- package/dist-types/commands/ListCasesCommand.d.ts +15 -15
- package/dist-types/commands/ListCommentsCommand.d.ts +8 -8
- package/dist-types/commands/ListMembershipsCommand.d.ts +10 -10
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/TagResourceCommand.d.ts +10 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateCaseCommand.d.ts +34 -31
- package/dist-types/commands/UpdateCaseCommentCommand.d.ts +8 -8
- package/dist-types/commands/UpdateCaseStatusCommand.d.ts +6 -6
- package/dist-types/commands/UpdateMembershipCommand.d.ts +18 -15
- package/dist-types/commands/UpdateResolverTypeCommand.d.ts +8 -8
- package/package.json +33 -33
|
@@ -20,6 +20,8 @@ class SecurityIRClient extends smithy_client_1.Client {
|
|
|
20
20
|
config;
|
|
21
21
|
constructor(...[configuration]) {
|
|
22
22
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
23
|
+
super(_config_0);
|
|
24
|
+
this.initConfig = _config_0;
|
|
23
25
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
24
26
|
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
25
27
|
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
@@ -28,7 +30,6 @@ class SecurityIRClient extends smithy_client_1.Client {
|
|
|
28
30
|
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
29
31
|
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
30
32
|
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
31
|
-
super(_config_8);
|
|
32
33
|
this.config = _config_8;
|
|
33
34
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
34
35
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
@@ -40,8 +40,6 @@ const defaultSecurityIRHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultSecurityIRHttpAuthSchemeProvider = defaultSecurityIRHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
5
|
+
return Object.assign(options, {
|
|
7
6
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
8
7
|
defaultSigningName: "security-ir",
|
|
9
|
-
};
|
|
8
|
+
});
|
|
10
9
|
};
|
|
11
10
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
12
11
|
exports.commonParams = {
|
|
@@ -5,21 +5,9 @@ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const asPartial = (t) => t;
|
|
9
8
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
10
|
-
const extensionConfiguration =
|
|
11
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
-
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
15
|
-
};
|
|
9
|
+
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
16
10
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
17
|
-
return
|
|
18
|
-
...runtimeConfig,
|
|
19
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
20
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
21
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
-
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
23
|
-
};
|
|
11
|
+
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
24
12
|
};
|
|
25
13
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -17,6 +17,8 @@ export class SecurityIRClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class SecurityIRClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultSecurityIRHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
4
|
defaultSigningName: "security-ir",
|
|
6
|
-
};
|
|
5
|
+
});
|
|
7
6
|
};
|
|
8
7
|
export const commonParams = {
|
|
9
8
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -97,32 +97,32 @@ declare const BatchGetMemberAccountDetailsCommand_base: {
|
|
|
97
97
|
* @throws {@link SecurityIRServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
99
99
|
*
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
101
|
* @example Invoke BatchGetMemberAccountDetails
|
|
102
102
|
* ```javascript
|
|
103
103
|
* //
|
|
104
104
|
* const input = {
|
|
105
|
-
*
|
|
105
|
+
* accountIds: [
|
|
106
106
|
* "123412341234"
|
|
107
107
|
* ],
|
|
108
|
-
*
|
|
108
|
+
* membershipId: "m-abcd1234efgh"
|
|
109
109
|
* };
|
|
110
110
|
* const command = new BatchGetMemberAccountDetailsCommand(input);
|
|
111
111
|
* const response = await client.send(command);
|
|
112
|
-
* /* response
|
|
112
|
+
* /* response is
|
|
113
113
|
* {
|
|
114
|
-
*
|
|
114
|
+
* items: [
|
|
115
115
|
* {
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
116
|
+
* accountId: "123412341234",
|
|
117
|
+
* relationshipStatus: "Associated",
|
|
118
|
+
* relationshipType: "Organization"
|
|
119
119
|
* }
|
|
120
120
|
* ]
|
|
121
121
|
* }
|
|
122
122
|
* *\/
|
|
123
|
-
* // example id: example-1
|
|
124
123
|
* ```
|
|
125
124
|
*
|
|
125
|
+
* @public
|
|
126
126
|
*/
|
|
127
127
|
export declare class BatchGetMemberAccountDetailsCommand extends BatchGetMemberAccountDetailsCommand_base {
|
|
128
128
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -81,23 +81,23 @@ declare const CancelMembershipCommand_base: {
|
|
|
81
81
|
* @throws {@link SecurityIRServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
*
|
|
85
85
|
* @example Invoke CancelMembership
|
|
86
86
|
* ```javascript
|
|
87
87
|
* //
|
|
88
88
|
* const input = {
|
|
89
|
-
*
|
|
89
|
+
* membershipId: "m-abcd1234efgh"
|
|
90
90
|
* };
|
|
91
91
|
* const command = new CancelMembershipCommand(input);
|
|
92
92
|
* const response = await client.send(command);
|
|
93
|
-
* /* response
|
|
93
|
+
* /* response is
|
|
94
94
|
* {
|
|
95
|
-
*
|
|
95
|
+
* membershipId: "m-abcd1234efgh"
|
|
96
96
|
* }
|
|
97
97
|
* *\/
|
|
98
|
-
* // example id: example-1
|
|
99
98
|
* ```
|
|
100
99
|
*
|
|
100
|
+
* @public
|
|
101
101
|
*/
|
|
102
102
|
export declare class CancelMembershipCommand extends CancelMembershipCommand_base {
|
|
103
103
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,24 +82,24 @@ declare const CloseCaseCommand_base: {
|
|
|
82
82
|
* @throws {@link SecurityIRServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example Invoke CloseCase
|
|
87
87
|
* ```javascript
|
|
88
88
|
* //
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
90
|
+
* caseId: "8403556009"
|
|
91
91
|
* };
|
|
92
92
|
* const command = new CloseCaseCommand(input);
|
|
93
93
|
* const response = await client.send(command);
|
|
94
|
-
* /* response
|
|
94
|
+
* /* response is
|
|
95
95
|
* {
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* caseStatus: "Closed",
|
|
97
|
+
* closedDate: "2024-02-27T17:01:33.000Z"
|
|
98
98
|
* }
|
|
99
99
|
* *\/
|
|
100
|
-
* // example id: example-1
|
|
101
100
|
* ```
|
|
102
101
|
*
|
|
102
|
+
* @public
|
|
103
103
|
*/
|
|
104
104
|
export declare class CloseCaseCommand extends CloseCaseCommand_base {
|
|
105
105
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -113,53 +113,56 @@ declare const CreateCaseCommand_base: {
|
|
|
113
113
|
* @throws {@link SecurityIRServiceException}
|
|
114
114
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
115
115
|
*
|
|
116
|
-
*
|
|
116
|
+
*
|
|
117
117
|
* @example Invoke CreateCase
|
|
118
118
|
* ```javascript
|
|
119
119
|
* //
|
|
120
120
|
* const input = {
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
121
|
+
* description: "Case description",
|
|
122
|
+
* engagementType: "Investigation",
|
|
123
|
+
* impactedAccounts: [
|
|
124
124
|
* "000000000000",
|
|
125
125
|
* "111111111111"
|
|
126
126
|
* ],
|
|
127
|
-
*
|
|
127
|
+
* impactedAwsRegions: [
|
|
128
128
|
* {
|
|
129
|
-
*
|
|
129
|
+
* region: "ap-southeast-1"
|
|
130
130
|
* }
|
|
131
131
|
* ],
|
|
132
|
-
*
|
|
132
|
+
* impactedServices: [
|
|
133
133
|
* "Amazon EC2",
|
|
134
134
|
* "Amazon EKS"
|
|
135
135
|
* ],
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
136
|
+
* reportedIncidentStartDate: "2023-03-27T15:32:01.789Z",
|
|
137
|
+
* resolverType: "Self",
|
|
138
|
+
* threatActorIpAddresses: [
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
140
|
+
* ipAddress: "192.168.192.168",
|
|
141
|
+
* userAgent: "Browser"
|
|
142
142
|
* }
|
|
143
143
|
* ],
|
|
144
|
-
*
|
|
145
|
-
*
|
|
144
|
+
* title: "My sample case",
|
|
145
|
+
* watchers: [
|
|
146
146
|
* {
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
147
|
+
* email: "alice@example.com",
|
|
148
|
+
* jobTitle: "CEO",
|
|
149
|
+
* name: "Alice"
|
|
150
150
|
* },
|
|
151
151
|
* {
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
152
|
+
* email: "bob@example.com",
|
|
153
|
+
* jobTitle: "CFO",
|
|
154
|
+
* name: "Bob"
|
|
155
155
|
* }
|
|
156
156
|
* ]
|
|
157
157
|
* };
|
|
158
158
|
* const command = new CreateCaseCommand(input);
|
|
159
|
-
* await client.send(command);
|
|
160
|
-
*
|
|
159
|
+
* const response = await client.send(command);
|
|
160
|
+
* /* response is
|
|
161
|
+
* { /* metadata only *\/ }
|
|
162
|
+
* *\/
|
|
161
163
|
* ```
|
|
162
164
|
*
|
|
165
|
+
* @public
|
|
163
166
|
*/
|
|
164
167
|
export declare class CreateCaseCommand extends CreateCaseCommand_base {
|
|
165
168
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -83,24 +83,24 @@ declare const CreateCaseCommentCommand_base: {
|
|
|
83
83
|
* @throws {@link SecurityIRServiceException}
|
|
84
84
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
85
85
|
*
|
|
86
|
-
*
|
|
86
|
+
*
|
|
87
87
|
* @example Invoke CreateCaseComment
|
|
88
88
|
* ```javascript
|
|
89
89
|
* //
|
|
90
90
|
* const input = {
|
|
91
|
-
*
|
|
92
|
-
*
|
|
91
|
+
* body: "Case comment body.",
|
|
92
|
+
* caseId: "8403556009"
|
|
93
93
|
* };
|
|
94
94
|
* const command = new CreateCaseCommentCommand(input);
|
|
95
95
|
* const response = await client.send(command);
|
|
96
|
-
* /* response
|
|
96
|
+
* /* response is
|
|
97
97
|
* {
|
|
98
|
-
*
|
|
98
|
+
* commentId: "000000"
|
|
99
99
|
* }
|
|
100
100
|
* *\/
|
|
101
|
-
* // example id: example-1
|
|
102
101
|
* ```
|
|
103
102
|
*
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
105
|
export declare class CreateCaseCommentCommand extends CreateCaseCommentCommand_base {
|
|
106
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -98,41 +98,41 @@ declare const CreateMembershipCommand_base: {
|
|
|
98
98
|
* @throws {@link SecurityIRServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
100
100
|
*
|
|
101
|
-
*
|
|
101
|
+
*
|
|
102
102
|
* @example Invoke CreateMembership
|
|
103
103
|
* ```javascript
|
|
104
104
|
* //
|
|
105
105
|
* const input = {
|
|
106
|
-
*
|
|
106
|
+
* incidentResponseTeam: [
|
|
107
107
|
* {
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
108
|
+
* email: "bob.jones@gmail.com",
|
|
109
|
+
* jobTitle: "Security Responder",
|
|
110
|
+
* name: "Bob Jones"
|
|
111
111
|
* },
|
|
112
112
|
* {
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
113
|
+
* email: "alice@example.com",
|
|
114
|
+
* jobTitle: "CEO",
|
|
115
|
+
* name: "Alice"
|
|
116
116
|
* }
|
|
117
117
|
* ],
|
|
118
|
-
*
|
|
119
|
-
*
|
|
118
|
+
* membershipName: "Example Membership Name.",
|
|
119
|
+
* optInFeatures: [
|
|
120
120
|
* {
|
|
121
|
-
*
|
|
122
|
-
*
|
|
121
|
+
* featureName: "Triage",
|
|
122
|
+
* isEnabled: true
|
|
123
123
|
* }
|
|
124
124
|
* ]
|
|
125
125
|
* };
|
|
126
126
|
* const command = new CreateMembershipCommand(input);
|
|
127
127
|
* const response = await client.send(command);
|
|
128
|
-
* /* response
|
|
128
|
+
* /* response is
|
|
129
129
|
* {
|
|
130
|
-
*
|
|
130
|
+
* membershipId: "m-abcd1234efgh"
|
|
131
131
|
* }
|
|
132
132
|
* *\/
|
|
133
|
-
* // example id: example-1
|
|
134
133
|
* ```
|
|
135
134
|
*
|
|
135
|
+
* @public
|
|
136
136
|
*/
|
|
137
137
|
export declare class CreateMembershipCommand extends CreateMembershipCommand_base {
|
|
138
138
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,24 +82,24 @@ declare const GetCaseAttachmentDownloadUrlCommand_base: {
|
|
|
82
82
|
* @throws {@link SecurityIRServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example Invoke GetCaseAttachmentDownloadUrl
|
|
87
87
|
* ```javascript
|
|
88
88
|
* //
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* attachmentId: "3C5A6B89-1DEF-4C2D-A5B6-123456789ABC",
|
|
91
|
+
* caseId: "8403556009"
|
|
92
92
|
* };
|
|
93
93
|
* const command = new GetCaseAttachmentDownloadUrlCommand(input);
|
|
94
94
|
* const response = await client.send(command);
|
|
95
|
-
* /* response
|
|
95
|
+
* /* response is
|
|
96
96
|
* {
|
|
97
|
-
*
|
|
97
|
+
* attachmentPresignedUrl: "https://presignedurl.com"
|
|
98
98
|
* }
|
|
99
99
|
* *\/
|
|
100
|
-
* // example id: example-1
|
|
101
100
|
* ```
|
|
102
101
|
*
|
|
102
|
+
* @public
|
|
103
103
|
*/
|
|
104
104
|
export declare class GetCaseAttachmentDownloadUrlCommand extends GetCaseAttachmentDownloadUrlCommand_base {
|
|
105
105
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -84,25 +84,25 @@ declare const GetCaseAttachmentUploadUrlCommand_base: {
|
|
|
84
84
|
* @throws {@link SecurityIRServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
86
86
|
*
|
|
87
|
-
*
|
|
87
|
+
*
|
|
88
88
|
* @example Invoke GetCaseAttachmentUploadUrl
|
|
89
89
|
* ```javascript
|
|
90
90
|
* //
|
|
91
91
|
* const input = {
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
92
|
+
* caseId: "8403556009",
|
|
93
|
+
* contentLength: 1500,
|
|
94
|
+
* fileName: "TestFileName"
|
|
95
95
|
* };
|
|
96
96
|
* const command = new GetCaseAttachmentUploadUrlCommand(input);
|
|
97
97
|
* const response = await client.send(command);
|
|
98
|
-
* /* response
|
|
98
|
+
* /* response is
|
|
99
99
|
* {
|
|
100
|
-
*
|
|
100
|
+
* attachmentPresignedUrl: "https://presignedurl.com"
|
|
101
101
|
* }
|
|
102
102
|
* *\/
|
|
103
|
-
* // example id: example-1
|
|
104
103
|
* ```
|
|
105
104
|
*
|
|
105
|
+
* @public
|
|
106
106
|
*/
|
|
107
107
|
export declare class GetCaseAttachmentUploadUrlCommand extends GetCaseAttachmentUploadUrlCommand_base {
|
|
108
108
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -126,64 +126,64 @@ declare const GetCaseCommand_base: {
|
|
|
126
126
|
* @throws {@link SecurityIRServiceException}
|
|
127
127
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
128
128
|
*
|
|
129
|
-
*
|
|
129
|
+
*
|
|
130
130
|
* @example Invoke GetCase
|
|
131
131
|
* ```javascript
|
|
132
132
|
* //
|
|
133
133
|
* const input = {
|
|
134
|
-
*
|
|
134
|
+
* caseId: "8403556009"
|
|
135
135
|
* };
|
|
136
136
|
* const command = new GetCaseCommand(input);
|
|
137
137
|
* const response = await client.send(command);
|
|
138
|
-
* /* response
|
|
138
|
+
* /* response is
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
140
|
+
* actualIncidentStartDate: "2023-03-27T15:32:01.789Z",
|
|
141
|
+
* caseArn: "arn:aws:security-ir:us-west-1:123456789012:case/1234567890",
|
|
142
|
+
* caseStatus: "Submitted",
|
|
143
|
+
* createdDate: "2023-01-27T15:32:01.789Z",
|
|
144
|
+
* description: "Case description",
|
|
145
|
+
* engagementType: "Investigation",
|
|
146
|
+
* impactedAccounts: [
|
|
147
147
|
* "000000000000",
|
|
148
148
|
* "111111111111"
|
|
149
149
|
* ],
|
|
150
|
-
*
|
|
150
|
+
* impactedAwsRegions: [
|
|
151
151
|
* {
|
|
152
|
-
*
|
|
152
|
+
* region: "ap-southeast-1"
|
|
153
153
|
* }
|
|
154
154
|
* ],
|
|
155
|
-
*
|
|
155
|
+
* impactedServices: [
|
|
156
156
|
* "Amazon EC2",
|
|
157
157
|
* "Amazon EKS"
|
|
158
158
|
* ],
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
159
|
+
* lastUpdatedDate: "2023-02-27T15:32:01.789Z",
|
|
160
|
+
* pendingAction: "Customer",
|
|
161
|
+
* reportedIncidentStartDate: "2023-03-27T15:32:01.789Z",
|
|
162
|
+
* resolverType: "Self",
|
|
163
|
+
* threatActorIpAddresses: [
|
|
164
164
|
* {
|
|
165
|
-
*
|
|
166
|
-
*
|
|
165
|
+
* ipAddress: "192.168.192.168",
|
|
166
|
+
* userAgent: "Browser"
|
|
167
167
|
* }
|
|
168
168
|
* ],
|
|
169
|
-
*
|
|
170
|
-
*
|
|
169
|
+
* title: "My sample case",
|
|
170
|
+
* watchers: [
|
|
171
171
|
* {
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
172
|
+
* email: "alice@example.com",
|
|
173
|
+
* jobTitle: "CEO",
|
|
174
|
+
* name: "Alice"
|
|
175
175
|
* },
|
|
176
176
|
* {
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
177
|
+
* email: "bob@example.com",
|
|
178
|
+
* jobTitle: "CFO",
|
|
179
|
+
* name: "Bob"
|
|
180
180
|
* }
|
|
181
181
|
* ]
|
|
182
182
|
* }
|
|
183
183
|
* *\/
|
|
184
|
-
* // example id: example-1
|
|
185
184
|
* ```
|
|
186
185
|
*
|
|
186
|
+
* @public
|
|
187
187
|
*/
|
|
188
188
|
export declare class GetCaseCommand extends GetCaseCommand_base {
|
|
189
189
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -103,50 +103,50 @@ declare const GetMembershipCommand_base: {
|
|
|
103
103
|
* @throws {@link SecurityIRServiceException}
|
|
104
104
|
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
105
105
|
*
|
|
106
|
-
*
|
|
106
|
+
*
|
|
107
107
|
* @example Invoke GetMembership
|
|
108
108
|
* ```javascript
|
|
109
109
|
* //
|
|
110
110
|
* const input = {
|
|
111
|
-
*
|
|
111
|
+
* membershipId: "m-abcd1234efgh"
|
|
112
112
|
* };
|
|
113
113
|
* const command = new GetMembershipCommand(input);
|
|
114
114
|
* const response = await client.send(command);
|
|
115
|
-
* /* response
|
|
115
|
+
* /* response is
|
|
116
116
|
* {
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
117
|
+
* accountId: "123412341234",
|
|
118
|
+
* customerType: "Standalone",
|
|
119
|
+
* incidentResponseTeam: [
|
|
120
120
|
* {
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
121
|
+
* email: "bob.jones@gmail.com",
|
|
122
|
+
* jobTitle: "Security Responder",
|
|
123
|
+
* name: "Bob Jones"
|
|
124
124
|
* },
|
|
125
125
|
* {
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
126
|
+
* email: "alice@example.com",
|
|
127
|
+
* jobTitle: "CEO",
|
|
128
|
+
* name: "Alice"
|
|
129
129
|
* }
|
|
130
130
|
* ],
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
131
|
+
* membershipActivationTimestamp: "2023-03-27T15:32:01.789Z",
|
|
132
|
+
* membershipArn: "arn:aws:security-ir:us-west-1:123456789012:membership/m-abcd1234efgh",
|
|
133
|
+
* membershipDeactivationTimestamp: "2023-04-27T15:32:01.789Z",
|
|
134
|
+
* membershipId: "m-abcd1234efgh",
|
|
135
|
+
* membershipName: "Example Membership",
|
|
136
|
+
* membershipStatus: "Active",
|
|
137
|
+
* numberOfAccountsCovered: 50,
|
|
138
|
+
* optInFeatures: [
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
140
|
+
* featureName: "Triage",
|
|
141
|
+
* isEnabled: true
|
|
142
142
|
* }
|
|
143
143
|
* ],
|
|
144
|
-
*
|
|
144
|
+
* region: "af-south-1"
|
|
145
145
|
* }
|
|
146
146
|
* *\/
|
|
147
|
-
* // example id: example-1
|
|
148
147
|
* ```
|
|
149
148
|
*
|
|
149
|
+
* @public
|
|
150
150
|
*/
|
|
151
151
|
export declare class GetMembershipCommand extends GetMembershipCommand_base {
|
|
152
152
|
/** @internal type navigation helper, not in runtime. */
|