aws.sagemaker.MonitoringSchedule
Explore with Pulumi AI
Provides a SageMaker monitoring schedule resource.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.sagemaker.MonitoringSchedule("test", {
name: "my-monitoring-schedule",
monitoringScheduleConfig: {
monitoringJobDefinitionName: testAwsSagemakerDataQualityJobDefinition.name,
monitoringType: "DataQuality",
},
});
import pulumi
import pulumi_aws as aws
test = aws.sagemaker.MonitoringSchedule("test",
name="my-monitoring-schedule",
monitoring_schedule_config={
"monitoring_job_definition_name": test_aws_sagemaker_data_quality_job_definition["name"],
"monitoring_type": "DataQuality",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewMonitoringSchedule(ctx, "test", &sagemaker.MonitoringScheduleArgs{
Name: pulumi.String("my-monitoring-schedule"),
MonitoringScheduleConfig: &sagemaker.MonitoringScheduleMonitoringScheduleConfigArgs{
MonitoringJobDefinitionName: pulumi.Any(testAwsSagemakerDataQualityJobDefinition.Name),
MonitoringType: pulumi.String("DataQuality"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Sagemaker.MonitoringSchedule("test", new()
{
Name = "my-monitoring-schedule",
MonitoringScheduleConfig = new Aws.Sagemaker.Inputs.MonitoringScheduleMonitoringScheduleConfigArgs
{
MonitoringJobDefinitionName = testAwsSagemakerDataQualityJobDefinition.Name,
MonitoringType = "DataQuality",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.MonitoringSchedule;
import com.pulumi.aws.sagemaker.MonitoringScheduleArgs;
import com.pulumi.aws.sagemaker.inputs.MonitoringScheduleMonitoringScheduleConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new MonitoringSchedule("test", MonitoringScheduleArgs.builder()
.name("my-monitoring-schedule")
.monitoringScheduleConfig(MonitoringScheduleMonitoringScheduleConfigArgs.builder()
.monitoringJobDefinitionName(testAwsSagemakerDataQualityJobDefinition.name())
.monitoringType("DataQuality")
.build())
.build());
}
}
resources:
test:
type: aws:sagemaker:MonitoringSchedule
properties:
name: my-monitoring-schedule
monitoringScheduleConfig:
monitoringJobDefinitionName: ${testAwsSagemakerDataQualityJobDefinition.name}
monitoringType: DataQuality
Create MonitoringSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoringSchedule(name: string, args: MonitoringScheduleArgs, opts?: CustomResourceOptions);
@overload
def MonitoringSchedule(resource_name: str,
args: MonitoringScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoringSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
monitoring_schedule_config: Optional[MonitoringScheduleMonitoringScheduleConfigArgs] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewMonitoringSchedule(ctx *Context, name string, args MonitoringScheduleArgs, opts ...ResourceOption) (*MonitoringSchedule, error)
public MonitoringSchedule(string name, MonitoringScheduleArgs args, CustomResourceOptions? opts = null)
public MonitoringSchedule(String name, MonitoringScheduleArgs args)
public MonitoringSchedule(String name, MonitoringScheduleArgs args, CustomResourceOptions options)
type: aws:sagemaker:MonitoringSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitoringScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitoringScheduleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitoringScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoringScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoringScheduleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitoringScheduleResource = new Aws.Sagemaker.MonitoringSchedule("monitoringScheduleResource", new()
{
MonitoringScheduleConfig = new Aws.Sagemaker.Inputs.MonitoringScheduleMonitoringScheduleConfigArgs
{
MonitoringJobDefinitionName = "string",
MonitoringType = "string",
ScheduleConfig = new Aws.Sagemaker.Inputs.MonitoringScheduleMonitoringScheduleConfigScheduleConfigArgs
{
ScheduleExpression = "string",
},
},
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := sagemaker.NewMonitoringSchedule(ctx, "monitoringScheduleResource", &sagemaker.MonitoringScheduleArgs{
MonitoringScheduleConfig: &sagemaker.MonitoringScheduleMonitoringScheduleConfigArgs{
MonitoringJobDefinitionName: pulumi.String("string"),
MonitoringType: pulumi.String("string"),
ScheduleConfig: &sagemaker.MonitoringScheduleMonitoringScheduleConfigScheduleConfigArgs{
ScheduleExpression: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var monitoringScheduleResource = new MonitoringSchedule("monitoringScheduleResource", MonitoringScheduleArgs.builder()
.monitoringScheduleConfig(MonitoringScheduleMonitoringScheduleConfigArgs.builder()
.monitoringJobDefinitionName("string")
.monitoringType("string")
.scheduleConfig(MonitoringScheduleMonitoringScheduleConfigScheduleConfigArgs.builder()
.scheduleExpression("string")
.build())
.build())
.name("string")
.tags(Map.of("string", "string"))
.build());
monitoring_schedule_resource = aws.sagemaker.MonitoringSchedule("monitoringScheduleResource",
monitoring_schedule_config={
"monitoringJobDefinitionName": "string",
"monitoringType": "string",
"scheduleConfig": {
"scheduleExpression": "string",
},
},
name="string",
tags={
"string": "string",
})
const monitoringScheduleResource = new aws.sagemaker.MonitoringSchedule("monitoringScheduleResource", {
monitoringScheduleConfig: {
monitoringJobDefinitionName: "string",
monitoringType: "string",
scheduleConfig: {
scheduleExpression: "string",
},
},
name: "string",
tags: {
string: "string",
},
});
type: aws:sagemaker:MonitoringSchedule
properties:
monitoringScheduleConfig:
monitoringJobDefinitionName: string
monitoringType: string
scheduleConfig:
scheduleExpression: string
name: string
tags:
string: string
MonitoringSchedule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MonitoringSchedule resource accepts the following input properties:
- Monitoring
Schedule Pulumi.Config Aws. Sagemaker. Inputs. Monitoring Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- Name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config Args - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- Name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- map[string]string
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name String
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Map<String,String>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- {[key: string]: string}
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- monitoring_
schedule_ Monitoringconfig Schedule Monitoring Schedule Config Args - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name str
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Mapping[str, str]
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- monitoring
Schedule Property MapConfig - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name String
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Map<String>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoringSchedule resource produces the following output properties:
Look up Existing MonitoringSchedule Resource
Get an existing MonitoringSchedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitoringScheduleState, opts?: CustomResourceOptions): MonitoringSchedule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
monitoring_schedule_config: Optional[MonitoringScheduleMonitoringScheduleConfigArgs] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> MonitoringSchedule
func GetMonitoringSchedule(ctx *Context, name string, id IDInput, state *MonitoringScheduleState, opts ...ResourceOption) (*MonitoringSchedule, error)
public static MonitoringSchedule Get(string name, Input<string> id, MonitoringScheduleState? state, CustomResourceOptions? opts = null)
public static MonitoringSchedule get(String name, Output<String> id, MonitoringScheduleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- Monitoring
Schedule Pulumi.Config Aws. Sagemaker. Inputs. Monitoring Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- Name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- Monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config Args - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- Name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- map[string]string
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name String
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Map<String,String>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- monitoring
Schedule MonitoringConfig Schedule Monitoring Schedule Config - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name string
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- {[key: string]: string}
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- monitoring_
schedule_ Monitoringconfig Schedule Monitoring Schedule Config Args - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name str
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Mapping[str, str]
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this monitoring schedule.
- monitoring
Schedule Property MapConfig - The configuration object that specifies the monitoring schedule and defines the monitoring job. Fields are documented below.
- name String
- The name of the monitoring schedule. The name must be unique within an AWS Region within an AWS account. If omitted, the provider will assign a random, unique name.
- Map<String>
- A mapping of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
MonitoringScheduleMonitoringScheduleConfig, MonitoringScheduleMonitoringScheduleConfigArgs
- Monitoring
Job stringDefinition Name - The name of the monitoring job definition to schedule.
- Monitoring
Type string - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- Schedule
Config Pulumi.Aws. Sagemaker. Inputs. Monitoring Schedule Monitoring Schedule Config Schedule Config - Configures the monitoring schedule. Fields are documented below.
- Monitoring
Job stringDefinition Name - The name of the monitoring job definition to schedule.
- Monitoring
Type string - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- Schedule
Config MonitoringSchedule Monitoring Schedule Config Schedule Config - Configures the monitoring schedule. Fields are documented below.
- monitoring
Job StringDefinition Name - The name of the monitoring job definition to schedule.
- monitoring
Type String - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- schedule
Config MonitoringSchedule Monitoring Schedule Config Schedule Config - Configures the monitoring schedule. Fields are documented below.
- monitoring
Job stringDefinition Name - The name of the monitoring job definition to schedule.
- monitoring
Type string - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- schedule
Config MonitoringSchedule Monitoring Schedule Config Schedule Config - Configures the monitoring schedule. Fields are documented below.
- monitoring_
job_ strdefinition_ name - The name of the monitoring job definition to schedule.
- monitoring_
type str - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- schedule_
config MonitoringSchedule Monitoring Schedule Config Schedule Config - Configures the monitoring schedule. Fields are documented below.
- monitoring
Job StringDefinition Name - The name of the monitoring job definition to schedule.
- monitoring
Type String - The type of the monitoring job definition to schedule. Valid values are
DataQuality
,ModelQuality
,ModelBias
orModelExplainability
- schedule
Config Property Map - Configures the monitoring schedule. Fields are documented below.
MonitoringScheduleMonitoringScheduleConfigScheduleConfig, MonitoringScheduleMonitoringScheduleConfigScheduleConfigArgs
- Schedule
Expression string - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
- Schedule
Expression string - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
- schedule
Expression String - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
- schedule
Expression string - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
- schedule_
expression str - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
- schedule
Expression String - A cron expression that describes details about the monitoring schedule. For example, and hourly schedule would be
cron(0 * ? * * *)
.
Import
Using pulumi import
, import monitoring schedules using the name
. For example:
$ pulumi import aws:sagemaker/monitoringSchedule:MonitoringSchedule test_monitoring_schedule monitoring-schedule-foo
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.