From e43d607d9744f765c3ca478443b974c9a77d73ed Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 9 Jan 2025 19:11:27 +0000 Subject: [PATCH] feat(client-fms): AWS Firewall Manager now lets you combine multiple resource tags using the logical AND operator or the logical OR operator. --- .../src/commands/GetPolicyCommand.ts | 1 + .../src/commands/PutPolicyCommand.ts | 2 ++ clients/client-fms/src/models/models_0.ts | 29 +++++++++++++++++-- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/clients/client-fms/src/commands/GetPolicyCommand.ts b/clients/client-fms/src/commands/GetPolicyCommand.ts index 615cc551a30c..49492d07f9c6 100644 --- a/clients/client-fms/src/commands/GetPolicyCommand.ts +++ b/clients/client-fms/src/commands/GetPolicyCommand.ts @@ -125,6 +125,7 @@ export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBea * // ], * // PolicyDescription: "STRING_VALUE", * // PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE", + * // ResourceTagLogicalOperator: "AND" || "OR", * // }, * // PolicyArn: "STRING_VALUE", * // }; diff --git a/clients/client-fms/src/commands/PutPolicyCommand.ts b/clients/client-fms/src/commands/PutPolicyCommand.ts index b60321fe75b5..039359539da6 100644 --- a/clients/client-fms/src/commands/PutPolicyCommand.ts +++ b/clients/client-fms/src/commands/PutPolicyCommand.ts @@ -176,6 +176,7 @@ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBea * ], * PolicyDescription: "STRING_VALUE", * PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE", + * ResourceTagLogicalOperator: "AND" || "OR", * }, * TagList: [ // TagList * { // Tag @@ -271,6 +272,7 @@ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBea * // ], * // PolicyDescription: "STRING_VALUE", * // PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE", + * // ResourceTagLogicalOperator: "AND" || "OR", * // }, * // PolicyArn: "STRING_VALUE", * // }; diff --git a/clients/client-fms/src/models/models_0.ts b/clients/client-fms/src/models/models_0.ts index 0182ca03fd9c..461a588520e2 100644 --- a/clients/client-fms/src/models/models_0.ts +++ b/clients/client-fms/src/models/models_0.ts @@ -1144,13 +1144,26 @@ export const CustomerPolicyStatus = { */ export type CustomerPolicyStatus = (typeof CustomerPolicyStatus)[keyof typeof CustomerPolicyStatus]; +/** + * @public + * @enum + */ +export const ResourceTagLogicalOperator = { + AND: "AND", + OR: "OR", +} as const; + +/** + * @public + */ +export type ResourceTagLogicalOperator = (typeof ResourceTagLogicalOperator)[keyof typeof ResourceTagLogicalOperator]; + /** *

The resource tags that Firewall Manager uses to determine if a particular resource * should be included or excluded from the Firewall Manager policy. Tags enable you to * categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or - * environment. Each tag consists of a key and an optional value. Firewall Manager combines the - * tags with "AND" so that, if you add more than one tag to a policy scope, a resource must have - * all the specified tags to be included or excluded. For more information, see + * environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can + * specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see * Working with Tag Editor.

*

Every resource tag must have a string value, either a non-empty string or an empty string. If you don't * provide a value for a resource tag, Firewall Manager saves the value as an empty string: "". When Firewall Manager compares tags, it only @@ -1878,6 +1891,16 @@ export interface Policy { * @public */ PolicyStatus?: CustomerPolicyStatus | undefined; + + /** + *

Specifies whether to combine multiple resource tags with AND, + * so that a resource must have all tags to be included or excluded, or OR, + * so that a resource must have at least one tag.

+ *

Default: AND + *

+ * @public + */ + ResourceTagLogicalOperator?: ResourceTagLogicalOperator | undefined; } /**