Class: AWSCDK::RedshiftServerless::CfnWorkgroup::PerformanceTargetProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
redshift_serverless/cfn_workgroup.rb

Overview

An object that represents the price performance target settings for the workgroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(level: nil, status: nil) ⇒ PerformanceTargetProperty

Returns a new instance of PerformanceTargetProperty.

Parameters:

  • level (Numeric, nil) (defaults to: nil)

    The target price performance level for the workgroup.

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

    Whether the price performance target is enabled for the workgroup.



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

#levelNumeric? (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

#statusString? (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_propertiesObject



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_jsiiObject



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