Interface ContainerMonitoringConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerMonitoringConfiguration.Builder,,ContainerMonitoringConfiguration> SdkBuilder<ContainerMonitoringConfiguration.Builder,,ContainerMonitoringConfiguration> SdkPojo
- Enclosing class:
ContainerMonitoringConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionattributeFilters(Collection<ContainerAttribute> attributeFilters) Key-value pairs that filter which containers are tracked.attributeFilters(Consumer<ContainerAttribute.Builder>... attributeFilters) Key-value pairs that filter which containers are tracked.attributeFilters(ContainerAttribute... attributeFilters) Key-value pairs that filter which containers are tracked.clusterArn(String clusterArn) The ARN of the Amazon ECS or Amazon EKS cluster to monitor.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
-
clusterArn
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.
- Parameters:
clusterArn- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilters
ContainerMonitoringConfiguration.Builder attributeFilters(Collection<ContainerAttribute> attributeFilters) 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).
- Parameters:
attributeFilters- 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:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilters
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).
- Parameters:
attributeFilters- 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:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilters
ContainerMonitoringConfiguration.Builder attributeFilters(Consumer<ContainerAttribute.Builder>... attributeFilters) 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).
This is a convenience method that creates an instance of theContainerAttribute.Builderavoiding the need to create one manually viaContainerAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributeFilters(List<ContainerAttribute>).- Parameters:
attributeFilters- a consumer that will call methods onContainerAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-