Class: AWSCDK::EKS::CfnFargateProfile::SelectorProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_fargate_profile.rb

Overview

An object representing an AWS Fargate profile selector.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace:, labels: nil) ⇒ SelectorProperty

Returns a new instance of SelectorProperty.

Parameters:



638
639
640
641
642
643
# File 'eks/cfn_fargate_profile.rb', line 638

def initialize(namespace:, labels: nil)
  @namespace = namespace
  Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace")
  @labels = labels
  Jsii::Type.check_type(@labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkNmbkZhcmdhdGVQcm9maWxlLkxhYmVsUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "labels") unless @labels.nil?
end

Instance Attribute Details

#labelsAWSCDK::IResolvable, ... (readonly)

The Kubernetes labels that the selector should match.

A pod must contain all of the labels that are specified in the selector for it to be considered a match.



656
657
658
# File 'eks/cfn_fargate_profile.rb', line 656

def labels
  @labels
end

#namespaceString (readonly)

The Kubernetes namespace that the selector should match.



649
650
651
# File 'eks/cfn_fargate_profile.rb', line 649

def namespace
  @namespace
end

Class Method Details

.jsii_propertiesObject



658
659
660
661
662
663
# File 'eks/cfn_fargate_profile.rb', line 658

def self.jsii_properties
  {
    :namespace => "namespace",
    :labels => "labels",
  }
end

Instance Method Details

#to_jsiiObject



665
666
667
668
669
670
671
672
# File 'eks/cfn_fargate_profile.rb', line 665

def to_jsii
  result = {}
  result.merge!({
    "namespace" => @namespace,
    "labels" => @labels,
  })
  result.compact
end