Skip to content

Commit e43d607

Browse files
author
awstools
committed
feat(client-fms): AWS Firewall Manager now lets you combine multiple resource tags using the logical AND operator or the logical OR operator.
1 parent 4fb5b7e commit e43d607

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

clients/client-fms/src/commands/GetPolicyCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBea
125125
* // ],
126126
* // PolicyDescription: "STRING_VALUE",
127127
* // PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE",
128+
* // ResourceTagLogicalOperator: "AND" || "OR",
128129
* // },
129130
* // PolicyArn: "STRING_VALUE",
130131
* // };

clients/client-fms/src/commands/PutPolicyCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBea
176176
* ],
177177
* PolicyDescription: "STRING_VALUE",
178178
* PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE",
179+
* ResourceTagLogicalOperator: "AND" || "OR",
179180
* },
180181
* TagList: [ // TagList
181182
* { // Tag
@@ -271,6 +272,7 @@ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBea
271272
* // ],
272273
* // PolicyDescription: "STRING_VALUE",
273274
* // PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE",
275+
* // ResourceTagLogicalOperator: "AND" || "OR",
274276
* // },
275277
* // PolicyArn: "STRING_VALUE",
276278
* // };

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

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,13 +1144,26 @@ export const CustomerPolicyStatus = {
11441144
*/
11451145
export type CustomerPolicyStatus = (typeof CustomerPolicyStatus)[keyof typeof CustomerPolicyStatus];
11461146

1147+
/**
1148+
* @public
1149+
* @enum
1150+
*/
1151+
export const ResourceTagLogicalOperator = {
1152+
AND: "AND",
1153+
OR: "OR",
1154+
} as const;
1155+
1156+
/**
1157+
* @public
1158+
*/
1159+
export type ResourceTagLogicalOperator = (typeof ResourceTagLogicalOperator)[keyof typeof ResourceTagLogicalOperator];
1160+
11471161
/**
11481162
* <p>The resource tags that Firewall Manager uses to determine if a particular resource
11491163
* should be included or excluded from the Firewall Manager policy. Tags enable you to
11501164
* categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or
1151-
* environment. Each tag consists of a key and an optional value. Firewall Manager combines the
1152-
* tags with "AND" so that, if you add more than one tag to a policy scope, a resource must have
1153-
* all the specified tags to be included or excluded. For more information, see
1165+
* environment. Each tag consists of a key and an optional value. If you add more than one tag to a policy, you can
1166+
* specify whether to combine them using the logical AND operator or the logical OR operator. For more information, see
11541167
* <a href="https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/tag-editor.html">Working with Tag Editor</a>.</p>
11551168
* <p>Every resource tag must have a string value, either a non-empty string or an empty string. If you don't
11561169
* 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 {
18781891
* @public
18791892
*/
18801893
PolicyStatus?: CustomerPolicyStatus | undefined;
1894+
1895+
/**
1896+
* <p>Specifies whether to combine multiple resource tags with AND,
1897+
* so that a resource must have all tags to be included or excluded, or OR,
1898+
* so that a resource must have at least one tag.</p>
1899+
* <p>Default: <code>AND</code>
1900+
* </p>
1901+
* @public
1902+
*/
1903+
ResourceTagLogicalOperator?: ResourceTagLogicalOperator | undefined;
18811904
}
18821905

18831906
/**

0 commit comments

Comments
 (0)