Class: AWSCDK::ARCRegionSwitch::CfnPlan::EKSResourceScalingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::EKSResourceScalingConfigurationProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
The AWS EKS resource scaling configuration.
Instance Attribute Summary collapse
-
#capacity_monitoring_approach ⇒ String?
readonly
The monitoring approach for the configuration, that is, whether it was sampled in the last 24 hours or autoscaled in the last 24 hours.
-
#eks_clusters ⇒ AWSCDK::IResolvable, ...
readonly
The clusters for the configuration.
-
#kubernetes_resource_type ⇒ AWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesResourceTypeProperty
readonly
The Kubernetes resource type for the configuration.
-
#scaling_resources ⇒ AWSCDK::IResolvable, ...
readonly
The scaling resources for the configuration.
-
#target_percent ⇒ Numeric?
readonly
The target percentage for the configuration.
-
#timeout_minutes ⇒ Numeric?
readonly
The timeout value specified for the configuration.
-
#ungraceful ⇒ AWSCDK::IResolvable, ...
readonly
The settings for ungraceful execution.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kubernetes_resource_type:, capacity_monitoring_approach: nil, eks_clusters: nil, scaling_resources: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) ⇒ EKSResourceScalingConfigurationProperty
constructor
A new instance of EKSResourceScalingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kubernetes_resource_type:, capacity_monitoring_approach: nil, eks_clusters: nil, scaling_resources: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) ⇒ EKSResourceScalingConfigurationProperty
Returns a new instance of EKSResourceScalingConfigurationProperty.
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 |
# File 'arc_region_switch/cfn_plan.rb', line 1534 def initialize(kubernetes_resource_type:, capacity_monitoring_approach: nil, eks_clusters: nil, scaling_resources: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) @kubernetes_resource_type = kubernetes_resource_type.is_a?(Hash) ? ::AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesResourceTypeProperty.new(**kubernetes_resource_type.transform_keys(&:to_sym)) : kubernetes_resource_type Jsii::Type.check_type(@kubernetes_resource_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5LdWJlcm5ldGVzUmVzb3VyY2VUeXBlUHJvcGVydHkifV19fQ==")), "kubernetesResourceType") @capacity_monitoring_approach = capacity_monitoring_approach Jsii::Type.check_type(@capacity_monitoring_approach, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityMonitoringApproach") unless @capacity_monitoring_approach.nil? @eks_clusters = eks_clusters Jsii::Type.check_type(@eks_clusters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXJjcmVnaW9uc3dpdGNoLkNmblBsYW4uRWtzQ2x1c3RlclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "eksClusters") unless @eks_clusters.nil? @scaling_resources = scaling_resources Jsii::Type.check_type(@scaling_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2YWJsZSJ9LHsiY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5LdWJlcm5ldGVzU2NhbGluZ1Jlc291cmNlUHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fSwia2luZCI6Im1hcCJ9fV19fSwia2luZCI6ImFycmF5In19XX19")), "scalingResources") unless @scaling_resources.nil? @target_percent = target_percent Jsii::Type.check_type(@target_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetPercent") unless @target_percent.nil? @timeout_minutes = timeout_minutes Jsii::Type.check_type(@timeout_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMinutes") unless @timeout_minutes.nil? @ungraceful = ungraceful.is_a?(Hash) ? ::AWSCDK::ARCRegionSwitch::CfnPlan::EKSResourceScalingUngracefulProperty.new(**ungraceful.transform_keys(&:to_sym)) : ungraceful Jsii::Type.check_type(@ungraceful, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5Fa3NSZXNvdXJjZVNjYWxpbmdVbmdyYWNlZnVsUHJvcGVydHkifV19fQ==")), "ungraceful") unless @ungraceful.nil? end |
Instance Attribute Details
#capacity_monitoring_approach ⇒ String? (readonly)
The monitoring approach for the configuration, that is, whether it was sampled in the last 24 hours or autoscaled in the last 24 hours.
1560 1561 1562 |
# File 'arc_region_switch/cfn_plan.rb', line 1560 def capacity_monitoring_approach @capacity_monitoring_approach end |
#eks_clusters ⇒ AWSCDK::IResolvable, ... (readonly)
The clusters for the configuration.
1565 1566 1567 |
# File 'arc_region_switch/cfn_plan.rb', line 1565 def eks_clusters @eks_clusters end |
#kubernetes_resource_type ⇒ AWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesResourceTypeProperty (readonly)
The Kubernetes resource type for the configuration.
1555 1556 1557 |
# File 'arc_region_switch/cfn_plan.rb', line 1555 def kubernetes_resource_type @kubernetes_resource_type end |
#scaling_resources ⇒ AWSCDK::IResolvable, ... (readonly)
The scaling resources for the configuration.
1570 1571 1572 |
# File 'arc_region_switch/cfn_plan.rb', line 1570 def scaling_resources @scaling_resources end |
#target_percent ⇒ Numeric? (readonly)
Default: - 100
The target percentage for the configuration.
1576 1577 1578 |
# File 'arc_region_switch/cfn_plan.rb', line 1576 def target_percent @target_percent end |
#timeout_minutes ⇒ Numeric? (readonly)
Default: - 60
The timeout value specified for the configuration.
1582 1583 1584 |
# File 'arc_region_switch/cfn_plan.rb', line 1582 def timeout_minutes @timeout_minutes end |
#ungraceful ⇒ AWSCDK::IResolvable, ... (readonly)
The settings for ungraceful execution.
1587 1588 1589 |
# File 'arc_region_switch/cfn_plan.rb', line 1587 def ungraceful @ungraceful end |
Class Method Details
.jsii_properties ⇒ Object
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 |
# File 'arc_region_switch/cfn_plan.rb', line 1589 def self.jsii_properties { :kubernetes_resource_type => "kubernetesResourceType", :capacity_monitoring_approach => "capacityMonitoringApproach", :eks_clusters => "eksClusters", :scaling_resources => "scalingResources", :target_percent => "targetPercent", :timeout_minutes => "timeoutMinutes", :ungraceful => "ungraceful", } end |
Instance Method Details
#to_jsii ⇒ Object
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 |
# File 'arc_region_switch/cfn_plan.rb', line 1601 def to_jsii result = {} result.merge!({ "kubernetesResourceType" => @kubernetes_resource_type, "capacityMonitoringApproach" => @capacity_monitoring_approach, "eksClusters" => @eks_clusters, "scalingResources" => @scaling_resources, "targetPercent" => @target_percent, "timeoutMinutes" => @timeout_minutes, "ungraceful" => @ungraceful, }) result.compact end |