AnalyticsFilter

sealed class AnalyticsFilter

The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis.

Inheritors

Types

Link copied to clipboard
data class And(val value: AnalyticsAndOperator) : AnalyticsFilter

A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.

Link copied to clipboard
data class Prefix(val value: String) : AnalyticsFilter

The prefix to use when evaluating an analytics filter.

Link copied to clipboard
Link copied to clipboard
data class Tag(val value: Tag) : AnalyticsFilter

The tag to use when evaluating an analytics filter.

Functions

Link copied to clipboard

Casts this AnalyticsFilter as a And and retrieves its aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator value. Throws an exception if the AnalyticsFilter is not a And.

Link copied to clipboard

Casts this AnalyticsFilter as a And and retrieves its aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator value. Returns null if the AnalyticsFilter is not a And.

Link copied to clipboard

Casts this AnalyticsFilter as a Prefix and retrieves its kotlin.String value. Throws an exception if the AnalyticsFilter is not a Prefix.

Link copied to clipboard

Casts this AnalyticsFilter as a Prefix and retrieves its kotlin.String value. Returns null if the AnalyticsFilter is not a Prefix.

Link copied to clipboard
fun asTag(): Tag

Casts this AnalyticsFilter as a Tag and retrieves its aws.sdk.kotlin.services.s3.model.Tag value. Throws an exception if the AnalyticsFilter is not a Tag.

Link copied to clipboard

Casts this AnalyticsFilter as a Tag and retrieves its aws.sdk.kotlin.services.s3.model.Tag value. Returns null if the AnalyticsFilter is not a Tag.