Class: AWSCDK::CodeGuruProfiler::ProfilingGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_guru_profiler/profiling_group_props.rb

Overview

Properties for creating a new Profiling Group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(compute_platform: nil, profiling_group_name: nil) ⇒ ProfilingGroupProps

Returns a new instance of ProfilingGroupProps.

Parameters:

  • compute_platform (AWSCDK::CodeGuruProfiler::ComputePlatform, nil) (defaults to: nil)

    The compute platform of the profiling group.

  • profiling_group_name (String, nil) (defaults to: nil)

    A name for the profiling group.



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_platformAWSCDK::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_nameString? (readonly)

Note:

Default: - automatically generated name.

A name for the profiling group.

Returns:

  • (String, nil)


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_propertiesObject



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_jsiiObject



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