1. Packages
  2. AWS Native
  3. API Docs
  4. databrew
  5. Schedule

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.databrew.Schedule

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource schema for AWS::DataBrew::Schedule.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var testDataBrewSchedule = new AwsNative.DataBrew.Schedule("testDataBrewSchedule", new()
        {
            JobNames = new[]
            {
                "job-name",
            },
            Name = "schedule-name",
            CronExpression = "cron(0 0/1 ? * * *)",
            Tags = new[]
            {
                new AwsNative.Inputs.CreateOnlyTagArgs
                {
                    Key = "key00AtCreate",
                    Value = "value001AtCreate",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/databrew"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databrew.NewSchedule(ctx, "testDataBrewSchedule", &databrew.ScheduleArgs{
    			JobNames: pulumi.StringArray{
    				pulumi.String("job-name"),
    			},
    			Name:           pulumi.String("schedule-name"),
    			CronExpression: pulumi.String("cron(0 0/1 ? * * *)"),
    			Tags: aws.CreateOnlyTagArray{
    				&aws.CreateOnlyTagArgs{
    					Key:   pulumi.String("key00AtCreate"),
    					Value: pulumi.String("value001AtCreate"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    test_data_brew_schedule = aws_native.databrew.Schedule("testDataBrewSchedule",
        job_names=["job-name"],
        name="schedule-name",
        cron_expression="cron(0 0/1 ? * * *)",
        tags=[aws_native.CreateOnlyTagArgs(
            key="key00AtCreate",
            value="value001AtCreate",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const testDataBrewSchedule = new aws_native.databrew.Schedule("testDataBrewSchedule", {
        jobNames: ["job-name"],
        name: "schedule-name",
        cronExpression: "cron(0 0/1 ? * * *)",
        tags: [{
            key: "key00AtCreate",
            value: "value001AtCreate",
        }],
    });
    

    Coming soon!

    Create Schedule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def Schedule(resource_name: str,
                 args: ScheduleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Schedule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 cron_expression: Optional[str] = None,
                 job_names: Optional[Sequence[str]] = None,
                 name: Optional[str] = None,
                 tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None)
    func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
    public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
    public Schedule(String name, ScheduleArgs args)
    public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
    
    type: aws-native:databrew:Schedule
    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 ScheduleArgs
    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 ScheduleArgs
    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 ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Schedule 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 Schedule resource accepts the following input properties:

    CronExpression string
    Schedule cron
    JobNames List<string>
    A list of jobs to be run, according to the schedule.
    Name string
    Schedule Name
    Tags List<Pulumi.AwsNative.Inputs.CreateOnlyTag>
    Metadata tags that have been applied to the schedule.
    CronExpression string
    Schedule cron
    JobNames []string
    A list of jobs to be run, according to the schedule.
    Name string
    Schedule Name
    Tags CreateOnlyTagArgs
    Metadata tags that have been applied to the schedule.
    cronExpression String
    Schedule cron
    jobNames List<String>
    A list of jobs to be run, according to the schedule.
    name String
    Schedule Name
    tags List<CreateOnlyTag>
    Metadata tags that have been applied to the schedule.
    cronExpression string
    Schedule cron
    jobNames string[]
    A list of jobs to be run, according to the schedule.
    name string
    Schedule Name
    tags CreateOnlyTag[]
    Metadata tags that have been applied to the schedule.
    cron_expression str
    Schedule cron
    job_names Sequence[str]
    A list of jobs to be run, according to the schedule.
    name str
    Schedule Name
    tags Sequence[CreateOnlyTagArgs]
    Metadata tags that have been applied to the schedule.
    cronExpression String
    Schedule cron
    jobNames List<String>
    A list of jobs to be run, according to the schedule.
    name String
    Schedule Name
    tags List<Property Map>
    Metadata tags that have been applied to the schedule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Schedule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    CreateOnlyTag, CreateOnlyTagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi