Class: AWSCDK::VPCLattice::CfnTargetGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnTargetGroupProps
- Defined in:
- vpc_lattice/cfn_target_group_props.rb
Overview
Properties for defining a CfnTargetGroup.
Instance Attribute Summary collapse
-
#config ⇒ AWSCDK::IResolvable, ...
readonly
The target group configuration.
-
#name ⇒ String?
readonly
The name of the target group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags for the target group.
-
#targets ⇒ AWSCDK::IResolvable, ...
readonly
Describes a target.
-
#type ⇒ String
readonly
The type of target group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, config: nil, name: nil, tags: nil, targets: nil) ⇒ CfnTargetGroupProps
constructor
A new instance of CfnTargetGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, config: nil, name: nil, tags: nil, targets: nil) ⇒ CfnTargetGroupProps
Returns a new instance of CfnTargetGroupProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 14 def initialize(type:, config: nil, name: nil, tags: nil, targets: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @config = config.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnTargetGroup::TargetGroupConfigProperty.new(**config.transform_keys(&:to_sym)) : config Jsii::Type.check_type(@config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmblRhcmdldEdyb3VwLlRhcmdldEdyb3VwQ29uZmlnUHJvcGVydHkifV19fQ==")), "config") unless @config.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @targets = targets Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfdnBjbGF0dGljZS5DZm5UYXJnZXRHcm91cC5UYXJnZXRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "targets") unless @targets.nil? end |
Instance Attribute Details
#config ⇒ AWSCDK::IResolvable, ... (readonly)
The target group configuration.
36 37 38 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 36 def config @config end |
#name ⇒ String? (readonly)
The name of the target group.
The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
45 46 47 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 45 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags for the target group.
50 51 52 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 50 def @tags end |
#targets ⇒ AWSCDK::IResolvable, ... (readonly)
Describes a target.
55 56 57 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 55 def targets @targets end |
#type ⇒ String (readonly)
The type of target group.
31 32 33 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 31 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 57 def self.jsii_properties { :type => "type", :config => "config", :name => "name", :tags => "tags", :targets => "targets", } end |
Instance Method Details
#to_jsii ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'vpc_lattice/cfn_target_group_props.rb', line 67 def to_jsii result = {} result.merge!({ "type" => @type, "config" => @config, "name" => @name, "tags" => @tags, "targets" => @targets, }) result.compact end |