Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::AdvancedFieldSelectorProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_organization_telemetry_rule.rb

Overview

Defines criteria for selecting resources based on field values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ends_with: nil, equal_to: nil, field: nil, not_ends_with: nil, not_equals: nil, not_starts_with: nil, starts_with: nil) ⇒ AdvancedFieldSelectorProperty

Returns a new instance of AdvancedFieldSelectorProperty.

Parameters:

  • ends_with (Array<String>, nil) (defaults to: nil)

    Matches if the field value ends with the specified value.

  • equal_to (Array<String>, nil) (defaults to: nil)

    Matches if the field value equals the specified value.

  • field (String, nil) (defaults to: nil)

    The name of the field to use for selection.

  • not_ends_with (Array<String>, nil) (defaults to: nil)

    Matches if the field value does not end with the specified value.

  • not_equals (Array<String>, nil) (defaults to: nil)

    Matches if the field value does not equal the specified value.

  • not_starts_with (Array<String>, nil) (defaults to: nil)

    Matches if the field value does not start with the specified value.

  • starts_with (Array<String>, nil) (defaults to: nil)

    Matches if the field value starts with the specified value.



629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 629

def initialize(ends_with: nil, equal_to: nil, field: nil, not_ends_with: nil, not_equals: nil, not_starts_with: nil, starts_with: nil)
  @ends_with = ends_with
  Jsii::Type.check_type(@ends_with, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "endsWith") unless @ends_with.nil?
  @equal_to = equal_to
  Jsii::Type.check_type(@equal_to, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "equalTo") unless @equal_to.nil?
  @field = field
  Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "field") unless @field.nil?
  @not_ends_with = not_ends_with
  Jsii::Type.check_type(@not_ends_with, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notEndsWith") unless @not_ends_with.nil?
  @not_equals = not_equals
  Jsii::Type.check_type(@not_equals, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notEquals") unless @not_equals.nil?
  @not_starts_with = not_starts_with
  Jsii::Type.check_type(@not_starts_with, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notStartsWith") unless @not_starts_with.nil?
  @starts_with = starts_with
  Jsii::Type.check_type(@starts_with, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "startsWith") unless @starts_with.nil?
end

Instance Attribute Details

#ends_withArray<String>? (readonly)

Matches if the field value ends with the specified value.



650
651
652
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 650

def ends_with
  @ends_with
end

#equal_toArray<String>? (readonly)

Matches if the field value equals the specified value.



655
656
657
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 655

def equal_to
  @equal_to
end

#fieldString? (readonly)

The name of the field to use for selection.



660
661
662
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 660

def field
  @field
end

#not_ends_withArray<String>? (readonly)

Matches if the field value does not end with the specified value.



665
666
667
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 665

def not_ends_with
  @not_ends_with
end

#not_equalsArray<String>? (readonly)

Matches if the field value does not equal the specified value.



670
671
672
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 670

def not_equals
  @not_equals
end

#not_starts_withArray<String>? (readonly)

Matches if the field value does not start with the specified value.



675
676
677
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 675

def not_starts_with
  @not_starts_with
end

#starts_withArray<String>? (readonly)

Matches if the field value starts with the specified value.



680
681
682
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 680

def starts_with
  @starts_with
end

Class Method Details

.jsii_propertiesObject



682
683
684
685
686
687
688
689
690
691
692
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 682

def self.jsii_properties
  {
    :ends_with => "endsWith",
    :equal_to => "equalTo",
    :field => "field",
    :not_ends_with => "notEndsWith",
    :not_equals => "notEquals",
    :not_starts_with => "notStartsWith",
    :starts_with => "startsWith",
  }
end

Instance Method Details

#to_jsiiObject



694
695
696
697
698
699
700
701
702
703
704
705
706
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 694

def to_jsii
  result = {}
  result.merge!({
    "endsWith" => @ends_with,
    "equalTo" => @equal_to,
    "field" => @field,
    "notEndsWith" => @not_ends_with,
    "notEquals" => @not_equals,
    "notStartsWith" => @not_starts_with,
    "startsWith" => @starts_with,
  })
  result.compact
end