Interface ContainerAttribute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerAttribute.Builder,,ContainerAttribute> SdkBuilder<ContainerAttribute.Builder,,ContainerAttribute> SdkPojo
- Enclosing class:
ContainerAttribute
-
Method Summary
Modifier and TypeMethodDescriptionThe attribute key to filter on.The attribute value to match.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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 (:).- Parameters:
key- The attribute key to filter on. For Amazon EKS, specifynamespaceto 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
value- The attribute value to match. You can specify an exact value, such aspayments-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:
- Returns a reference to this object so that method calls can be chained together.
-
-