Interface CfnPlan.EksResourceScalingConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlan.EksResourceScalingConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnPlan
@Stability(Stable)
public static interface CfnPlan.EksResourceScalingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The AWS EKS resource scaling configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.arcregionswitch.*;
EksResourceScalingConfigurationProperty eksResourceScalingConfigurationProperty = EksResourceScalingConfigurationProperty.builder()
.kubernetesResourceType(KubernetesResourceTypeProperty.builder()
.apiVersion("apiVersion")
.kind("kind")
.build())
// the properties below are optional
.capacityMonitoringApproach("capacityMonitoringApproach")
.eksClusters(List.of(EksClusterProperty.builder()
.clusterArn("clusterArn")
// the properties below are optional
.crossAccountRole("crossAccountRole")
.externalId("externalId")
.build()))
.scalingResources(List.of(Map.of(
"scalingResourcesKey", Map.of(
"scalingResourcesKey", KubernetesScalingResourceProperty.builder()
.name("name")
.namespace("namespace")
// the properties below are optional
.hpaName("hpaName")
.build()))))
.targetPercent(123)
.timeoutMinutes(123)
.ungraceful(EksResourceScalingUngracefulProperty.builder()
.minimumSuccessPercentage(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPlan.EksResourceScalingConfigurationPropertystatic final classAn implementation forCfnPlan.EksResourceScalingConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe monitoring approach for the configuration, that is, whether it was sampled in the last 24 hours or autoscaled in the last 24 hours.default ObjectThe clusters for the configuration.The Kubernetes resource type for the configuration.default ObjectThe scaling resources for the configuration.default NumberThe target percentage for the configuration.default NumberThe timeout value specified for the configuration.default ObjectThe settings for ungraceful execution.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKubernetesResourceType
The Kubernetes resource type for the configuration.Returns union: either
IResolvableorCfnPlan.KubernetesResourceTypeProperty- See Also:
-
getCapacityMonitoringApproach
The monitoring approach for the configuration, that is, whether it was sampled in the last 24 hours or autoscaled in the last 24 hours.- See Also:
-
getEksClusters
The clusters for the configuration.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPlan.EksClusterProperty>- See Also:
-
getScalingResources
The scaling resources for the configuration.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableor Mapinvalid input: '<'String, eitherIResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnPlan.KubernetesScalingResourceProperty>>>- See Also:
-
getTargetPercent
The target percentage for the configuration.Default: - 100
- See Also:
-
getTimeoutMinutes
The timeout value specified for the configuration.Default: - 60
- See Also:
-
getUngraceful
The settings for ungraceful execution.Returns union: either
IResolvableorCfnPlan.EksResourceScalingUngracefulProperty- See Also:
-
builder
-