@aws-sdk/client-detective 3.451.0 → 3.458.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.
Files changed (41) hide show
  1. package/README.md +64 -24
  2. package/dist-cjs/Detective.js +10 -0
  3. package/dist-cjs/commands/GetInvestigationCommand.js +51 -0
  4. package/dist-cjs/commands/ListIndicatorsCommand.js +51 -0
  5. package/dist-cjs/commands/ListInvestigationsCommand.js +51 -0
  6. package/dist-cjs/commands/StartInvestigationCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateInvestigationStateCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +43 -1
  10. package/dist-cjs/protocols/Aws_restJson1.js +394 -1
  11. package/dist-es/Detective.js +10 -0
  12. package/dist-es/commands/GetInvestigationCommand.js +47 -0
  13. package/dist-es/commands/ListIndicatorsCommand.js +47 -0
  14. package/dist-es/commands/ListInvestigationsCommand.js +47 -0
  15. package/dist-es/commands/StartInvestigationCommand.js +47 -0
  16. package/dist-es/commands/UpdateInvestigationStateCommand.js +47 -0
  17. package/dist-es/commands/index.js +5 -0
  18. package/dist-es/models/models_0.js +42 -0
  19. package/dist-es/protocols/Aws_restJson1.js +382 -0
  20. package/dist-types/Detective.d.ts +35 -0
  21. package/dist-types/DetectiveClient.d.ts +7 -2
  22. package/dist-types/commands/CreateMembersCommand.d.ts +2 -2
  23. package/dist-types/commands/GetInvestigationCommand.d.ts +100 -0
  24. package/dist-types/commands/ListIndicatorsCommand.d.ts +144 -0
  25. package/dist-types/commands/ListInvestigationsCommand.d.ts +125 -0
  26. package/dist-types/commands/StartInvestigationCommand.d.ts +93 -0
  27. package/dist-types/commands/UpdateInvestigationStateCommand.d.ts +90 -0
  28. package/dist-types/commands/index.d.ts +5 -0
  29. package/dist-types/models/models_0.d.ts +687 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  31. package/dist-types/ts3.4/Detective.d.ts +85 -0
  32. package/dist-types/ts3.4/DetectiveClient.d.ts +30 -0
  33. package/dist-types/ts3.4/commands/GetInvestigationCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/ListIndicatorsCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/ListInvestigationsCommand.d.ts +39 -0
  36. package/dist-types/ts3.4/commands/StartInvestigationCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/UpdateInvestigationStateCommand.d.ts +38 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +186 -0
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  41. package/package.json +3 -3
@@ -0,0 +1,90 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { DetectiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DetectiveClient";
5
+ import { UpdateInvestigationStateRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateInvestigationStateCommand}.
14
+ */
15
+ export interface UpdateInvestigationStateCommandInput extends UpdateInvestigationStateRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateInvestigationStateCommand}.
21
+ */
22
+ export interface UpdateInvestigationStateCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update the state of an investigation.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { DetectiveClient, UpdateInvestigationStateCommand } from "@aws-sdk/client-detective"; // ES Modules import
31
+ * // const { DetectiveClient, UpdateInvestigationStateCommand } = require("@aws-sdk/client-detective"); // CommonJS import
32
+ * const client = new DetectiveClient(config);
33
+ * const input = { // UpdateInvestigationStateRequest
34
+ * GraphArn: "STRING_VALUE", // required
35
+ * InvestigationId: "STRING_VALUE", // required
36
+ * State: "ACTIVE" || "ARCHIVED", // required
37
+ * };
38
+ * const command = new UpdateInvestigationStateCommand(input);
39
+ * const response = await client.send(command);
40
+ * // {};
41
+ *
42
+ * ```
43
+ *
44
+ * @param UpdateInvestigationStateCommandInput - {@link UpdateInvestigationStateCommandInput}
45
+ * @returns {@link UpdateInvestigationStateCommandOutput}
46
+ * @see {@link UpdateInvestigationStateCommandInput} for command's `input` shape.
47
+ * @see {@link UpdateInvestigationStateCommandOutput} for command's `response` shape.
48
+ * @see {@link DetectiveClientResolvedConfig | config} for DetectiveClient's `config` shape.
49
+ *
50
+ * @throws {@link AccessDeniedException} (client fault)
51
+ * <p>The request issuer does not have permission to access this resource or perform this
52
+ * operation.</p>
53
+ *
54
+ * @throws {@link InternalServerException} (server fault)
55
+ * <p>The request was valid but failed because of a problem with the service.</p>
56
+ *
57
+ * @throws {@link ResourceNotFoundException} (client fault)
58
+ * <p>The request refers to a nonexistent resource.</p>
59
+ *
60
+ * @throws {@link TooManyRequestsException} (client fault)
61
+ * <p>The request cannot be completed because too many other requests are occurring at the
62
+ * same time.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>The request parameters are invalid.</p>
66
+ *
67
+ * @throws {@link DetectiveServiceException}
68
+ * <p>Base exception class for all service exceptions from Detective service.</p>
69
+ *
70
+ */
71
+ export declare class UpdateInvestigationStateCommand extends $Command<UpdateInvestigationStateCommandInput, UpdateInvestigationStateCommandOutput, DetectiveClientResolvedConfig> {
72
+ readonly input: UpdateInvestigationStateCommandInput;
73
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
74
+ /**
75
+ * @public
76
+ */
77
+ constructor(input: UpdateInvestigationStateCommandInput);
78
+ /**
79
+ * @internal
80
+ */
81
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DetectiveClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateInvestigationStateCommandInput, UpdateInvestigationStateCommandOutput>;
82
+ /**
83
+ * @internal
84
+ */
85
+ private serialize;
86
+ /**
87
+ * @internal
88
+ */
89
+ private deserialize;
90
+ }
@@ -9,16 +9,21 @@ export * from "./DescribeOrganizationConfigurationCommand";
9
9
  export * from "./DisableOrganizationAdminAccountCommand";
10
10
  export * from "./DisassociateMembershipCommand";
11
11
  export * from "./EnableOrganizationAdminAccountCommand";
12
+ export * from "./GetInvestigationCommand";
12
13
  export * from "./GetMembersCommand";
13
14
  export * from "./ListDatasourcePackagesCommand";
14
15
  export * from "./ListGraphsCommand";
16
+ export * from "./ListIndicatorsCommand";
17
+ export * from "./ListInvestigationsCommand";
15
18
  export * from "./ListInvitationsCommand";
16
19
  export * from "./ListMembersCommand";
17
20
  export * from "./ListOrganizationAdminAccountsCommand";
18
21
  export * from "./ListTagsForResourceCommand";
19
22
  export * from "./RejectInvitationCommand";
23
+ export * from "./StartInvestigationCommand";
20
24
  export * from "./StartMonitoringMemberCommand";
21
25
  export * from "./TagResourceCommand";
22
26
  export * from "./UntagResourceCommand";
23
27
  export * from "./UpdateDatasourcePackagesCommand";
28
+ export * from "./UpdateInvestigationStateCommand";
24
29
  export * from "./UpdateOrganizationConfigurationCommand";