# AdvancedFieldSelectorProperty

Defines criteria for selecting resources based on field values.

- Source: Generated at build time
- Type last changed: v2.233.0 · 18 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const advancedFieldSelectorProperty: observabilityadmin.CfnOrganizationTelemetryRule.AdvancedFieldSelectorProperty = {
  endsWith: ['endsWith'],
  equalTo: ['equalTo'],
  field: 'field',
  notEndsWith: ['notEndsWith'],
  notEquals: ['notEquals'],
  notStartsWith: ['notStartsWith'],
  startsWith: ['startsWith'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_observabilityadmin as observabilityadmin

advanced_field_selector_property = observabilityadmin.CfnOrganizationTelemetryRule.AdvancedFieldSelectorProperty(
    ends_with=["endsWith"],
    equal_to=["equalTo"],
    field="field",
    not_ends_with=["notEndsWith"],
    not_equals=["notEquals"],
    not_starts_with=["notStartsWith"],
    starts_with=["startsWith"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.observabilityadmin.*;

AdvancedFieldSelectorProperty advancedFieldSelectorProperty = AdvancedFieldSelectorProperty.builder()
        .endsWith(List.of("endsWith"))
        .equalTo(List.of("equalTo"))
        .field("field")
        .notEndsWith(List.of("notEndsWith"))
        .notEquals(List.of("notEquals"))
        .notStartsWith(List.of("notStartsWith"))
        .startsWith(List.of("startsWith"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ObservabilityAdmin;

var advancedFieldSelectorProperty = new AdvancedFieldSelectorProperty {
    EndsWith = new [] { "endsWith" },
    EqualTo = new [] { "equalTo" },
    Field = "field",
    NotEndsWith = new [] { "notEndsWith" },
    NotEquals = new [] { "notEquals" },
    NotStartsWith = new [] { "notStartsWith" },
    StartsWith = new [] { "startsWith" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

advancedFieldSelectorProperty := &AdvancedFieldSelectorProperty{
	EndsWith: []*string{
		jsii.String("endsWith"),
	},
	EqualTo: []*string{
		jsii.String("equalTo"),
	},
	Field: jsii.String("field"),
	NotEndsWith: []*string{
		jsii.String("notEndsWith"),
	},
	NotEquals: []*string{
		jsii.String("notEquals"),
	},
	NotStartsWith: []*string{
		jsii.String("notStartsWith"),
	},
	StartsWith: []*string{
		jsii.String("startsWith"),
	},
}
```

## Properties

- `endsWith`: string[] — Matches if the field value ends with the specified value.

- `equalTo`: string[] — Matches if the field value equals the specified value.

- `field`: string — The name of the field to use for selection.

- `notEndsWith`: string[] — Matches if the field value does not end with the specified value.

- `notEquals`: string[] — Matches if the field value does not equal the specified value.

- `notStartsWith`: string[] — Matches if the field value does not start with the specified value.

- `startsWith`: string[] — Matches if the field value starts with the specified value.
