Interface CfnContainerAssociation.ContainerMonitoringConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerAssociation.ContainerMonitoringConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnContainerAssociation
@Stability(Stable)
public static interface CfnContainerAssociation.ContainerMonitoringConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains the monitoring configuration for a single cluster in a container association.
Specifies the cluster ARN and optional attribute filters to narrow which containers are tracked.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;
ContainerMonitoringConfigurationProperty containerMonitoringConfigurationProperty = ContainerMonitoringConfigurationProperty.builder()
.clusterArn("clusterArn")
// the properties below are optional
.attributeFilters(List.of(ContainerAttributeProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnContainerAssociation.ContainerMonitoringConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterArn
The ARN of the Amazon ECS or Amazon EKS cluster to monitor.The cluster must be in the same Region and account as the container association.
- See Also:
-
getAttributeFilters
Key-value pairs that filter which containers are tracked.For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerAssociation.ContainerAttributeProperty>- See Also:
-
builder
@Stability(Stable) static CfnContainerAssociation.ContainerMonitoringConfigurationProperty.Builder builder()
-