Class: AWSCDK::RedshiftServerless::CfnWorkgroup::PerformanceTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RedshiftServerless::CfnWorkgroup::PerformanceTargetProperty
- Defined in:
- redshift_serverless/cfn_workgroup.rb
Overview
An object that represents the price performance target settings for the workgroup.
Instance Attribute Summary collapse
-
#level ⇒ Numeric?
readonly
The target price performance level for the workgroup.
-
#status ⇒ String?
readonly
Whether the price performance target is enabled for the workgroup.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(level: nil, status: nil) ⇒ PerformanceTargetProperty
constructor
A new instance of PerformanceTargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(level: nil, status: nil) ⇒ PerformanceTargetProperty
Returns a new instance of PerformanceTargetProperty.
1035 1036 1037 1038 1039 1040 |
# File 'redshift_serverless/cfn_workgroup.rb', line 1035 def initialize(level: nil, status: nil) @level = level Jsii::Type.check_type(@level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "level") unless @level.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? end |
Instance Attribute Details
#level ⇒ Numeric? (readonly)
The target price performance level for the workgroup.
Valid values include 1, 25, 50, 75, and 100. These correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.
1048 1049 1050 |
# File 'redshift_serverless/cfn_workgroup.rb', line 1048 def level @level end |
#status ⇒ String? (readonly)
Whether the price performance target is enabled for the workgroup.
1053 1054 1055 |
# File 'redshift_serverless/cfn_workgroup.rb', line 1053 def status @status end |
Class Method Details
.jsii_properties ⇒ Object
1055 1056 1057 1058 1059 1060 |
# File 'redshift_serverless/cfn_workgroup.rb', line 1055 def self.jsii_properties { :level => "level", :status => "status", } end |
Instance Method Details
#to_jsii ⇒ Object
1062 1063 1064 1065 1066 1067 1068 1069 |
# File 'redshift_serverless/cfn_workgroup.rb', line 1062 def to_jsii result = {} result.merge!({ "level" => @level, "status" => @status, }) result.compact end |