Class: AWSCDK::Interfaces::AWSEKS::FargateProfileReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awseks/fargate_profile_reference.rb

Overview

A reference to a FargateProfile resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_name:, fargate_profile_arn:, fargate_profile_name:) ⇒ FargateProfileReference

Returns a new instance of FargateProfileReference.

Parameters:

  • cluster_name (String)

    The ClusterName of the FargateProfile resource.

  • fargate_profile_arn (String)

    The ARN of the FargateProfile resource.

  • fargate_profile_name (String)

    The FargateProfileName of the FargateProfile resource.



10
11
12
13
14
15
16
17
# File 'interfaces/awseks/fargate_profile_reference.rb', line 10

def initialize(cluster_name:, fargate_profile_arn:, fargate_profile_name:)
  @cluster_name = cluster_name
  Jsii::Type.check_type(@cluster_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterName")
  @fargate_profile_arn = fargate_profile_arn
  Jsii::Type.check_type(@fargate_profile_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fargateProfileArn")
  @fargate_profile_name = fargate_profile_name
  Jsii::Type.check_type(@fargate_profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fargateProfileName")
end

Instance Attribute Details

#cluster_nameString (readonly)

The ClusterName of the FargateProfile resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/awseks/fargate_profile_reference.rb', line 22

def cluster_name
  @cluster_name
end

#fargate_profile_arnString (readonly)

The ARN of the FargateProfile resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/awseks/fargate_profile_reference.rb', line 26

def fargate_profile_arn
  @fargate_profile_arn
end

#fargate_profile_nameString (readonly)

The FargateProfileName of the FargateProfile resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/awseks/fargate_profile_reference.rb', line 30

def fargate_profile_name
  @fargate_profile_name
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/awseks/fargate_profile_reference.rb', line 32

def self.jsii_properties
  {
    :cluster_name => "clusterName",
    :fargate_profile_arn => "fargateProfileArn",
    :fargate_profile_name => "fargateProfileName",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/awseks/fargate_profile_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "clusterName" => @cluster_name,
    "fargateProfileArn" => @fargate_profile_arn,
    "fargateProfileName" => @fargate_profile_name,
  })
  result.compact
end