Class CfnMonitoringSchedule

java.lang.Object
software.amazon.jsii.JsiiObject
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.464Z") @Stability(Stable) public class CfnMonitoringSchedule extends CfnResource implements IInspectable
A CloudFormation AWS::SageMaker::MonitoringSchedule.

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.*;
 Object json;
 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()
                                 .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
                                         .s3DataDistributionType("s3DataDistributionType")
                                         .s3InputMode("s3InputMode")
                                         .build())
                                 .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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnMonitoringSchedule

      protected CfnMonitoringSchedule(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnMonitoringSchedule

      protected CfnMonitoringSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnMonitoringSchedule

      @Stability(Stable) public CfnMonitoringSchedule(@NotNull Construct scope, @NotNull String id, @NotNull CfnMonitoringScheduleProps props)
      Create a new AWS::SageMaker::MonitoringSchedule.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The time when the monitoring schedule was created.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
      The last time that the monitoring schedule was modified.
    • getAttrMonitoringScheduleArn

      @Stability(Stable) @NotNull public String getAttrMonitoringScheduleArn()
      The Amazon Resource Name (ARN) of the monitoring schedule.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

    • getMonitoringScheduleConfig

      @Stability(Stable) @NotNull public Object getMonitoringScheduleConfig()
      The configuration object that specifies the monitoring schedule and defines the monitoring job.
    • setMonitoringScheduleConfig

      @Stability(Stable) public void setMonitoringScheduleConfig(@NotNull IResolvable value)
      The configuration object that specifies the monitoring schedule and defines the monitoring job.
    • setMonitoringScheduleConfig

      @Stability(Stable) public void setMonitoringScheduleConfig(@NotNull CfnMonitoringSchedule.MonitoringScheduleConfigProperty value)
      The configuration object that specifies the monitoring schedule and defines the monitoring job.
    • getMonitoringScheduleName

      @Stability(Stable) @NotNull public String getMonitoringScheduleName()
      The name of the monitoring schedule.
    • setMonitoringScheduleName

      @Stability(Stable) public void setMonitoringScheduleName(@NotNull String value)
      The name of the monitoring schedule.
    • getEndpointName

      @Stability(Stable) @Nullable public String getEndpointName()
      The name of the endpoint using the monitoring schedule.
    • setEndpointName

      @Stability(Stable) public void setEndpointName(@Nullable String value)
      The name of the endpoint using the monitoring schedule.
    • getFailureReason

      @Stability(Stable) @Nullable public String getFailureReason()
      Contains the reason a monitoring job failed, if it failed.
    • setFailureReason

      @Stability(Stable) public void setFailureReason(@Nullable String value)
      Contains the reason a monitoring job failed, if it failed.
    • getLastMonitoringExecutionSummary

      @Stability(Stable) @Nullable public Object getLastMonitoringExecutionSummary()
      Describes metadata on the last execution to run, if there was one.
    • setLastMonitoringExecutionSummary

      @Stability(Stable) public void setLastMonitoringExecutionSummary(@Nullable IResolvable value)
      Describes metadata on the last execution to run, if there was one.
    • setLastMonitoringExecutionSummary

      @Stability(Stable) public void setLastMonitoringExecutionSummary(@Nullable CfnMonitoringSchedule.MonitoringExecutionSummaryProperty value)
      Describes metadata on the last execution to run, if there was one.
    • getMonitoringScheduleStatus

      @Stability(Stable) @Nullable public String getMonitoringScheduleStatus()
      The status of the monitoring schedule.
    • setMonitoringScheduleStatus

      @Stability(Stable) public void setMonitoringScheduleStatus(@Nullable String value)
      The status of the monitoring schedule.