View a markdown version of this page

AWS::ResilienceHubV2::Service EksLabelSelector - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::ResilienceHubV2::Service EksLabelSelector

A label selector that filters the Kubernetes objects discovered from an Amazon EKS input source. An object must satisfy both matchLabels and matchExpressions to match the selector. A selector with neither matches every object. The selector must render to 2,048 characters or fewer in Kubernetes label selector syntax.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "MatchExpressions" : [ EksLabelSelectorRequirement, ... ], "MatchLabels" : {Key: Value, ...} }

Properties

MatchExpressions

The label requirements that an object must satisfy. All requirements in the list must match for the object to be selected.

Required: No

Type: Array of EksLabelSelectorRequirement

Minimum: 1

Maximum: 20

Update requires: No interruption

MatchLabels

The label key-value pairs that an object must have. All pairs must match for the object to be selected.

Required: No

Type: Object of String

Pattern: ^([a-z0-9]([-a-z0-9.]{0,251}[a-z0-9])?/)?[a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?$

Minimum: 0

Maximum: 63

Update requires: No interruption