@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.939Z") @Stability(value=Stable) public class CfnMonitoringSchedule extends CfnResource implements IInspectable
The AWS::SageMaker::MonitoringSchedule resource is an Amazon SageMaker resource type that regularly starts SageMaker processing Jobs to monitor the data captured for a SageMaker endpoint.
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.*;
CfnMonitoringSchedule cfnMonitoringSchedule = CfnMonitoringSchedule.Builder.create(this, "MyCfnMonitoringSchedule")
.monitoringScheduleConfig(MonitoringScheduleConfigProperty.builder()
.monitoringJobDefinition(MonitoringJobDefinitionProperty.builder()
.monitoringAppSpecification(MonitoringAppSpecificationProperty.builder()
.imageUri("imageUri")
// the properties below are optional
.containerArguments(List.of("containerArguments"))
.containerEntrypoint(List.of("containerEntrypoint"))
.postAnalyticsProcessorSourceUri("postAnalyticsProcessorSourceUri")
.recordPreprocessorSourceUri("recordPreprocessorSourceUri")
.build())
.monitoringInputs(List.of(MonitoringInputProperty.builder()
.endpointInput(EndpointInputProperty.builder()
.endpointName("endpointName")
.localPath("localPath")
// the properties below are optional
.s3DataDistributionType("s3DataDistributionType")
.s3InputMode("s3InputMode")
.build())
.build()))
.monitoringOutputConfig(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())
.monitoringResources(MonitoringResourcesProperty.builder()
.clusterConfig(ClusterConfigProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
.volumeSizeInGb(123)
// the properties below are optional
.volumeKmsKeyId("volumeKmsKeyId")
.build())
.build())
.roleArn("roleArn")
// the properties below are optional
.baselineConfig(BaselineConfigProperty.builder()
.constraintsResource(ConstraintsResourceProperty.builder()
.s3Uri("s3Uri")
.build())
.statisticsResource(StatisticsResourceProperty.builder()
.s3Uri("s3Uri")
.build())
.build())
.environment(Map.of(
"environmentKey", "environment"))
.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())
.build())
.monitoringJobDefinitionName("monitoringJobDefinitionName")
.monitoringType("monitoringType")
.scheduleConfig(ScheduleConfigProperty.builder()
.scheduleExpression("scheduleExpression")
.build())
.build())
.monitoringScheduleName("monitoringScheduleName")
// the properties below are optional
.endpointName("endpointName")
.failureReason("failureReason")
.lastMonitoringExecutionSummary(MonitoringExecutionSummaryProperty.builder()
.creationTime("creationTime")
.lastModifiedTime("lastModifiedTime")
.monitoringExecutionStatus("monitoringExecutionStatus")
.monitoringScheduleName("monitoringScheduleName")
.scheduledTime("scheduledTime")
// the properties below are optional
.endpointName("endpointName")
.failureReason("failureReason")
.processingJobArn("processingJobArn")
.build())
.monitoringScheduleStatus("monitoringScheduleStatus")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnMonitoringSchedule.BaselineConfigProperty
Baseline configuration used to validate that the data conforms to the specified constraints and statistics.
|
static class |
CfnMonitoringSchedule.Builder
A fluent builder for
CfnMonitoringSchedule. |
static interface |
CfnMonitoringSchedule.ClusterConfigProperty
Configuration for the cluster used to run model monitoring jobs.
|
static interface |
CfnMonitoringSchedule.ConstraintsResourceProperty
The Amazon S3 URI for the constraints resource.
|
static interface |
CfnMonitoringSchedule.EndpointInputProperty
Input object for the endpoint.
|
static interface |
CfnMonitoringSchedule.MonitoringAppSpecificationProperty
Container image configuration object for the monitoring job.
|
static interface |
CfnMonitoringSchedule.MonitoringExecutionSummaryProperty
Summary of information about the last monitoring job to run.
|
static interface |
CfnMonitoringSchedule.MonitoringInputProperty
The inputs for a monitoring job.
|
static interface |
CfnMonitoringSchedule.MonitoringJobDefinitionProperty
Defines the monitoring job.
|
static interface |
CfnMonitoringSchedule.MonitoringOutputConfigProperty
The output configuration for monitoring jobs.
|
static interface |
CfnMonitoringSchedule.MonitoringOutputProperty
The output object for a monitoring job.
|
static interface |
CfnMonitoringSchedule.MonitoringResourcesProperty
Identifies the resources to deploy for a monitoring job.
|
static interface |
CfnMonitoringSchedule.MonitoringScheduleConfigProperty
Configures the monitoring schedule and defines the monitoring job.
|
static interface |
CfnMonitoringSchedule.NetworkConfigProperty
Networking 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 interface |
CfnMonitoringSchedule.S3OutputProperty
Information about where and how you want to store the results of a monitoring job.
|
static interface |
CfnMonitoringSchedule.ScheduleConfigProperty
Configuration details about the monitoring schedule.
|
static interface |
CfnMonitoringSchedule.StatisticsResourceProperty
The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.
|
static interface |
CfnMonitoringSchedule.StoppingConditionProperty
Specifies a limit to how long a model training job or model compilation job can run.
|
static interface |
CfnMonitoringSchedule.VpcConfigProperty
Specifies a VPC that your training jobs and hosted models have access to.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMonitoringSchedule(software.constructs.Construct scope,
String id,
CfnMonitoringScheduleProps props)
Create a new `AWS::SageMaker::MonitoringSchedule`.
|
protected |
CfnMonitoringSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMonitoringSchedule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCreationTime()
The time when the monitoring schedule was created.
|
String |
getAttrLastModifiedTime()
The last time that the monitoring schedule was modified.
|
String |
getAttrMonitoringScheduleArn()
The Amazon Resource Name (ARN) of the monitoring schedule.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getEndpointName()
The name of the endpoint using the monitoring schedule.
|
String |
getFailureReason()
Contains the reason a monitoring job failed, if it failed.
|
Object |
getLastMonitoringExecutionSummary()
Describes metadata on the last execution to run, if there was one.
|
Object |
getMonitoringScheduleConfig()
The configuration object that specifies the monitoring schedule and defines the monitoring job.
|
String |
getMonitoringScheduleName()
The name of the monitoring schedule.
|
String |
getMonitoringScheduleStatus()
The status of the monitoring schedule.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setEndpointName(String value)
The name of the endpoint using the monitoring schedule.
|
void |
setFailureReason(String value)
Contains the reason a monitoring job failed, if it failed.
|
void |
setLastMonitoringExecutionSummary(CfnMonitoringSchedule.MonitoringExecutionSummaryProperty value)
Describes metadata on the last execution to run, if there was one.
|
void |
setLastMonitoringExecutionSummary(IResolvable value)
Describes metadata on the last execution to run, if there was one.
|
void |
setMonitoringScheduleConfig(CfnMonitoringSchedule.MonitoringScheduleConfigProperty value)
The configuration object that specifies the monitoring schedule and defines the monitoring job.
|
void |
setMonitoringScheduleConfig(IResolvable value)
The configuration object that specifies the monitoring schedule and defines the monitoring job.
|
void |
setMonitoringScheduleName(String value)
The name of the monitoring schedule.
|
void |
setMonitoringScheduleStatus(String value)
The status of the monitoring schedule.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMonitoringSchedule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMonitoringSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMonitoringSchedule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnMonitoringScheduleProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCreationTime()
@Stability(value=Stable) @NotNull public String getAttrLastModifiedTime()
@Stability(value=Stable) @NotNull public String getAttrMonitoringScheduleArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getMonitoringScheduleConfig()
@Stability(value=Stable)
public void setMonitoringScheduleConfig(@NotNull
CfnMonitoringSchedule.MonitoringScheduleConfigProperty value)
@Stability(value=Stable)
public void setMonitoringScheduleConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getMonitoringScheduleName()
@Stability(value=Stable)
public void setMonitoringScheduleName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getEndpointName()
@Stability(value=Stable)
public void setEndpointName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getFailureReason()
@Stability(value=Stable)
public void setFailureReason(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getLastMonitoringExecutionSummary()
@Stability(value=Stable)
public void setLastMonitoringExecutionSummary(@Nullable
CfnMonitoringSchedule.MonitoringExecutionSummaryProperty value)
@Stability(value=Stable)
public void setLastMonitoringExecutionSummary(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getMonitoringScheduleStatus()
@Stability(value=Stable)
public void setMonitoringScheduleStatus(@Nullable
String value)
Copyright © 2022. All rights reserved.