Class: AWSCDK::ResilienceHubv2::CfnService::EKSSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resilience_hubv2/cfn_service.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_arn:, namespaces:) ⇒ EKSSourceProperty

Returns a new instance of EKSSourceProperty.

Parameters:

  • cluster_arn (String)

    ARN of the EKS cluster.

  • namespaces (Array<String>)

    EKS namespaces.



914
915
916
917
918
919
# File 'resilience_hubv2/cfn_service.rb', line 914

def initialize(cluster_arn:, namespaces:)
  @cluster_arn = cluster_arn
  Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn")
  @namespaces = namespaces
  Jsii::Type.check_type(@namespaces, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "namespaces")
end

Instance Attribute Details

#cluster_arnString (readonly)

ARN of the EKS cluster.



925
926
927
# File 'resilience_hubv2/cfn_service.rb', line 925

def cluster_arn
  @cluster_arn
end

#namespacesArray<String> (readonly)

EKS namespaces.



930
931
932
# File 'resilience_hubv2/cfn_service.rb', line 930

def namespaces
  @namespaces
end

Class Method Details

.jsii_propertiesObject



932
933
934
935
936
937
# File 'resilience_hubv2/cfn_service.rb', line 932

def self.jsii_properties
  {
    :cluster_arn => "clusterArn",
    :namespaces => "namespaces",
  }
end

Instance Method Details

#to_jsiiObject



939
940
941
942
943
944
945
946
# File 'resilience_hubv2/cfn_service.rb', line 939

def to_jsii
  result = {}
  result.merge!({
    "clusterArn" => @cluster_arn,
    "namespaces" => @namespaces,
  })
  result.compact
end