Experimental
@aws-cdk/aws-sagemaker-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ScalableInstanceCountProps Struct
The properties of a scalable attribute representing task count.
| Stability | Experimental |
|---|---|
| Source | lib/scalable-instance-count.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const role: iam.Role;
const scalableInstanceCountProps: sagemaker_alpha.ScalableInstanceCountProps = {
dimension: 'dimension',
maxCapacity: 123,
resourceId: 'resourceId',
role: role,
serviceNamespace: appscaling.ServiceNamespace.ECS,
// the properties below are optional
minCapacity: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sagemaker_alpha as sagemaker_alpha
from aws_cdk import aws_applicationautoscaling as appscaling
from aws_cdk import aws_iam as iam
# role: iam.Role
scalable_instance_count_props = sagemaker_alpha.ScalableInstanceCountProps(
dimension="dimension",
max_capacity=123,
resource_id="resourceId",
role=role,
service_namespace=appscaling.ServiceNamespace.ECS,
# the properties below are optional
min_capacity=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.alpha.*;
import software.amazon.awscdk.services.applicationautoscaling.*;
import software.amazon.awscdk.services.iam.*;
Role role;
ScalableInstanceCountProps scalableInstanceCountProps = ScalableInstanceCountProps.builder()
.dimension("dimension")
.maxCapacity(123)
.resourceId("resourceId")
.role(role)
.serviceNamespace(ServiceNamespace.ECS)
// the properties below are optional
.minCapacity(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Sagemaker.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker.Alpha;
using Amazon.CDK.AWS.ApplicationAutoScaling;
using Amazon.CDK.AWS.IAM;
Role role;
var scalableInstanceCountProps = new ScalableInstanceCountProps {
Dimension = "dimension",
MaxCapacity = 123,
ResourceId = "resourceId",
Role = role,
ServiceNamespace = ServiceNamespace.ECS,
// the properties below are optional
MinCapacity = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import sagemaker_alpha "github.com/aws/aws-cdk-go/awscdksagemakeralpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
scalableInstanceCountProps := &ScalableInstanceCountProps{
Dimension: jsii.String("dimension"),
MaxCapacity: jsii.Number(123),
ResourceId: jsii.String("resourceId"),
Role: role,
ServiceNamespace: awscdk.Aws_applicationautoscaling.ServiceNamespace_ECS,
// the properties below are optional
MinCapacity: jsii.Number(123),
}
Properties
Scalable dimension of the attribute.
maxCapacitynumbermax_capacityint | floatmaxCapacityNumberMaxCapacitydoubleMaxCapacity*float64 required #Maximum capacity to scale to.
minCapacityoptionalnumbermin_capacityoptionalint | floatminCapacityoptionalNumberMinCapacityoptionaldoubleMinCapacityoptional*float64 = 1 #Minimum capacity to scale to.
Resource ID of the attribute.
serviceNamespaceServiceNamespaceservice_namespaceServiceNamespaceserviceNamespaceServiceNamespaceServiceNamespaceServiceNamespaceServiceNamespaceServiceNamespace required #Service namespace of the scalable attribute.