Class: AWSCDK::DeviceFarm::CfnTestGridProjectProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DeviceFarm::CfnTestGridProjectProps
- Defined in:
- device_farm/cfn_test_grid_project_props.rb
Overview
Properties for defining a CfnTestGridProject.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A human-readable description for the project.
-
#name ⇒ String
readonly
A human-readable name for the project.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#vpc_config ⇒ AWSCDK::IResolvable, ...
readonly
The VPC security groups and subnets that are attached to a project.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, tags: nil, vpc_config: nil) ⇒ CfnTestGridProjectProps
constructor
A new instance of CfnTestGridProjectProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, tags: nil, vpc_config: nil) ⇒ CfnTestGridProjectProps
Returns a new instance of CfnTestGridProjectProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 13 def initialize(name:, description: nil, tags: nil, vpc_config: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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? @vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::DeviceFarm::CfnTestGridProject::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZpY2VmYXJtLkNmblRlc3RHcmlkUHJvamVjdC5WcGNDb25maWdQcm9wZXJ0eSJ9XX19")), "vpcConfig") unless @vpc_config.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A human-readable description for the project.
33 34 35 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 33 def description @description end |
#name ⇒ String (readonly)
A human-readable name for the project.
28 29 30 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 28 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag in the guide .
40 41 42 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 40 def @tags end |
#vpc_config ⇒ AWSCDK::IResolvable, ... (readonly)
The VPC security groups and subnets that are attached to a project.
45 46 47 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 45 def vpc_config @vpc_config end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 47 def self.jsii_properties { :name => "name", :description => "description", :tags => "tags", :vpc_config => "vpcConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'device_farm/cfn_test_grid_project_props.rb', line 56 def to_jsii result = {} result.merge!({ "name" => @name, "description" => @description, "tags" => @tags, "vpcConfig" => @vpc_config, }) result.compact end |