-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-macie2): This release adds support for managing the statu…
…s of automated sensitive data discovery for individual accounts in an organization, and determining whether individual S3 buckets are included in the scope of the analyses.
- Loading branch information
awstools
committed
Jun 14, 2024
1 parent
33a5089
commit 5d00c7e
Showing
24 changed files
with
1,362 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
clients/client-macie2/src/commands/BatchUpdateAutomatedDiscoveryAccountsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { Macie2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Macie2Client"; | ||
import { | ||
BatchUpdateAutomatedDiscoveryAccountsRequest, | ||
BatchUpdateAutomatedDiscoveryAccountsResponse, | ||
} from "../models/models_0"; | ||
import { | ||
de_BatchUpdateAutomatedDiscoveryAccountsCommand, | ||
se_BatchUpdateAutomatedDiscoveryAccountsCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link BatchUpdateAutomatedDiscoveryAccountsCommand}. | ||
*/ | ||
export interface BatchUpdateAutomatedDiscoveryAccountsCommandInput | ||
extends BatchUpdateAutomatedDiscoveryAccountsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link BatchUpdateAutomatedDiscoveryAccountsCommand}. | ||
*/ | ||
export interface BatchUpdateAutomatedDiscoveryAccountsCommandOutput | ||
extends BatchUpdateAutomatedDiscoveryAccountsResponse, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Changes the status of automated sensitive data discovery for one or more accounts.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { Macie2Client, BatchUpdateAutomatedDiscoveryAccountsCommand } from "@aws-sdk/client-macie2"; // ES Modules import | ||
* // const { Macie2Client, BatchUpdateAutomatedDiscoveryAccountsCommand } = require("@aws-sdk/client-macie2"); // CommonJS import | ||
* const client = new Macie2Client(config); | ||
* const input = { // BatchUpdateAutomatedDiscoveryAccountsRequest | ||
* accounts: [ // __listOfAutomatedDiscoveryAccountUpdate | ||
* { // AutomatedDiscoveryAccountUpdate | ||
* accountId: "STRING_VALUE", | ||
* status: "ENABLED" || "DISABLED", | ||
* }, | ||
* ], | ||
* }; | ||
* const command = new BatchUpdateAutomatedDiscoveryAccountsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // BatchUpdateAutomatedDiscoveryAccountsResponse | ||
* // errors: [ // __listOfAutomatedDiscoveryAccountUpdateError | ||
* // { // AutomatedDiscoveryAccountUpdateError | ||
* // accountId: "STRING_VALUE", | ||
* // errorCode: "ACCOUNT_PAUSED" || "ACCOUNT_NOT_FOUND", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param BatchUpdateAutomatedDiscoveryAccountsCommandInput - {@link BatchUpdateAutomatedDiscoveryAccountsCommandInput} | ||
* @returns {@link BatchUpdateAutomatedDiscoveryAccountsCommandOutput} | ||
* @see {@link BatchUpdateAutomatedDiscoveryAccountsCommandInput} for command's `input` shape. | ||
* @see {@link BatchUpdateAutomatedDiscoveryAccountsCommandOutput} for command's `response` shape. | ||
* @see {@link Macie2ClientResolvedConfig | config} for Macie2Client's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>Provides information about an error that occurred due to insufficient access to a specified resource.</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>Provides information about an error that occurred due to a versioning conflict for a specified resource.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>Provides information about an error that occurred due to an unknown internal server error, exception, or failure.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>Provides information about an error that occurred because too many requests were sent during a certain amount of time.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>Provides information about an error that occurred due to a syntax error in a request.</p> | ||
* | ||
* @throws {@link Macie2ServiceException} | ||
* <p>Base exception class for all service exceptions from Macie2 service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class BatchUpdateAutomatedDiscoveryAccountsCommand extends $Command | ||
.classBuilder< | ||
BatchUpdateAutomatedDiscoveryAccountsCommandInput, | ||
BatchUpdateAutomatedDiscoveryAccountsCommandOutput, | ||
Macie2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: Macie2ClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("Macie2", "BatchUpdateAutomatedDiscoveryAccounts", {}) | ||
.n("Macie2Client", "BatchUpdateAutomatedDiscoveryAccountsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_BatchUpdateAutomatedDiscoveryAccountsCommand) | ||
.de(de_BatchUpdateAutomatedDiscoveryAccountsCommand) | ||
.build() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.