-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-resiliencehub): AWS Resilience Hub has expanded its drift…
… detection capabilities by introducing a new type of drift detection - application resource drift. This new enhancement detects changes, such as the addition or deletion of resources within the application's input sources.
- Loading branch information
awstools
committed
May 7, 2024
1 parent
7008655
commit 612bf4a
Showing
12 changed files
with
666 additions
and
242 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
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
121 changes: 121 additions & 0 deletions
121
clients/client-resiliencehub/src/commands/ListAppAssessmentResourceDriftsCommand.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,121 @@ | ||
// 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 { ListAppAssessmentResourceDriftsRequest, ListAppAssessmentResourceDriftsResponse } from "../models/models_0"; | ||
import { | ||
de_ListAppAssessmentResourceDriftsCommand, | ||
se_ListAppAssessmentResourceDriftsCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
import { ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResiliencehubClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListAppAssessmentResourceDriftsCommand}. | ||
*/ | ||
export interface ListAppAssessmentResourceDriftsCommandInput extends ListAppAssessmentResourceDriftsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListAppAssessmentResourceDriftsCommand}. | ||
*/ | ||
export interface ListAppAssessmentResourceDriftsCommandOutput | ||
extends ListAppAssessmentResourceDriftsResponse, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Indicates the list of resource drifts that were detected while running an assessment.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ResiliencehubClient, ListAppAssessmentResourceDriftsCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import | ||
* // const { ResiliencehubClient, ListAppAssessmentResourceDriftsCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import | ||
* const client = new ResiliencehubClient(config); | ||
* const input = { // ListAppAssessmentResourceDriftsRequest | ||
* assessmentArn: "STRING_VALUE", // required | ||
* nextToken: "STRING_VALUE", | ||
* maxResults: Number("int"), | ||
* }; | ||
* const command = new ListAppAssessmentResourceDriftsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListAppAssessmentResourceDriftsResponse | ||
* // resourceDrifts: [ // ResourceDriftList // required | ||
* // { // ResourceDrift | ||
* // appArn: "STRING_VALUE", | ||
* // appVersion: "STRING_VALUE", | ||
* // referenceId: "STRING_VALUE", | ||
* // resourceIdentifier: { // ResourceIdentifier | ||
* // logicalResourceId: { // LogicalResourceId | ||
* // identifier: "STRING_VALUE", // required | ||
* // logicalStackName: "STRING_VALUE", | ||
* // resourceGroupName: "STRING_VALUE", | ||
* // terraformSourceName: "STRING_VALUE", | ||
* // eksSourceName: "STRING_VALUE", | ||
* // }, | ||
* // resourceType: "STRING_VALUE", | ||
* // }, | ||
* // diffType: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // nextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListAppAssessmentResourceDriftsCommandInput - {@link ListAppAssessmentResourceDriftsCommandInput} | ||
* @returns {@link ListAppAssessmentResourceDriftsCommandOutput} | ||
* @see {@link ListAppAssessmentResourceDriftsCommandInput} for command's `input` shape. | ||
* @see {@link ListAppAssessmentResourceDriftsCommandOutput} for command's `response` shape. | ||
* @see {@link ResiliencehubClientResolvedConfig | config} for ResiliencehubClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You don't have permissions to perform the requested operation. The user or role that is | ||
* making the request must have at least one IAM permissions policy attached that grants the | ||
* required permissions.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>This exception occurs when there is an internal failure in the Resilience Hub | ||
* service.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>This exception occurs when you have exceeded the limit on the number of requests per second.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>This exception occurs when a request is not valid.</p> | ||
* | ||
* @throws {@link ResiliencehubServiceException} | ||
* <p>Base exception class for all service exceptions from Resiliencehub service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListAppAssessmentResourceDriftsCommand extends $Command | ||
.classBuilder< | ||
ListAppAssessmentResourceDriftsCommandInput, | ||
ListAppAssessmentResourceDriftsCommandOutput, | ||
ResiliencehubClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: ResiliencehubClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AwsResilienceHub", "ListAppAssessmentResourceDrifts", {}) | ||
.n("ResiliencehubClient", "ListAppAssessmentResourceDriftsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListAppAssessmentResourceDriftsCommand) | ||
.de(de_ListAppAssessmentResourceDriftsCommand) | ||
.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.