Class ContainerAttribute
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerAttribute.Builder,ContainerAttribute>
A key-value filter pair used in container association monitoring configurations to narrow which containers are tracked. The key must match exactly. The value can be an exact value or a wildcard pattern.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerAttribute.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringkey()The attribute key to filter on.static Class<? extends ContainerAttribute.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Stringvalue()The attribute value to match.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
key
The attribute key to filter on. For Amazon EKS, specify
namespaceto filter by namespace, or specify a Kubernetes label key. For Amazon ECS, specify a container instance attribute name. Keys don't support wildcards.Valid characters are letters, numbers, spaces, hyphens (
-), underscores (_), periods (.), forward slashes (/), and colons (:).- Returns:
- The attribute key to filter on. For Amazon EKS, specify
namespaceto filter by namespace, or specify a Kubernetes label key. For Amazon ECS, specify a container instance attribute name. Keys don't support wildcards.Valid characters are letters, numbers, spaces, hyphens (
-), underscores (_), periods (.), forward slashes (/), and colons (:).
-
value
The attribute value to match. You can specify an exact value, such as
payments-api, or a wildcard pattern, such aspayments-*.Valid characters are letters, numbers, spaces, hyphens (
-), underscores (_), periods (.), forward slashes (/), colons (:), asterisks (*), and backslashes (\).Network Firewall evaluates the value using the following rules:
-
An asterisk (
*) matches zero or more characters. For example,payments-*matchespayments-,payments-api, andpayments-api-v2, and*-prodmatchesweb-prod. -
The pattern must match the entire value. For example,
payments-*doesn't matchmy-payments-api. To match a value that containspaymentsanywhere, use*payments*. -
Matching is case sensitive. For example,
Payments-*doesn't matchpayments-api. -
To match a literal asterisk, escape it with a backslash (
\*). To match a literal backslash, use\\. A backslash followed by any other character matches a literal backslash followed by that character. -
A wildcard pattern matches only containers that have the attribute. For example, a filter with key
appand value*matches every container that has anapplabel, but doesn't match a container without anapplabel. -
A value that doesn't contain
*or\matches only that exact value.
A value can contain at most 10 unescaped asterisks. Escaped asterisks (
\*) don't count toward this limit. A value can't end with a single unescaped backslash.- Returns:
- The attribute value to match. You can specify an exact value, such as
payments-api, or a wildcard pattern, such aspayments-*.Valid characters are letters, numbers, spaces, hyphens (
-), underscores (_), periods (.), forward slashes (/), colons (:), asterisks (*), and backslashes (\).Network Firewall evaluates the value using the following rules:
-
An asterisk (
*) matches zero or more characters. For example,payments-*matchespayments-,payments-api, andpayments-api-v2, and*-prodmatchesweb-prod. -
The pattern must match the entire value. For example,
payments-*doesn't matchmy-payments-api. To match a value that containspaymentsanywhere, use*payments*. -
Matching is case sensitive. For example,
Payments-*doesn't matchpayments-api. -
To match a literal asterisk, escape it with a backslash (
\*). To match a literal backslash, use\\. A backslash followed by any other character matches a literal backslash followed by that character. -
A wildcard pattern matches only containers that have the attribute. For example, a filter with key
appand value*matches every container that has anapplabel, but doesn't match a container without anapplabel. -
A value that doesn't contain
*or\matches only that exact value.
A value can contain at most 10 unescaped asterisks. Escaped asterisks (
\*) don't count toward this limit. A value can't end with a single unescaped backslash. -
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerAttribute.Builder,ContainerAttribute> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-