Class CfnClusterSchedulerConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnClusterSchedulerConfig
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IClusterSchedulerConfigRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:00.609Z")
@Stability(Stable)
public class CfnClusterSchedulerConfig
extends CfnResource
implements IInspectable, IClusterSchedulerConfigRef, ITaggableV2
Resource Type definition for AWS::SageMaker::ClusterSchedulerConfig.
Cluster policy configuration used for task prioritization and fair-share allocation of idle compute.
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.sagemaker.*;
CfnClusterSchedulerConfig cfnClusterSchedulerConfig = CfnClusterSchedulerConfig.Builder.create(this, "MyCfnClusterSchedulerConfig")
.clusterArn("clusterArn")
.name("name")
.schedulerConfig(SchedulerConfigProperty.builder()
.fairShare("fairShare")
.idleResourceSharing("idleResourceSharing")
.priorityClasses(List.of(PriorityClassProperty.builder()
.name("name")
.weight(123)
.build()))
.build())
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnClusterSchedulerConfig.static interfacePriority class configuration.static interfaceCluster policy configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IClusterSchedulerConfigRef
IClusterSchedulerConfigRef.Jsii$Default, IClusterSchedulerConfigRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnClusterSchedulerConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnClusterSchedulerConfig(software.amazon.jsii.JsiiObjectRef objRef) CfnClusterSchedulerConfig(software.constructs.Construct scope, String id, CfnClusterSchedulerConfigProps props) Create a newAWS::SageMaker::ClusterSchedulerConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringARN of the cluster policy.ID of the cluster policy.Version of the cluster policy.Creation time of the cluster policy.Status of the cluster policy.Tag Manager which manages the tags for this resource.ARN of the cluster.A reference to a ClusterSchedulerConfig resource.Description of the cluster policy.getName()Name for the cluster policy.Cluster policy configuration.getTags()Tags of the cluster policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnClusterSchedulerConfig.renderProperties(Map<String, Object> props) voidsetClusterArn(String value) ARN of the cluster.voidsetDescription(String value) Description of the cluster policy.voidName for the cluster policy.voidsetSchedulerConfig(IResolvable value) Cluster policy configuration.voidCluster policy configuration.voidTags of the cluster policy.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnClusterSchedulerConfig
protected CfnClusterSchedulerConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnClusterSchedulerConfig
protected CfnClusterSchedulerConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnClusterSchedulerConfig
@Stability(Stable) public CfnClusterSchedulerConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterSchedulerConfigProps props) Create a newAWS::SageMaker::ClusterSchedulerConfig.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForClusterSchedulerConfig
@Stability(Stable) @NotNull public static String arnForClusterSchedulerConfig(@NotNull IClusterSchedulerConfigRef resource) - Parameters:
resource- This parameter is required.
-
isCfnClusterSchedulerConfig
Checks whether the given object is a CfnClusterSchedulerConfig.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrClusterSchedulerConfigArn
ARN of the cluster policy. -
getAttrClusterSchedulerConfigId
ID of the cluster policy. -
getAttrClusterSchedulerConfigVersion
Version of the cluster policy. -
getAttrCreationTime
Creation time of the cluster policy. -
getAttrStatus
Status of the cluster policy. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getClusterSchedulerConfigRef
A reference to a ClusterSchedulerConfig resource.- Specified by:
getClusterSchedulerConfigRefin interfaceIClusterSchedulerConfigRef
-
getClusterArn
ARN of the cluster. -
setClusterArn
ARN of the cluster. -
getName
Name for the cluster policy. -
setName
Name for the cluster policy. -
getSchedulerConfig
Cluster policy configuration.Returns union: either
IResolvableorCfnClusterSchedulerConfig.SchedulerConfigProperty -
setSchedulerConfig
Cluster policy configuration. -
setSchedulerConfig
@Stability(Stable) public void setSchedulerConfig(@NotNull CfnClusterSchedulerConfig.SchedulerConfigProperty value) Cluster policy configuration. -
getDescription
Description of the cluster policy. -
setDescription
Description of the cluster policy. -
getTags
Tags of the cluster policy. -
setTags
Tags of the cluster policy.
-