Skip to content

Commit

Permalink
feat(client-inspector2): Update Inspector2 to include new Agentless A…
Browse files Browse the repository at this point in the history
…PI parameters.
  • Loading branch information
awstools committed Apr 29, 2024
1 parent c6d74d1 commit 9bfe9ac
Show file tree
Hide file tree
Showing 11 changed files with 443 additions and 184 deletions.
1 change: 1 addition & 0 deletions clients/client-inspector2/src/Inspector2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ export interface Inspector2 {
/**
* @see {@link UpdateConfigurationCommand}
*/
updateConfiguration(): Promise<UpdateConfigurationCommandOutput>;
updateConfiguration(
args: UpdateConfigurationCommandInput,
options?: __HttpHandlerOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ export interface GetConfigurationCommandOutput extends GetConfigurationResponse,
* // pullDateRescanDuration: "STRING_VALUE",
* // },
* // },
* // ec2Configuration: { // Ec2ConfigurationState
* // scanModeState: { // Ec2ScanModeState
* // scanMode: "STRING_VALUE",
* // scanModeStatus: "STRING_VALUE",
* // },
* // },
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
import {
ListCisScanResultsAggregatedByTargetResourceRequest,
ListCisScanResultsAggregatedByTargetResourceResponse,
} from "../models/models_0";
import { ListCisScanResultsAggregatedByTargetResourceRequest } from "../models/models_0";
import { ListCisScanResultsAggregatedByTargetResourceResponse } from "../models/models_1";
import {
de_ListCisScanResultsAggregatedByTargetResourceCommand,
se_ListCisScanResultsAggregatedByTargetResourceCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
import { ListCisScansRequest, ListCisScansResponse } from "../models/models_0";
import { ListCisScansRequest, ListCisScansResponse } from "../models/models_1";
import { de_ListCisScansCommand, se_ListCisScansCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-inspector2/src/commands/ListCoverageCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export interface ListCoverageCommandOutput extends ListCoverageResponse, __Metad
* endInclusive: new Date("TIMESTAMP"),
* },
* ],
* scanMode: "<CoverageStringFilterList>",
* imagePulledAt: [
* {
* startInclusive: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -145,6 +146,7 @@ export interface ListCoverageCommandOutput extends ListCoverageResponse, __Metad
* // },
* // },
* // lastScannedAt: new Date("TIMESTAMP"),
* // scanMode: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface ListCoverageStatisticsCommandOutput extends ListCoverageStatist
* endInclusive: new Date("TIMESTAMP"),
* },
* ],
* scanMode: "<CoverageStringFilterList>",
* imagePulledAt: [
* {
* startInclusive: new Date("TIMESTAMP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export interface UpdateConfigurationCommandOutput extends UpdateConfigurationRes
* rescanDuration: "STRING_VALUE", // required
* pullDateRescanDuration: "STRING_VALUE",
* },
* ec2Configuration: { // Ec2Configuration
* scanMode: "STRING_VALUE", // required
* },
* };
* const command = new UpdateConfigurationCommand(input);
* const response = await client.send(command);
Expand Down
Loading

0 comments on commit 9bfe9ac

Please sign in to comment.