Skip to content

Commit d54999d

Browse files
author
awstools
committed
feat(client-guardduty): Add RDS Provisioned and Serverless Usage types
1 parent 8c9c39b commit d54999d

File tree

10 files changed

+89
-24
lines changed

10 files changed

+89
-24
lines changed

clients/client-guardduty/src/commands/CreateDetectorCommand.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,26 @@ export interface CreateDetectorCommandOutput extends CreateDetectorResponse, __M
2828

2929
/**
3030
* @public
31-
* <p>Creates a single Amazon GuardDuty detector. A detector is a resource that represents the
31+
* <p>Creates a single GuardDuty detector. A detector is a resource that represents the
3232
* GuardDuty service. To start using GuardDuty, you must create a detector in each Region where
3333
* you enable the service. You can have only one detector per account per Region. All data
3434
* sources are enabled in a new detector by default.</p>
35+
* <ul>
36+
* <li>
37+
* <p>When you don't specify any <code>features</code>, with an
38+
* exception to <code>RUNTIME_MONITORING</code>, all the optional features are
39+
* enabled by default.</p>
40+
* </li>
41+
* <li>
42+
* <p>When you specify some of the <code>features</code>, any feature that is not specified in the
43+
* API call gets enabled by default, with an exception to <code>RUNTIME_MONITORING</code>. </p>
44+
* </li>
45+
* </ul>
46+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
47+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
48+
* You can add only one of these two features because Runtime Monitoring already includes the
49+
* threat detection for Amazon EKS resources. For more information, see
50+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
3551
* <p>There might be regional differences because some data sources might not be
3652
* available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more
3753
* information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p>

clients/client-guardduty/src/commands/GetOrganizationStatisticsCommand.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ export interface GetOrganizationStatisticsCommandOutput extends GetOrganizationS
2828

2929
/**
3030
* @public
31-
* <p>Retrieves how many active member accounts
32-
* in your Amazon Web Services organization have
31+
* <p>Retrieves how many active member accounts have
3332
* each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.</p>
34-
* <p>When you create a new Amazon Web Services organization, it might take up to 24
33+
* <p>When you create a new organization, it might take up to 24
3534
* hours to generate the statistics for the entire organization.</p>
3635
* @example
3736
* Use a bare-bones client and the command you need to make an API call.

clients/client-guardduty/src/commands/GetUsageStatisticsCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
5252
* "STRING_VALUE",
5353
* ],
5454
* Features: [ // UsageFeatureList
55-
* "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING",
55+
* "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING" || "RDS_DBI_PROTECTION_PROVISIONED" || "RDS_DBI_PROTECTION_SERVERLESS",
5656
* ],
5757
* },
5858
* Unit: "STRING_VALUE",
@@ -74,7 +74,7 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
7474
* // ],
7575
* // TopAccountsByFeature: [ // UsageTopAccountsResultList
7676
* // { // UsageTopAccountsResult
77-
* // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING",
77+
* // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING" || "RDS_DBI_PROTECTION_PROVISIONED" || "RDS_DBI_PROTECTION_SERVERLESS",
7878
* // Accounts: [ // UsageTopAccountsByFeatureList
7979
* // { // UsageTopAccountResult
8080
* // AccountId: "STRING_VALUE",
@@ -115,7 +115,7 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
115115
* // ],
116116
* // SumByFeature: [ // UsageFeatureResultList
117117
* // { // UsageFeatureResult
118-
* // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING",
118+
* // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING" || "RDS_DBI_PROTECTION_PROVISIONED" || "RDS_DBI_PROTECTION_SERVERLESS",
119119
* // Total: "<Total>",
120120
* // },
121121
* // ],

clients/client-guardduty/src/commands/StartMalwareScanCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ export interface StartMalwareScanCommandOutput extends StartMalwareScanResponse,
2828

2929
/**
3030
* @public
31-
* <p>Initiates the malware scan. Invoking this API will automatically create the <a href="https://docs.aws.amazon.com/guardduty/latest/ug/slr-permissions-malware-protection.html">Service-linked role </a> in
31+
* <p>Initiates the malware scan. Invoking this API will automatically create the <a href="https://docs.aws.amazon.com/guardduty/latest/ug/slr-permissions-malware-protection.html">Service-linked role</a> in
3232
* the corresponding account.</p>
33+
* <p>When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more information,
34+
* see <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DescribeMalwareScans.html">DescribeMalwareScans</a>.</p>
3335
* @example
3436
* Use a bare-bones client and the command you need to make an API call.
3537
* ```javascript

clients/client-guardduty/src/commands/UpdateDetectorCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ export interface UpdateDetectorCommandOutput extends UpdateDetectorResponse, __M
2828

2929
/**
3030
* @public
31-
* <p>Updates the GuardDuty detector specified by the detectorId.</p>
31+
* <p>Updates the GuardDuty detector specified by the detector ID.</p>
32+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
33+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
34+
* You can add only one of these two features because Runtime Monitoring already includes the
35+
* threat detection for Amazon EKS resources. For more information, see
36+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
3237
* <p>There might be regional differences because some data sources might not be
3338
* available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more
3439
* information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p>

clients/client-guardduty/src/commands/UpdateMemberDetectorsCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export interface UpdateMemberDetectorsCommandOutput extends UpdateMemberDetector
2929
/**
3030
* @public
3131
* <p>Contains information on member accounts to be updated.</p>
32+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
33+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
34+
* You can add only one of these two features because Runtime Monitoring already includes the
35+
* threat detection for Amazon EKS resources. For more information, see
36+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
3237
* <p>There might be regional differences because some data sources might not be
3338
* available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more
3439
* information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p>

clients/client-guardduty/src/commands/UpdateOrganizationConfigurationCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export interface UpdateOrganizationConfigurationCommandOutput
3535
* @public
3636
* <p>Configures the delegated administrator account with the provided values. You must provide
3737
* a value for either <code>autoEnableOrganizationMembers</code> or <code>autoEnable</code>, but not both. </p>
38+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
39+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
40+
* You can add only one of these two features because Runtime Monitoring already includes the
41+
* threat detection for Amazon EKS resources. For more information, see
42+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
3843
* <p>There might be regional differences because some data sources might not be
3944
* available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more
4045
* information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p>

clients/client-guardduty/src/models/models_0.ts

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,11 @@ export type DetectorFeature = (typeof DetectorFeature)[keyof typeof DetectorFeat
22422242
/**
22432243
* @public
22442244
* <p>Contains information about a GuardDuty feature.</p>
2245+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
2246+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
2247+
* You can add only one of these two features because Runtime Monitoring already includes the
2248+
* threat detection for Amazon EKS resources. For more information, see
2249+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
22452250
*/
22462251
export interface DetectorFeatureConfiguration {
22472252
/**
@@ -4152,26 +4157,31 @@ export interface DescribeOrganizationConfigurationResponse {
41524157

41534158
/**
41544159
* @public
4155-
* <p>Indicates the auto-enablement configuration of GuardDuty for the member accounts in the
4160+
* <p>Indicates the auto-enablement configuration of GuardDuty or any of the corresponding protection plans for the member accounts in the
41564161
* organization.</p>
41574162
* <ul>
41584163
* <li>
41594164
* <p>
41604165
* <code>NEW</code>: Indicates that when a new account joins the organization, they will
4161-
* have GuardDuty enabled automatically. </p>
4166+
* have GuardDuty or any of the corresponding protection plans enabled automatically. </p>
41624167
* </li>
41634168
* <li>
41644169
* <p>
4165-
* <code>ALL</code>: Indicates that all accounts in the organization have GuardDuty
4166-
* enabled automatically. This includes <code>NEW</code> accounts that join the organization
4170+
* <code>ALL</code>: Indicates that all accounts in the organization have GuardDuty and any of the corresponding
4171+
* protection plans enabled automatically. This includes <code>NEW</code> accounts that join the organization
41674172
* and accounts that may have been suspended or removed from the organization in
41684173
* GuardDuty.</p>
41694174
* </li>
41704175
* <li>
41714176
* <p>
4172-
* <code>NONE</code>: Indicates that GuardDuty will not be automatically enabled for any
4177+
* <code>NONE</code>: Indicates that GuardDuty or any of the corresponding protection plans
4178+
* will not be automatically enabled for any
41734179
* account in the organization. The administrator must manage GuardDuty for each account in
41744180
* the organization individually.</p>
4181+
* <p>When you update the auto-enable setting from <code>ALL</code> or <code>NEW</code> to
4182+
* <code>NONE</code>, this action doesn't disable the corresponding option for your existing accounts. This
4183+
* configuration will apply to the new accounts that join the organization. After you update the auto-enable settings,
4184+
* no new account will have the corresponding option as enabled.</p>
41754185
* </li>
41764186
* </ul>
41774187
*/
@@ -4339,6 +4349,11 @@ export type DetectorFeatureResult = (typeof DetectorFeatureResult)[keyof typeof
43394349
/**
43404350
* @public
43414351
* <p>Contains information about a GuardDuty feature.</p>
4352+
* <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>)
4353+
* and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error.
4354+
* You can add only one of these two features because Runtime Monitoring already includes the
4355+
* threat detection for Amazon EKS resources. For more information, see
4356+
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</p>
43424357
*/
43434358
export interface DetectorFeatureConfigurationResult {
43444359
/**
@@ -7199,6 +7214,8 @@ export const UsageFeature = {
71997214
FARGATE_RUNTIME_MONITORING: "FARGATE_RUNTIME_MONITORING",
72007215
FLOW_LOGS: "FLOW_LOGS",
72017216
LAMBDA_NETWORK_LOGS: "LAMBDA_NETWORK_LOGS",
7217+
RDS_DBI_PROTECTION_PROVISIONED: "RDS_DBI_PROTECTION_PROVISIONED",
7218+
RDS_DBI_PROTECTION_SERVERLESS: "RDS_DBI_PROTECTION_SERVERLESS",
72027219
RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
72037220
S3_DATA_EVENTS: "S3_DATA_EVENTS",
72047221
} as const;

clients/client-guardduty/src/models/models_1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,10 @@ export interface UpdateOrganizationConfigurationRequest {
13421342
* <p>
13431343
* <code>NONE</code>: Indicates that GuardDuty will not be automatically enabled for any
13441344
* account in the organization. The administrator must manage GuardDuty for each account in the organization individually.</p>
1345+
* <p>When you update the auto-enable setting from <code>ALL</code> or <code>NEW</code> to
1346+
* <code>NONE</code>, this action doesn't disable the corresponding option for your existing accounts. This
1347+
* configuration will apply to the new accounts that join the organization. After you update the auto-enable settings,
1348+
* no new account will have the corresponding option as enabled.</p>
13451349
* </li>
13461350
* </ul>
13471351
*/

0 commit comments

Comments
 (0)