CfnMonitoringScheduleProps Struct
Properties for defining a CfnMonitoringSchedule.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnMonitoringScheduleProps: sagemaker.CfnMonitoringScheduleProps = {
monitoringScheduleConfig: {
monitoringJobDefinition: {
monitoringAppSpecification: {
imageUri: 'imageUri',
// the properties below are optional
containerArguments: ['containerArguments'],
containerEntrypoint: ['containerEntrypoint'],
postAnalyticsProcessorSourceUri: 'postAnalyticsProcessorSourceUri',
recordPreprocessorSourceUri: 'recordPreprocessorSourceUri',
},
monitoringInputs: [{
batchTransformInput: {
dataCapturedDestinationS3Uri: 'dataCapturedDestinationS3Uri',
datasetFormat: {
csv: {
header: false,
},
json: {
line: false,
},
parquet: false,
},
localPath: 'localPath',
// the properties below are optional
excludeFeaturesAttribute: 'excludeFeaturesAttribute',
s3DataDistributionType: 's3DataDistributionType',
s3InputMode: 's3InputMode',
},
endpointInput: {
endpointName: 'endpointName',
localPath: 'localPath',
// the properties below are optional
excludeFeaturesAttribute: 'excludeFeaturesAttribute',
s3DataDistributionType: 's3DataDistributionType',
s3InputMode: 's3InputMode',
},
}],
monitoringOutputConfig: {
monitoringOutputs: [{
s3Output: {
localPath: 'localPath',
s3Uri: 's3Uri',
// the properties below are optional
s3UploadMode: 's3UploadMode',
},
}],
// the properties below are optional
kmsKeyId: 'kmsKeyId',
},
monitoringResources: {
clusterConfig: {
instanceCount: 123,
instanceType: 'instanceType',
volumeSizeInGb: 123,
// the properties below are optional
volumeKmsKeyId: 'volumeKmsKeyId',
},
},
roleArn: 'roleArn',
// the properties below are optional
baselineConfig: {
constraintsResource: {
s3Uri: 's3Uri',
},
statisticsResource: {
s3Uri: 's3Uri',
},
},
environment: {
environmentKey: 'environment',
},
networkConfig: {
enableInterContainerTrafficEncryption: false,
enableNetworkIsolation: false,
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
},
},
stoppingCondition: {
maxRuntimeInSeconds: 123,
},
},
monitoringJobDefinitionName: 'monitoringJobDefinitionName',
monitoringType: 'monitoringType',
scheduleConfig: {
scheduleExpression: 'scheduleExpression',
// the properties below are optional
dataAnalysisEndTime: 'dataAnalysisEndTime',
dataAnalysisStartTime: 'dataAnalysisStartTime',
},
},
monitoringScheduleName: 'monitoringScheduleName',
// the properties below are optional
endpointName: 'endpointName',
failureReason: 'failureReason',
lastMonitoringExecutionSummary: {
creationTime: 'creationTime',
lastModifiedTime: 'lastModifiedTime',
monitoringExecutionStatus: 'monitoringExecutionStatus',
monitoringScheduleName: 'monitoringScheduleName',
scheduledTime: 'scheduledTime',
// the properties below are optional
endpointName: 'endpointName',
failureReason: 'failureReason',
processingJobArn: 'processingJobArn',
},
monitoringScheduleStatus: 'monitoringScheduleStatus',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
cfn_monitoring_schedule_props = sagemaker.CfnMonitoringScheduleProps(
monitoring_schedule_config=sagemaker.CfnMonitoringSchedule.MonitoringScheduleConfigProperty(
monitoring_job_definition=sagemaker.CfnMonitoringSchedule.MonitoringJobDefinitionProperty(
monitoring_app_specification=sagemaker.CfnMonitoringSchedule.MonitoringAppSpecificationProperty(
image_uri="imageUri",
# the properties below are optional
container_arguments=["containerArguments"],
container_entrypoint=["containerEntrypoint"],
post_analytics_processor_source_uri="postAnalyticsProcessorSourceUri",
record_preprocessor_source_uri="recordPreprocessorSourceUri"
),
monitoring_inputs=[sagemaker.CfnMonitoringSchedule.MonitoringInputProperty(
batch_transform_input=sagemaker.CfnMonitoringSchedule.BatchTransformInputProperty(
data_captured_destination_s3_uri="dataCapturedDestinationS3Uri",
dataset_format=sagemaker.CfnMonitoringSchedule.DatasetFormatProperty(
csv=sagemaker.CfnMonitoringSchedule.CsvProperty(
header=False
),
json=sagemaker.CfnMonitoringSchedule.JsonProperty(
line=False
),
parquet=False
),
local_path="localPath",
# the properties below are optional
exclude_features_attribute="excludeFeaturesAttribute",
s3_data_distribution_type="s3DataDistributionType",
s3_input_mode="s3InputMode"
),
endpoint_input=sagemaker.CfnMonitoringSchedule.EndpointInputProperty(
endpoint_name="endpointName",
local_path="localPath",
# the properties below are optional
exclude_features_attribute="excludeFeaturesAttribute",
s3_data_distribution_type="s3DataDistributionType",
s3_input_mode="s3InputMode"
)
)],
monitoring_output_config=sagemaker.CfnMonitoringSchedule.MonitoringOutputConfigProperty(
monitoring_outputs=[sagemaker.CfnMonitoringSchedule.MonitoringOutputProperty(
s3_output=sagemaker.CfnMonitoringSchedule.S3OutputProperty(
local_path="localPath",
s3_uri="s3Uri",
# the properties below are optional
s3_upload_mode="s3UploadMode"
)
)],
# the properties below are optional
kms_key_id="kmsKeyId"
),
monitoring_resources=sagemaker.CfnMonitoringSchedule.MonitoringResourcesProperty(
cluster_config=sagemaker.CfnMonitoringSchedule.ClusterConfigProperty(
instance_count=123,
instance_type="instanceType",
volume_size_in_gb=123,
# the properties below are optional
volume_kms_key_id="volumeKmsKeyId"
)
),
role_arn="roleArn",
# the properties below are optional
baseline_config=sagemaker.CfnMonitoringSchedule.BaselineConfigProperty(
constraints_resource=sagemaker.CfnMonitoringSchedule.ConstraintsResourceProperty(
s3_uri="s3Uri"
),
statistics_resource=sagemaker.CfnMonitoringSchedule.StatisticsResourceProperty(
s3_uri="s3Uri"
)
),
environment={
"environment_key": "environment"
},
network_config=sagemaker.CfnMonitoringSchedule.NetworkConfigProperty(
enable_inter_container_traffic_encryption=False,
enable_network_isolation=False,
vpc_config=sagemaker.CfnMonitoringSchedule.VpcConfigProperty(
security_group_ids=["securityGroupIds"],
subnets=["subnets"]
)
),
stopping_condition=sagemaker.CfnMonitoringSchedule.StoppingConditionProperty(
max_runtime_in_seconds=123
)
),
monitoring_job_definition_name="monitoringJobDefinitionName",
monitoring_type="monitoringType",
schedule_config=sagemaker.CfnMonitoringSchedule.ScheduleConfigProperty(
schedule_expression="scheduleExpression",
# the properties below are optional
data_analysis_end_time="dataAnalysisEndTime",
data_analysis_start_time="dataAnalysisStartTime"
)
),
monitoring_schedule_name="monitoringScheduleName",
# the properties below are optional
endpoint_name="endpointName",
failure_reason="failureReason",
last_monitoring_execution_summary=sagemaker.CfnMonitoringSchedule.MonitoringExecutionSummaryProperty(
creation_time="creationTime",
last_modified_time="lastModifiedTime",
monitoring_execution_status="monitoringExecutionStatus",
monitoring_schedule_name="monitoringScheduleName",
scheduled_time="scheduledTime",
# the properties below are optional
endpoint_name="endpointName",
failure_reason="failureReason",
processing_job_arn="processingJobArn"
),
monitoring_schedule_status="monitoringScheduleStatus",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnMonitoringScheduleProps cfnMonitoringScheduleProps = CfnMonitoringScheduleProps.builder()
.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()
.batchTransformInput(BatchTransformInputProperty.builder()
.dataCapturedDestinationS3Uri("dataCapturedDestinationS3Uri")
.datasetFormat(DatasetFormatProperty.builder()
.csv(CsvProperty.builder()
.header(false)
.build())
.json(JsonProperty.builder()
.line(false)
.build())
.parquet(false)
.build())
.localPath("localPath")
// the properties below are optional
.excludeFeaturesAttribute("excludeFeaturesAttribute")
.s3DataDistributionType("s3DataDistributionType")
.s3InputMode("s3InputMode")
.build())
.endpointInput(EndpointInputProperty.builder()
.endpointName("endpointName")
.localPath("localPath")
// the properties below are optional
.excludeFeaturesAttribute("excludeFeaturesAttribute")
.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")
// the properties below are optional
.dataAnalysisEndTime("dataAnalysisEndTime")
.dataAnalysisStartTime("dataAnalysisStartTime")
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var cfnMonitoringScheduleProps = new CfnMonitoringScheduleProps {
MonitoringScheduleConfig = new MonitoringScheduleConfigProperty {
MonitoringJobDefinition = new MonitoringJobDefinitionProperty {
MonitoringAppSpecification = new MonitoringAppSpecificationProperty {
ImageUri = "imageUri",
// the properties below are optional
ContainerArguments = new [] { "containerArguments" },
ContainerEntrypoint = new [] { "containerEntrypoint" },
PostAnalyticsProcessorSourceUri = "postAnalyticsProcessorSourceUri",
RecordPreprocessorSourceUri = "recordPreprocessorSourceUri"
},
MonitoringInputs = new [] { new MonitoringInputProperty {
BatchTransformInput = new BatchTransformInputProperty {
DataCapturedDestinationS3Uri = "dataCapturedDestinationS3Uri",
DatasetFormat = new DatasetFormatProperty {
Csv = new CsvProperty {
Header = false
},
Json = new JsonProperty {
Line = false
},
Parquet = false
},
LocalPath = "localPath",
// the properties below are optional
ExcludeFeaturesAttribute = "excludeFeaturesAttribute",
S3DataDistributionType = "s3DataDistributionType",
S3InputMode = "s3InputMode"
},
EndpointInput = new EndpointInputProperty {
EndpointName = "endpointName",
LocalPath = "localPath",
// the properties below are optional
ExcludeFeaturesAttribute = "excludeFeaturesAttribute",
S3DataDistributionType = "s3DataDistributionType",
S3InputMode = "s3InputMode"
}
} },
MonitoringOutputConfig = new MonitoringOutputConfigProperty {
MonitoringOutputs = new [] { new MonitoringOutputProperty {
S3Output = new S3OutputProperty {
LocalPath = "localPath",
S3Uri = "s3Uri",
// the properties below are optional
S3UploadMode = "s3UploadMode"
}
} },
// the properties below are optional
KmsKeyId = "kmsKeyId"
},
MonitoringResources = new MonitoringResourcesProperty {
ClusterConfig = new ClusterConfigProperty {
InstanceCount = 123,
InstanceType = "instanceType",
VolumeSizeInGb = 123,
// the properties below are optional
VolumeKmsKeyId = "volumeKmsKeyId"
}
},
RoleArn = "roleArn",
// the properties below are optional
BaselineConfig = new BaselineConfigProperty {
ConstraintsResource = new ConstraintsResourceProperty {
S3Uri = "s3Uri"
},
StatisticsResource = new StatisticsResourceProperty {
S3Uri = "s3Uri"
}
},
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
NetworkConfig = new NetworkConfigProperty {
EnableInterContainerTrafficEncryption = false,
EnableNetworkIsolation = false,
VpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
Subnets = new [] { "subnets" }
}
},
StoppingCondition = new StoppingConditionProperty {
MaxRuntimeInSeconds = 123
}
},
MonitoringJobDefinitionName = "monitoringJobDefinitionName",
MonitoringType = "monitoringType",
ScheduleConfig = new ScheduleConfigProperty {
ScheduleExpression = "scheduleExpression",
// the properties below are optional
DataAnalysisEndTime = "dataAnalysisEndTime",
DataAnalysisStartTime = "dataAnalysisStartTime"
}
},
MonitoringScheduleName = "monitoringScheduleName",
// the properties below are optional
EndpointName = "endpointName",
FailureReason = "failureReason",
LastMonitoringExecutionSummary = new MonitoringExecutionSummaryProperty {
CreationTime = "creationTime",
LastModifiedTime = "lastModifiedTime",
MonitoringExecutionStatus = "monitoringExecutionStatus",
MonitoringScheduleName = "monitoringScheduleName",
ScheduledTime = "scheduledTime",
// the properties below are optional
EndpointName = "endpointName",
FailureReason = "failureReason",
ProcessingJobArn = "processingJobArn"
},
MonitoringScheduleStatus = "monitoringScheduleStatus",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnMonitoringScheduleProps := &CfnMonitoringScheduleProps{
MonitoringScheduleConfig: &MonitoringScheduleConfigProperty{
MonitoringJobDefinition: &MonitoringJobDefinitionProperty{
MonitoringAppSpecification: &MonitoringAppSpecificationProperty{
ImageUri: jsii.String("imageUri"),
// the properties below are optional
ContainerArguments: []*string{
jsii.String("containerArguments"),
},
ContainerEntrypoint: []*string{
jsii.String("containerEntrypoint"),
},
PostAnalyticsProcessorSourceUri: jsii.String("postAnalyticsProcessorSourceUri"),
RecordPreprocessorSourceUri: jsii.String("recordPreprocessorSourceUri"),
},
MonitoringInputs: []interface{}{
&MonitoringInputProperty{
BatchTransformInput: &BatchTransformInputProperty{
DataCapturedDestinationS3Uri: jsii.String("dataCapturedDestinationS3Uri"),
DatasetFormat: &DatasetFormatProperty{
Csv: &CsvProperty{
Header: jsii.Boolean(false),
},
Json: &JsonProperty{
Line: jsii.Boolean(false),
},
Parquet: jsii.Boolean(false),
},
LocalPath: jsii.String("localPath"),
// the properties below are optional
ExcludeFeaturesAttribute: jsii.String("excludeFeaturesAttribute"),
S3DataDistributionType: jsii.String("s3DataDistributionType"),
S3InputMode: jsii.String("s3InputMode"),
},
EndpointInput: &EndpointInputProperty{
EndpointName: jsii.String("endpointName"),
LocalPath: jsii.String("localPath"),
// the properties below are optional
ExcludeFeaturesAttribute: jsii.String("excludeFeaturesAttribute"),
S3DataDistributionType: jsii.String("s3DataDistributionType"),
S3InputMode: jsii.String("s3InputMode"),
},
},
},
MonitoringOutputConfig: &MonitoringOutputConfigProperty{
MonitoringOutputs: []interface{}{
&MonitoringOutputProperty{
S3Output: &S3OutputProperty{
LocalPath: jsii.String("localPath"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
S3UploadMode: jsii.String("s3UploadMode"),
},
},
},
// the properties below are optional
KmsKeyId: jsii.String("kmsKeyId"),
},
MonitoringResources: &MonitoringResourcesProperty{
ClusterConfig: &ClusterConfigProperty{
InstanceCount: jsii.Number(123),
InstanceType: jsii.String("instanceType"),
VolumeSizeInGb: jsii.Number(123),
// the properties below are optional
VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
BaselineConfig: &BaselineConfigProperty{
ConstraintsResource: &ConstraintsResourceProperty{
S3Uri: jsii.String("s3Uri"),
},
StatisticsResource: &StatisticsResourceProperty{
S3Uri: jsii.String("s3Uri"),
},
},
Environment: map[string]*string{
"environmentKey": jsii.String("environment"),
},
NetworkConfig: &NetworkConfigProperty{
EnableInterContainerTrafficEncryption: jsii.Boolean(false),
EnableNetworkIsolation: jsii.Boolean(false),
VpcConfig: &VpcConfigProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
},
StoppingCondition: &StoppingConditionProperty{
MaxRuntimeInSeconds: jsii.Number(123),
},
},
MonitoringJobDefinitionName: jsii.String("monitoringJobDefinitionName"),
MonitoringType: jsii.String("monitoringType"),
ScheduleConfig: &ScheduleConfigProperty{
ScheduleExpression: jsii.String("scheduleExpression"),
// the properties below are optional
DataAnalysisEndTime: jsii.String("dataAnalysisEndTime"),
DataAnalysisStartTime: jsii.String("dataAnalysisStartTime"),
},
},
MonitoringScheduleName: jsii.String("monitoringScheduleName"),
// the properties below are optional
EndpointName: jsii.String("endpointName"),
FailureReason: jsii.String("failureReason"),
LastMonitoringExecutionSummary: &MonitoringExecutionSummaryProperty{
CreationTime: jsii.String("creationTime"),
LastModifiedTime: jsii.String("lastModifiedTime"),
MonitoringExecutionStatus: jsii.String("monitoringExecutionStatus"),
MonitoringScheduleName: jsii.String("monitoringScheduleName"),
ScheduledTime: jsii.String("scheduledTime"),
// the properties below are optional
EndpointName: jsii.String("endpointName"),
FailureReason: jsii.String("failureReason"),
ProcessingJobArn: jsii.String("processingJobArn"),
},
MonitoringScheduleStatus: jsii.String("monitoringScheduleStatus"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
endpointNameoptionalstringendpoint_nameoptionalstrendpointNameoptionalStringEndpointNameoptionalstringEndpointNameoptional*string #The name of the endpoint using the monitoring schedule.
failureReasonoptionalstringfailure_reasonoptionalstrfailureReasonoptionalStringFailureReasonoptionalstringFailureReasonoptional*string #Contains the reason a monitoring job failed, if it failed.
lastMonitoringExecutionSummaryoptionalIResolvable | CfnMonitoringSchedule.last_monitoring_execution_summaryoptionaltyping.Union[IResolvable, MonitoringExecutionSummaryProperty]lastMonitoringExecutionSummaryoptionalIResolvableLastMonitoringExecutionSummaryoptionalIResolvableLastMonitoringExecutionSummaryoptionalinterface{} #Describes metadata on the last execution to run, if there was one.
monitoringScheduleConfigIResolvable | CfnMonitoringSchedule.monitoring_schedule_configtyping.Union[IResolvable, MonitoringScheduleConfigProperty]monitoringScheduleConfigIResolvableMonitoringScheduleConfigIResolvableMonitoringScheduleConfiginterface{} required #The configuration object that specifies the monitoring schedule and defines the monitoring job.
monitoringScheduleNamestringmonitoring_schedule_namestrmonitoringScheduleNameStringMonitoringScheduleNamestringMonitoringScheduleName*string required #The name of the monitoring schedule.
monitoringScheduleStatusoptionalstringmonitoring_schedule_statusoptionalstrmonitoringScheduleStatusoptionalStringMonitoringScheduleStatusoptionalstringMonitoringScheduleStatusoptional*string #The status of the monitoring schedule.