Skip to content

Commit 58559a2

Browse files
author
awstools
committed
feat(client-ecs): Adds a new 'type' property to the Setting structure. Adds a new AccountSetting - guardDutyActivate for ECS.
1 parent db1b93c commit 58559a2

File tree

10 files changed

+83
-16
lines changed

10 files changed

+83
-16
lines changed

clients/client-ecs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and gives you access to many familiar Amazon EC2 features.</p>
1919
<p>You can use Amazon ECS to schedule the placement of containers across your cluster based on
2020
your resource needs, isolation policies, and availability requirements. With Amazon ECS, you
2121
don't need to operate your own cluster management and configuration management systems.
22-
You also don't need to worry about scaling your management infrastructure.</p>
22+
You also don't need to worry about scaling your management infrastructure. </p>
2323

2424
## Installing
2525

clients/client-ecs/src/ECS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ export interface ECS {
11711171
* <p>You can use Amazon ECS to schedule the placement of containers across your cluster based on
11721172
* your resource needs, isolation policies, and availability requirements. With Amazon ECS, you
11731173
* don't need to operate your own cluster management and configuration management systems.
1174-
* You also don't need to worry about scaling your management infrastructure.</p>
1174+
* You also don't need to worry about scaling your management infrastructure. </p>
11751175
*/
11761176
export class ECS extends ECSClient implements ECS {}
11771177
createAggregatedClient(commands, ECS);

clients/client-ecs/src/ECSClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export interface ECSClientResolvedConfig extends ECSClientResolvedConfigType {}
510510
* <p>You can use Amazon ECS to schedule the placement of containers across your cluster based on
511511
* your resource needs, isolation policies, and availability requirements. With Amazon ECS, you
512512
* don't need to operate your own cluster management and configuration management systems.
513-
* You also don't need to worry about scaling your management infrastructure.</p>
513+
* You also don't need to worry about scaling your management infrastructure. </p>
514514
*/
515515
export class ECSClient extends __Client<
516516
__HttpHandlerOptions,

clients/client-ecs/src/commands/DeleteAccountSettingCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
4646
* // const { ECSClient, DeleteAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
4747
* const client = new ECSClient(config);
4848
* const input = { // DeleteAccountSettingRequest
49-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod", // required
49+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
5050
* principalArn: "STRING_VALUE",
5151
* };
5252
* const command = new DeleteAccountSettingCommand(input);
5353
* const response = await client.send(command);
5454
* // { // DeleteAccountSettingResponse
5555
* // setting: { // Setting
56-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod",
56+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
5757
* // value: "STRING_VALUE",
5858
* // principalArn: "STRING_VALUE",
59+
* // type: "user" || "aws_managed",
5960
* // },
6061
* // };
6162
*

clients/client-ecs/src/commands/ListAccountSettingsCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
4545
* // const { ECSClient, ListAccountSettingsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
4646
* const client = new ECSClient(config);
4747
* const input = { // ListAccountSettingsRequest
48-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod",
48+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
4949
* value: "STRING_VALUE",
5050
* principalArn: "STRING_VALUE",
5151
* effectiveSettings: true || false,
@@ -57,9 +57,10 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
5757
* // { // ListAccountSettingsResponse
5858
* // settings: [ // Settings
5959
* // { // Setting
60-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod",
60+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
6161
* // value: "STRING_VALUE",
6262
* // principalArn: "STRING_VALUE",
63+
* // type: "user" || "aws_managed",
6364
* // },
6465
* // ],
6566
* // nextToken: "STRING_VALUE",

clients/client-ecs/src/commands/PutAccountSettingCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,28 @@ export interface PutAccountSettingCommandOutput extends PutAccountSettingRespons
7474
* them. Use <code>fargateTaskRetirementWaitPeriod</code> to configure the wait time to
7575
* retire a Fargate task. For information about the Fargate tasks maintenance, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html">Amazon Web Services Fargate task maintenance</a> in the <i>Amazon ECS Developer
7676
* Guide</i>.</p>
77+
* <p>The <code>guardDutyActivate</code> parameter is read-only in Amazon ECS and indicates whether
78+
* Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your
79+
* Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html">Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring</a>.</p>
7780
* @example
7881
* Use a bare-bones client and the command you need to make an API call.
7982
* ```javascript
8083
* import { ECSClient, PutAccountSettingCommand } from "@aws-sdk/client-ecs"; // ES Modules import
8184
* // const { ECSClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
8285
* const client = new ECSClient(config);
8386
* const input = { // PutAccountSettingRequest
84-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod", // required
87+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
8588
* value: "STRING_VALUE", // required
8689
* principalArn: "STRING_VALUE",
8790
* };
8891
* const command = new PutAccountSettingCommand(input);
8992
* const response = await client.send(command);
9093
* // { // PutAccountSettingResponse
9194
* // setting: { // Setting
92-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod",
95+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
9396
* // value: "STRING_VALUE",
9497
* // principalArn: "STRING_VALUE",
98+
* // type: "user" || "aws_managed",
9599
* // },
96100
* // };
97101
*

clients/client-ecs/src/commands/PutAccountSettingDefaultCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,17 @@ export interface PutAccountSettingDefaultCommandOutput extends PutAccountSetting
4747
* // const { ECSClient, PutAccountSettingDefaultCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
4848
* const client = new ECSClient(config);
4949
* const input = { // PutAccountSettingDefaultRequest
50-
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod", // required
50+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate", // required
5151
* value: "STRING_VALUE", // required
5252
* };
5353
* const command = new PutAccountSettingDefaultCommand(input);
5454
* const response = await client.send(command);
5555
* // { // PutAccountSettingDefaultResponse
5656
* // setting: { // Setting
57-
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod",
57+
* // name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights" || "fargateFIPSMode" || "tagResourceAuthorization" || "fargateTaskRetirementWaitPeriod" || "guardDutyActivate",
5858
* // value: "STRING_VALUE",
5959
* // principalArn: "STRING_VALUE",
60+
* // type: "user" || "aws_managed",
6061
* // },
6162
* // };
6263
*

clients/client-ecs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* <p>You can use Amazon ECS to schedule the placement of containers across your cluster based on
1414
* your resource needs, isolation policies, and availability requirements. With Amazon ECS, you
1515
* don't need to operate your own cluster management and configuration management systems.
16-
* You also don't need to worry about scaling your management infrastructure.</p>
16+
* You also don't need to worry about scaling your management infrastructure. </p>
1717
*
1818
* @packageDocumentation
1919
*/

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,6 +3569,7 @@ export const SettingName = {
35693569
CONTAINER_INSTANCE_LONG_ARN_FORMAT: "containerInstanceLongArnFormat",
35703570
FARGATE_FIPS_MODE: "fargateFIPSMode",
35713571
FARGATE_TASK_RETIREMENT_WAIT_PERIOD: "fargateTaskRetirementWaitPeriod",
3572+
GUARD_DUTY_ACTIVATE: "guardDutyActivate",
35723573
SERVICE_LONG_ARN_FORMAT: "serviceLongArnFormat",
35733574
TAG_RESOURCE_AUTHORIZATION: "tagResourceAuthorization",
35743575
TASK_LONG_ARN_FORMAT: "taskLongArnFormat",
@@ -3605,6 +3606,20 @@ export interface DeleteAccountSettingRequest {
36053606
principalArn?: string;
36063607
}
36073608

3609+
/**
3610+
* @public
3611+
* @enum
3612+
*/
3613+
export const SettingType = {
3614+
AWS_MANAGED: "aws_managed",
3615+
USER: "user",
3616+
} as const;
3617+
3618+
/**
3619+
* @public
3620+
*/
3621+
export type SettingType = (typeof SettingType)[keyof typeof SettingType];
3622+
36083623
/**
36093624
* @public
36103625
* <p>The current account setting for a resource.</p>
@@ -3628,6 +3643,16 @@ export interface Setting {
36283643
* field is omitted, the authenticated user is assumed.</p>
36293644
*/
36303645
principalArn?: string;
3646+
3647+
/**
3648+
* @public
3649+
* <p>Indicates whether Amazon Web Services manages the account setting, or if the user manages it.</p>
3650+
* <p>
3651+
* <code>aws_managed</code> account settings are read-only, as Amazon Web Services manages such on the
3652+
* customer's behalf. Currently, the <code>guardDutyActivate</code> account setting is the
3653+
* only one Amazon Web Services manages.</p>
3654+
*/
3655+
type?: SettingType;
36313656
}
36323657

36333658
/**
@@ -9726,6 +9751,9 @@ export interface PutAccountSettingRequest {
97269751
* resources on creation is affected. For information about the opt-in timeline, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#tag-resources">Tagging authorization timeline</a> in the <i>Amazon ECS Developer
97279752
* Guide</i>. If you specify <code>fargateTaskRetirementWaitPeriod</code>, the
97289753
* wait time to retire a Fargate task is affected.</p>
9754+
* <p>The <code>guardDutyActivate</code> parameter is read-only in Amazon ECS and indicates whether
9755+
* Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your
9756+
* Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html">Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring</a>.</p>
97299757
*/
97309758
name: SettingName | undefined;
97319759

@@ -9811,6 +9839,9 @@ export interface PutAccountSettingDefaultRequest {
98119839
* Fargate task to the default. For information about the Fargate tasks maintenance,
98129840
* see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html">Amazon Web Services Fargate task
98139841
* maintenance</a> in the <i>Amazon ECS Developer Guide</i>.</p>
9842+
* <p>The <code>guardDutyActivate</code> parameter is read-only in Amazon ECS and indicates whether
9843+
* Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your
9844+
* Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html">Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring</a>.</p>
98149845
*/
98159846
name: SettingName | undefined;
98169847

0 commit comments

Comments
 (0)