Class: AWSCDK::CodeGuruProfiler::ProfilingGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeGuruProfiler::ProfilingGroupProps
- Defined in:
- code_guru_profiler/profiling_group_props.rb
Overview
Properties for creating a new Profiling Group.
Instance Attribute Summary collapse
-
#compute_platform ⇒ AWSCDK::CodeGuruProfiler::ComputePlatform?
readonly
The compute platform of the profiling group.
-
#profiling_group_name ⇒ String?
readonly
A name for the profiling group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_platform: nil, profiling_group_name: nil) ⇒ ProfilingGroupProps
constructor
A new instance of ProfilingGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_platform: nil, profiling_group_name: nil) ⇒ ProfilingGroupProps
Returns a new instance of ProfilingGroupProps.
9 10 11 12 13 14 |
# File 'code_guru_profiler/profiling_group_props.rb', line 9 def initialize(compute_platform: nil, profiling_group_name: nil) @compute_platform = compute_platform Jsii::Type.check_type(@compute_platform, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWd1cnVwcm9maWxlci5Db21wdXRlUGxhdGZvcm0ifQ==")), "computePlatform") unless @compute_platform.nil? @profiling_group_name = profiling_group_name Jsii::Type.check_type(@profiling_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profilingGroupName") unless @profiling_group_name.nil? end |
Instance Attribute Details
#compute_platform ⇒ AWSCDK::CodeGuruProfiler::ComputePlatform? (readonly)
Note:
Default: ComputePlatform.DEFAULT
The compute platform of the profiling group.
20 21 22 |
# File 'code_guru_profiler/profiling_group_props.rb', line 20 def compute_platform @compute_platform end |
#profiling_group_name ⇒ String? (readonly)
Note:
Default: - automatically generated name.
A name for the profiling group.
25 26 27 |
# File 'code_guru_profiler/profiling_group_props.rb', line 25 def profiling_group_name @profiling_group_name end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'code_guru_profiler/profiling_group_props.rb', line 27 def self.jsii_properties { :compute_platform => "computePlatform", :profiling_group_name => "profilingGroupName", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'code_guru_profiler/profiling_group_props.rb', line 34 def to_jsii result = {} result.merge!({ "computePlatform" => @compute_platform, "profilingGroupName" => @profiling_group_name, }) result.compact end |