Class CfnModelQualityJobDefinition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.sagemaker.CfnModelQualityJobDefinition
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.440Z")
@Stability(Stable)
public class CfnModelQualityJobDefinition
extends CfnResource
implements IInspectable
A CloudFormation
AWS::SageMaker::ModelQualityJobDefinition.
Creates a definition for a job that monitors model quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor .
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.*;
Object json;
CfnModelQualityJobDefinition cfnModelQualityJobDefinition = CfnModelQualityJobDefinition.Builder.create(this, "MyCfnModelQualityJobDefinition")
.jobResources(MonitoringResourcesProperty.builder()
.clusterConfig(ClusterConfigProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
.volumeSizeInGb(123)
// the properties below are optional
.volumeKmsKeyId("volumeKmsKeyId")
.build())
.build())
.modelQualityAppSpecification(ModelQualityAppSpecificationProperty.builder()
.imageUri("imageUri")
.problemType("problemType")
// the properties below are optional
.containerArguments(List.of("containerArguments"))
.containerEntrypoint(List.of("containerEntrypoint"))
.environment(Map.of(
"environmentKey", "environment"))
.postAnalyticsProcessorSourceUri("postAnalyticsProcessorSourceUri")
.recordPreprocessorSourceUri("recordPreprocessorSourceUri")
.build())
.modelQualityJobInput(ModelQualityJobInputProperty.builder()
.groundTruthS3Input(MonitoringGroundTruthS3InputProperty.builder()
.s3Uri("s3Uri")
.build())
// the properties below are optional
.batchTransformInput(BatchTransformInputProperty.builder()
.dataCapturedDestinationS3Uri("dataCapturedDestinationS3Uri")
.datasetFormat(DatasetFormatProperty.builder()
.csv(CsvProperty.builder()
.header(false)
.build())
.json(json)
.parquet(false)
.build())
.localPath("localPath")
// the properties below are optional
.endTimeOffset("endTimeOffset")
.inferenceAttribute("inferenceAttribute")
.probabilityAttribute("probabilityAttribute")
.probabilityThresholdAttribute(123)
.s3DataDistributionType("s3DataDistributionType")
.s3InputMode("s3InputMode")
.startTimeOffset("startTimeOffset")
.build())
.endpointInput(EndpointInputProperty.builder()
.endpointName("endpointName")
.localPath("localPath")
// the properties below are optional
.endTimeOffset("endTimeOffset")
.inferenceAttribute("inferenceAttribute")
.probabilityAttribute("probabilityAttribute")
.probabilityThresholdAttribute(123)
.s3DataDistributionType("s3DataDistributionType")
.s3InputMode("s3InputMode")
.startTimeOffset("startTimeOffset")
.build())
.build())
.modelQualityJobOutputConfig(MonitoringOutputConfigProperty.builder()
.monitoringOutputs(List.of(MonitoringOutputProperty.builder()
.s3Output(S3OutputProperty.builder()
.localPath("localPath")
.s3Uri("s3Uri")
// the properties below are optional
.s3UploadMode("s3UploadMode")
.build())
.build()))
// the properties below are optional
.kmsKeyId("kmsKeyId")
.build())
.roleArn("roleArn")
// the properties below are optional
.endpointName("endpointName")
.jobDefinitionName("jobDefinitionName")
.modelQualityBaselineConfig(ModelQualityBaselineConfigProperty.builder()
.baseliningJobName("baseliningJobName")
.constraintsResource(ConstraintsResourceProperty.builder()
.s3Uri("s3Uri")
.build())
.build())
.networkConfig(NetworkConfigProperty.builder()
.enableInterContainerTrafficEncryption(false)
.enableNetworkIsolation(false)
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build())
.build())
.stoppingCondition(StoppingConditionProperty.builder()
.maxRuntimeInSeconds(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnModelQualityJobDefinition.static interfaceThe configuration for the cluster of resources used to run the processing job.static interfaceThe constraints resource for a monitoring job.static interfaceExample:static interfaceExample:static interfaceInput object for the endpoint.static interfaceExample:static interfaceContainer image configuration object for the monitoring job.static interfaceConfiguration for monitoring constraints and monitoring statistics.static interfaceThe input for the model quality monitoring job.static interfaceThe ground truth labels for the dataset used for the monitoring job.static interfaceThe output configuration for monitoring jobs.static interfaceThe output object for a monitoring job.static interfaceIdentifies the resources to deploy for a monitoring job.static interfaceNetworking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.static interfaceThe Amazon S3 storage location where the results of a monitoring job are saved.static interfaceSpecifies a limit to how long a model training job or model compilation job can run.static interfaceSpecifies a VPC that your training jobs and hosted models have access to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnModelQualityJobDefinition(Construct scope, String id, CfnModelQualityJobDefinitionProps props) Create a newAWS::SageMaker::ModelQualityJobDefinition.protectedCfnModelQualityJobDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnModelQualityJobDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe time when the job definition was created.The Amazon Resource Name (ARN) of the job definition.AWS::SageMaker::ModelQualityJobDefinition.EndpointName.The name of the monitoring job definition.Identifies the resources to deploy for a monitoring job.Container image configuration object for the monitoring job.Specifies the constraints and baselines for the monitoring job.A list of the inputs that are monitored.The output configuration for monitoring jobs.Specifies the network configuration for the monitoring job.The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.A time limit for how long the monitoring job is allowed to run before stopping.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEndpointName(String value) AWS::SageMaker::ModelQualityJobDefinition.EndpointName.voidsetJobDefinitionName(String value) The name of the monitoring job definition.voidsetJobResources(IResolvable value) Identifies the resources to deploy for a monitoring job.voidIdentifies the resources to deploy for a monitoring job.voidContainer image configuration object for the monitoring job.voidsetModelQualityAppSpecification(CfnModelQualityJobDefinition.ModelQualityAppSpecificationProperty value) Container image configuration object for the monitoring job.voidSpecifies the constraints and baselines for the monitoring job.voidsetModelQualityBaselineConfig(CfnModelQualityJobDefinition.ModelQualityBaselineConfigProperty value) Specifies the constraints and baselines for the monitoring job.voidA list of the inputs that are monitored.voidA list of the inputs that are monitored.voidThe output configuration for monitoring jobs.voidThe output configuration for monitoring jobs.voidsetNetworkConfig(IResolvable value) Specifies the network configuration for the monitoring job.voidSpecifies the network configuration for the monitoring job.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.voidsetStoppingCondition(IResolvable value) A time limit for how long the monitoring job is allowed to run before stopping.voidA time limit for how long the monitoring job is allowed to run before stopping.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnModelQualityJobDefinition
protected CfnModelQualityJobDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
CfnModelQualityJobDefinition
protected CfnModelQualityJobDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnModelQualityJobDefinition
@Stability(Stable) public CfnModelQualityJobDefinition(@NotNull Construct scope, @NotNull String id, @NotNull CfnModelQualityJobDefinitionProps props) Create a newAWS::SageMaker::ModelQualityJobDefinition.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
The time when the job definition was created. -
getAttrJobDefinitionArn
The Amazon Resource Name (ARN) of the job definition. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getJobResources
Identifies the resources to deploy for a monitoring job. -
setJobResources
Identifies the resources to deploy for a monitoring job. -
setJobResources
@Stability(Stable) public void setJobResources(@NotNull CfnModelQualityJobDefinition.MonitoringResourcesProperty value) Identifies the resources to deploy for a monitoring job. -
getModelQualityAppSpecification
Container image configuration object for the monitoring job. -
setModelQualityAppSpecification
Container image configuration object for the monitoring job. -
setModelQualityAppSpecification
@Stability(Stable) public void setModelQualityAppSpecification(@NotNull CfnModelQualityJobDefinition.ModelQualityAppSpecificationProperty value) Container image configuration object for the monitoring job. -
getModelQualityJobInput
A list of the inputs that are monitored.Currently endpoints are supported.
-
setModelQualityJobInput
A list of the inputs that are monitored.Currently endpoints are supported.
-
setModelQualityJobInput
@Stability(Stable) public void setModelQualityJobInput(@NotNull CfnModelQualityJobDefinition.ModelQualityJobInputProperty value) A list of the inputs that are monitored.Currently endpoints are supported.
-
getModelQualityJobOutputConfig
The output configuration for monitoring jobs. -
setModelQualityJobOutputConfig
The output configuration for monitoring jobs. -
setModelQualityJobOutputConfig
@Stability(Stable) public void setModelQualityJobOutputConfig(@NotNull CfnModelQualityJobDefinition.MonitoringOutputConfigProperty value) The output configuration for monitoring jobs. -
getRoleArn
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. -
setRoleArn
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. -
getEndpointName
AWS::SageMaker::ModelQualityJobDefinition.EndpointName. -
setEndpointName
AWS::SageMaker::ModelQualityJobDefinition.EndpointName. -
getJobDefinitionName
The name of the monitoring job definition. -
setJobDefinitionName
The name of the monitoring job definition. -
getModelQualityBaselineConfig
Specifies the constraints and baselines for the monitoring job. -
setModelQualityBaselineConfig
Specifies the constraints and baselines for the monitoring job. -
setModelQualityBaselineConfig
@Stability(Stable) public void setModelQualityBaselineConfig(@Nullable CfnModelQualityJobDefinition.ModelQualityBaselineConfigProperty value) Specifies the constraints and baselines for the monitoring job. -
getNetworkConfig
Specifies the network configuration for the monitoring job. -
setNetworkConfig
Specifies the network configuration for the monitoring job. -
setNetworkConfig
@Stability(Stable) public void setNetworkConfig(@Nullable CfnModelQualityJobDefinition.NetworkConfigProperty value) Specifies the network configuration for the monitoring job. -
getStoppingCondition
A time limit for how long the monitoring job is allowed to run before stopping. -
setStoppingCondition
A time limit for how long the monitoring job is allowed to run before stopping. -
setStoppingCondition
@Stability(Stable) public void setStoppingCondition(@Nullable CfnModelQualityJobDefinition.StoppingConditionProperty value) A time limit for how long the monitoring job is allowed to run before stopping.
-