1. Packages
  2. Sumo Logic
  3. API Docs
  4. MutingSchedule
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

sumologic.MutingSchedule

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

    Provides the ability to create, read, delete, and update MutingSchedule.

    Example One-time Muting Schedule From 12:00 AM To 1:00 AM On 2023-08-05 For All monitor

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const mutingSchedule = new sumologic.MutingSchedule("mutingSchedule", {
        contentType: "MutingSchedule",
        description: "This is an example for one time Muting schedule for all monitor",
        monitor: {
            all: true,
        },
        schedule: {
            duration: 60,
            startDate: "2023-08-05",
            startTime: "00:00",
            timezone: "America/Los_Angeles",
        },
        type: "MutingSchedulesLibraryMutingSchedule",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    muting_schedule = sumologic.MutingSchedule("mutingSchedule",
        content_type="MutingSchedule",
        description="This is an example for one time Muting schedule for all monitor",
        monitor=sumologic.MutingScheduleMonitorArgs(
            all=True,
        ),
        schedule=sumologic.MutingScheduleScheduleArgs(
            duration=60,
            start_date="2023-08-05",
            start_time="00:00",
            timezone="America/Los_Angeles",
        ),
        type="MutingSchedulesLibraryMutingSchedule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewMutingSchedule(ctx, "mutingSchedule", &sumologic.MutingScheduleArgs{
    			ContentType: pulumi.String("MutingSchedule"),
    			Description: pulumi.String("This is an example for one time Muting schedule for all monitor"),
    			Monitor: &sumologic.MutingScheduleMonitorArgs{
    				All: pulumi.Bool(true),
    			},
    			Schedule: &sumologic.MutingScheduleScheduleArgs{
    				Duration:  pulumi.Int(60),
    				StartDate: pulumi.String("2023-08-05"),
    				StartTime: pulumi.String("00:00"),
    				Timezone:  pulumi.String("America/Los_Angeles"),
    			},
    			Type: pulumi.String("MutingSchedulesLibraryMutingSchedule"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var mutingSchedule = new SumoLogic.MutingSchedule("mutingSchedule", new()
        {
            ContentType = "MutingSchedule",
            Description = "This is an example for one time Muting schedule for all monitor",
            Monitor = new SumoLogic.Inputs.MutingScheduleMonitorArgs
            {
                All = true,
            },
            Schedule = new SumoLogic.Inputs.MutingScheduleScheduleArgs
            {
                Duration = 60,
                StartDate = "2023-08-05",
                StartTime = "00:00",
                Timezone = "America/Los_Angeles",
            },
            Type = "MutingSchedulesLibraryMutingSchedule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.MutingSchedule;
    import com.pulumi.sumologic.MutingScheduleArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleMonitorArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleScheduleArgs;
    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 mutingSchedule = new MutingSchedule("mutingSchedule", MutingScheduleArgs.builder()        
                .contentType("MutingSchedule")
                .description("This is an example for one time Muting schedule for all monitor")
                .monitor(MutingScheduleMonitorArgs.builder()
                    .all(true)
                    .build())
                .schedule(MutingScheduleScheduleArgs.builder()
                    .duration(60)
                    .startDate("2023-08-05")
                    .startTime("00:00")
                    .timezone("America/Los_Angeles")
                    .build())
                .type("MutingSchedulesLibraryMutingSchedule")
                .build());
    
        }
    }
    
    resources:
      mutingSchedule:
        type: sumologic:MutingSchedule
        properties:
          contentType: MutingSchedule
          description: This is an example for one time Muting schedule for all monitor
          monitor:
            all: true
          schedule:
            duration: 60
            startDate: 2023-08-05
            startTime: 00:00
            timezone: America/Los_Angeles
          type: MutingSchedulesLibraryMutingSchedule
    

    Example One-time Muting Schedule From 12:00 AM To 1:00 AM On 2023-08-05 For Specifc Monitor/Folder ids

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const mutingSchedule = new sumologic.MutingSchedule("mutingSchedule", {
        contentType: "MutingSchedule",
        description: "This is an example for one time Muting schedule for all monitor",
        monitor: {
            ids: ["0000000000200B92"],
        },
        schedule: {
            duration: 60,
            startDate: "2023-08-05",
            startTime: "00:00",
            timezone: "America/Los_Angeles",
        },
        type: "MutingSchedulesLibraryMutingSchedule",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    muting_schedule = sumologic.MutingSchedule("mutingSchedule",
        content_type="MutingSchedule",
        description="This is an example for one time Muting schedule for all monitor",
        monitor=sumologic.MutingScheduleMonitorArgs(
            ids=["0000000000200B92"],
        ),
        schedule=sumologic.MutingScheduleScheduleArgs(
            duration=60,
            start_date="2023-08-05",
            start_time="00:00",
            timezone="America/Los_Angeles",
        ),
        type="MutingSchedulesLibraryMutingSchedule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewMutingSchedule(ctx, "mutingSchedule", &sumologic.MutingScheduleArgs{
    			ContentType: pulumi.String("MutingSchedule"),
    			Description: pulumi.String("This is an example for one time Muting schedule for all monitor"),
    			Monitor: &sumologic.MutingScheduleMonitorArgs{
    				Ids: pulumi.StringArray{
    					pulumi.String("0000000000200B92"),
    				},
    			},
    			Schedule: &sumologic.MutingScheduleScheduleArgs{
    				Duration:  pulumi.Int(60),
    				StartDate: pulumi.String("2023-08-05"),
    				StartTime: pulumi.String("00:00"),
    				Timezone:  pulumi.String("America/Los_Angeles"),
    			},
    			Type: pulumi.String("MutingSchedulesLibraryMutingSchedule"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var mutingSchedule = new SumoLogic.MutingSchedule("mutingSchedule", new()
        {
            ContentType = "MutingSchedule",
            Description = "This is an example for one time Muting schedule for all monitor",
            Monitor = new SumoLogic.Inputs.MutingScheduleMonitorArgs
            {
                Ids = new[]
                {
                    "0000000000200B92",
                },
            },
            Schedule = new SumoLogic.Inputs.MutingScheduleScheduleArgs
            {
                Duration = 60,
                StartDate = "2023-08-05",
                StartTime = "00:00",
                Timezone = "America/Los_Angeles",
            },
            Type = "MutingSchedulesLibraryMutingSchedule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.MutingSchedule;
    import com.pulumi.sumologic.MutingScheduleArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleMonitorArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleScheduleArgs;
    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 mutingSchedule = new MutingSchedule("mutingSchedule", MutingScheduleArgs.builder()        
                .contentType("MutingSchedule")
                .description("This is an example for one time Muting schedule for all monitor")
                .monitor(MutingScheduleMonitorArgs.builder()
                    .ids("0000000000200B92")
                    .build())
                .schedule(MutingScheduleScheduleArgs.builder()
                    .duration(60)
                    .startDate("2023-08-05")
                    .startTime("00:00")
                    .timezone("America/Los_Angeles")
                    .build())
                .type("MutingSchedulesLibraryMutingSchedule")
                .build());
    
        }
    }
    
    resources:
      mutingSchedule:
        type: sumologic:MutingSchedule
        properties:
          contentType: MutingSchedule
          description: This is an example for one time Muting schedule for all monitor
          monitor:
            ids:
              - 0000000000200B92
          schedule:
            duration: 60
            startDate: 2023-08-05
            startTime: 00:00
            timezone: America/Los_Angeles
          type: MutingSchedulesLibraryMutingSchedule
    

    Example Daily Muting Schedule From 9:00 AM to 9:30 and 10:00 AM to 10:30 AM Since 2023-08-05 For All monitor

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const mutingSchedule = new sumologic.MutingSchedule("mutingSchedule", {
        contentType: "MutingSchedule",
        description: "This is an example for one time Muting schedule for all monitor",
        monitor: {
            all: true,
        },
        schedule: {
            duration: 30,
            rrule: "FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
            startDate: "2023-08-05",
            startTime: "00:00",
            timezone: "America/Los_Angeles",
        },
        type: "MutingSchedulesLibraryMutingSchedule",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    muting_schedule = sumologic.MutingSchedule("mutingSchedule",
        content_type="MutingSchedule",
        description="This is an example for one time Muting schedule for all monitor",
        monitor=sumologic.MutingScheduleMonitorArgs(
            all=True,
        ),
        schedule=sumologic.MutingScheduleScheduleArgs(
            duration=30,
            rrule="FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
            start_date="2023-08-05",
            start_time="00:00",
            timezone="America/Los_Angeles",
        ),
        type="MutingSchedulesLibraryMutingSchedule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewMutingSchedule(ctx, "mutingSchedule", &sumologic.MutingScheduleArgs{
    			ContentType: pulumi.String("MutingSchedule"),
    			Description: pulumi.String("This is an example for one time Muting schedule for all monitor"),
    			Monitor: &sumologic.MutingScheduleMonitorArgs{
    				All: pulumi.Bool(true),
    			},
    			Schedule: &sumologic.MutingScheduleScheduleArgs{
    				Duration:  pulumi.Int(30),
    				Rrule:     pulumi.String("FREQ=DAILY;INTERVAL=1;BYHOUR=9,10"),
    				StartDate: pulumi.String("2023-08-05"),
    				StartTime: pulumi.String("00:00"),
    				Timezone:  pulumi.String("America/Los_Angeles"),
    			},
    			Type: pulumi.String("MutingSchedulesLibraryMutingSchedule"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var mutingSchedule = new SumoLogic.MutingSchedule("mutingSchedule", new()
        {
            ContentType = "MutingSchedule",
            Description = "This is an example for one time Muting schedule for all monitor",
            Monitor = new SumoLogic.Inputs.MutingScheduleMonitorArgs
            {
                All = true,
            },
            Schedule = new SumoLogic.Inputs.MutingScheduleScheduleArgs
            {
                Duration = 30,
                Rrule = "FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
                StartDate = "2023-08-05",
                StartTime = "00:00",
                Timezone = "America/Los_Angeles",
            },
            Type = "MutingSchedulesLibraryMutingSchedule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.MutingSchedule;
    import com.pulumi.sumologic.MutingScheduleArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleMonitorArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleScheduleArgs;
    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 mutingSchedule = new MutingSchedule("mutingSchedule", MutingScheduleArgs.builder()        
                .contentType("MutingSchedule")
                .description("This is an example for one time Muting schedule for all monitor")
                .monitor(MutingScheduleMonitorArgs.builder()
                    .all(true)
                    .build())
                .schedule(MutingScheduleScheduleArgs.builder()
                    .duration(30)
                    .rrule("FREQ=DAILY;INTERVAL=1;BYHOUR=9,10")
                    .startDate("2023-08-05")
                    .startTime("00:00")
                    .timezone("America/Los_Angeles")
                    .build())
                .type("MutingSchedulesLibraryMutingSchedule")
                .build());
    
        }
    }
    
    resources:
      mutingSchedule:
        type: sumologic:MutingSchedule
        properties:
          contentType: MutingSchedule
          description: This is an example for one time Muting schedule for all monitor
          monitor:
            all: true
          schedule:
            duration: 30
            rrule: FREQ=DAILY;INTERVAL=1;BYHOUR=9,10
            startDate: 2023-08-05
            startTime: 00:00
            timezone: America/Los_Angeles
          type: MutingSchedulesLibraryMutingSchedule
    

    Example Daily Muting Schedule From 9:00 AM to 9:30 and 10:00 AM to 10:30 AM Since 2023-08-05 For Specifc Monitor/Folder ids

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const mutingSchedule = new sumologic.MutingSchedule("mutingSchedule", {
        contentType: "MutingSchedule",
        description: "This is an example for one time Muting schedule for all monitor",
        monitor: {
            ids: ["0000000000200B92"],
        },
        schedule: {
            duration: 30,
            rrule: "FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
            startDate: "2023-08-05",
            startTime: "00:00",
            timezone: "America/Los_Angeles",
        },
        type: "MutingSchedulesLibraryMutingSchedule",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    muting_schedule = sumologic.MutingSchedule("mutingSchedule",
        content_type="MutingSchedule",
        description="This is an example for one time Muting schedule for all monitor",
        monitor=sumologic.MutingScheduleMonitorArgs(
            ids=["0000000000200B92"],
        ),
        schedule=sumologic.MutingScheduleScheduleArgs(
            duration=30,
            rrule="FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
            start_date="2023-08-05",
            start_time="00:00",
            timezone="America/Los_Angeles",
        ),
        type="MutingSchedulesLibraryMutingSchedule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewMutingSchedule(ctx, "mutingSchedule", &sumologic.MutingScheduleArgs{
    			ContentType: pulumi.String("MutingSchedule"),
    			Description: pulumi.String("This is an example for one time Muting schedule for all monitor"),
    			Monitor: &sumologic.MutingScheduleMonitorArgs{
    				Ids: pulumi.StringArray{
    					pulumi.String("0000000000200B92"),
    				},
    			},
    			Schedule: &sumologic.MutingScheduleScheduleArgs{
    				Duration:  pulumi.Int(30),
    				Rrule:     pulumi.String("FREQ=DAILY;INTERVAL=1;BYHOUR=9,10"),
    				StartDate: pulumi.String("2023-08-05"),
    				StartTime: pulumi.String("00:00"),
    				Timezone:  pulumi.String("America/Los_Angeles"),
    			},
    			Type: pulumi.String("MutingSchedulesLibraryMutingSchedule"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var mutingSchedule = new SumoLogic.MutingSchedule("mutingSchedule", new()
        {
            ContentType = "MutingSchedule",
            Description = "This is an example for one time Muting schedule for all monitor",
            Monitor = new SumoLogic.Inputs.MutingScheduleMonitorArgs
            {
                Ids = new[]
                {
                    "0000000000200B92",
                },
            },
            Schedule = new SumoLogic.Inputs.MutingScheduleScheduleArgs
            {
                Duration = 30,
                Rrule = "FREQ=DAILY;INTERVAL=1;BYHOUR=9,10",
                StartDate = "2023-08-05",
                StartTime = "00:00",
                Timezone = "America/Los_Angeles",
            },
            Type = "MutingSchedulesLibraryMutingSchedule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.MutingSchedule;
    import com.pulumi.sumologic.MutingScheduleArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleMonitorArgs;
    import com.pulumi.sumologic.inputs.MutingScheduleScheduleArgs;
    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 mutingSchedule = new MutingSchedule("mutingSchedule", MutingScheduleArgs.builder()        
                .contentType("MutingSchedule")
                .description("This is an example for one time Muting schedule for all monitor")
                .monitor(MutingScheduleMonitorArgs.builder()
                    .ids("0000000000200B92")
                    .build())
                .schedule(MutingScheduleScheduleArgs.builder()
                    .duration(30)
                    .rrule("FREQ=DAILY;INTERVAL=1;BYHOUR=9,10")
                    .startDate("2023-08-05")
                    .startTime("00:00")
                    .timezone("America/Los_Angeles")
                    .build())
                .type("MutingSchedulesLibraryMutingSchedule")
                .build());
    
        }
    }
    
    resources:
      mutingSchedule:
        type: sumologic:MutingSchedule
        properties:
          contentType: MutingSchedule
          description: This is an example for one time Muting schedule for all monitor
          monitor:
            ids:
              - 0000000000200B92
          schedule:
            duration: 30
            rrule: FREQ=DAILY;INTERVAL=1;BYHOUR=9,10
            startDate: 2023-08-05
            startTime: 00:00
            timezone: America/Los_Angeles
          type: MutingSchedulesLibraryMutingSchedule
    

    Create MutingSchedule Resource

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

    Constructor syntax

    new MutingSchedule(name: string, args: MutingScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def MutingSchedule(resource_name: str,
                       args: MutingScheduleArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MutingSchedule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       schedule: Optional[MutingScheduleScheduleArgs] = None,
                       modified_at: Optional[str] = None,
                       created_by: Optional[str] = None,
                       description: Optional[str] = None,
                       is_mutable: Optional[bool] = None,
                       is_system: Optional[bool] = None,
                       content_type: Optional[str] = None,
                       modified_by: Optional[str] = None,
                       monitor: Optional[MutingScheduleMonitorArgs] = None,
                       name: Optional[str] = None,
                       parent_id: Optional[str] = None,
                       created_at: Optional[str] = None,
                       type: Optional[str] = None,
                       version: Optional[int] = None)
    func NewMutingSchedule(ctx *Context, name string, args MutingScheduleArgs, opts ...ResourceOption) (*MutingSchedule, error)
    public MutingSchedule(string name, MutingScheduleArgs args, CustomResourceOptions? opts = null)
    public MutingSchedule(String name, MutingScheduleArgs args)
    public MutingSchedule(String name, MutingScheduleArgs args, CustomResourceOptions options)
    
    type: sumologic:MutingSchedule
    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 MutingScheduleArgs
    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 MutingScheduleArgs
    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 MutingScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MutingScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MutingScheduleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var mutingScheduleResource = new SumoLogic.MutingSchedule("mutingScheduleResource", new()
    {
        Schedule = new SumoLogic.Inputs.MutingScheduleScheduleArgs
        {
            Duration = 0,
            StartDate = "string",
            StartTime = "string",
            Timezone = "string",
            Rrule = "string",
        },
        ModifiedAt = "string",
        CreatedBy = "string",
        Description = "string",
        IsMutable = false,
        IsSystem = false,
        ContentType = "string",
        ModifiedBy = "string",
        Monitor = new SumoLogic.Inputs.MutingScheduleMonitorArgs
        {
            All = false,
            Ids = new[]
            {
                "string",
            },
        },
        Name = "string",
        ParentId = "string",
        CreatedAt = "string",
        Type = "string",
        Version = 0,
    });
    
    example, err := sumologic.NewMutingSchedule(ctx, "mutingScheduleResource", &sumologic.MutingScheduleArgs{
    	Schedule: &sumologic.MutingScheduleScheduleArgs{
    		Duration:  pulumi.Int(0),
    		StartDate: pulumi.String("string"),
    		StartTime: pulumi.String("string"),
    		Timezone:  pulumi.String("string"),
    		Rrule:     pulumi.String("string"),
    	},
    	ModifiedAt:  pulumi.String("string"),
    	CreatedBy:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	IsMutable:   pulumi.Bool(false),
    	IsSystem:    pulumi.Bool(false),
    	ContentType: pulumi.String("string"),
    	ModifiedBy:  pulumi.String("string"),
    	Monitor: &sumologic.MutingScheduleMonitorArgs{
    		All: pulumi.Bool(false),
    		Ids: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name:      pulumi.String("string"),
    	ParentId:  pulumi.String("string"),
    	CreatedAt: pulumi.String("string"),
    	Type:      pulumi.String("string"),
    	Version:   pulumi.Int(0),
    })
    
    var mutingScheduleResource = new MutingSchedule("mutingScheduleResource", MutingScheduleArgs.builder()        
        .schedule(MutingScheduleScheduleArgs.builder()
            .duration(0)
            .startDate("string")
            .startTime("string")
            .timezone("string")
            .rrule("string")
            .build())
        .modifiedAt("string")
        .createdBy("string")
        .description("string")
        .isMutable(false)
        .isSystem(false)
        .contentType("string")
        .modifiedBy("string")
        .monitor(MutingScheduleMonitorArgs.builder()
            .all(false)
            .ids("string")
            .build())
        .name("string")
        .parentId("string")
        .createdAt("string")
        .type("string")
        .version(0)
        .build());
    
    muting_schedule_resource = sumologic.MutingSchedule("mutingScheduleResource",
        schedule=sumologic.MutingScheduleScheduleArgs(
            duration=0,
            start_date="string",
            start_time="string",
            timezone="string",
            rrule="string",
        ),
        modified_at="string",
        created_by="string",
        description="string",
        is_mutable=False,
        is_system=False,
        content_type="string",
        modified_by="string",
        monitor=sumologic.MutingScheduleMonitorArgs(
            all=False,
            ids=["string"],
        ),
        name="string",
        parent_id="string",
        created_at="string",
        type="string",
        version=0)
    
    const mutingScheduleResource = new sumologic.MutingSchedule("mutingScheduleResource", {
        schedule: {
            duration: 0,
            startDate: "string",
            startTime: "string",
            timezone: "string",
            rrule: "string",
        },
        modifiedAt: "string",
        createdBy: "string",
        description: "string",
        isMutable: false,
        isSystem: false,
        contentType: "string",
        modifiedBy: "string",
        monitor: {
            all: false,
            ids: ["string"],
        },
        name: "string",
        parentId: "string",
        createdAt: "string",
        type: "string",
        version: 0,
    });
    
    type: sumologic:MutingSchedule
    properties:
        contentType: string
        createdAt: string
        createdBy: string
        description: string
        isMutable: false
        isSystem: false
        modifiedAt: string
        modifiedBy: string
        monitor:
            all: false
            ids:
                - string
        name: string
        parentId: string
        schedule:
            duration: 0
            rrule: string
            startDate: string
            startTime: string
            timezone: string
        type: string
        version: 0
    

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

    Schedule Pulumi.SumoLogic.Inputs.MutingScheduleSchedule
    The schedule information. see schedule_type.
    ContentType string
    The type of the content object. Valid value:
    CreatedAt string
    CreatedBy string
    Description string
    The description of the muting schedule.
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Monitor Pulumi.SumoLogic.Inputs.MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    Name string
    The name of the muting schedule. The name must be alphanumeric.
    ParentId string
    Type string
    The type of object model. Valid value:
    Version int
    Schedule MutingScheduleScheduleArgs
    The schedule information. see schedule_type.
    ContentType string
    The type of the content object. Valid value:
    CreatedAt string
    CreatedBy string
    Description string
    The description of the muting schedule.
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Monitor MutingScheduleMonitorArgs
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    Name string
    The name of the muting schedule. The name must be alphanumeric.
    ParentId string
    Type string
    The type of object model. Valid value:
    Version int
    schedule MutingScheduleSchedule
    The schedule information. see schedule_type.
    contentType String
    The type of the content object. Valid value:
    createdAt String
    createdBy String
    description String
    The description of the muting schedule.
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    monitor MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name String
    The name of the muting schedule. The name must be alphanumeric.
    parentId String
    type String
    The type of object model. Valid value:
    version Integer
    schedule MutingScheduleSchedule
    The schedule information. see schedule_type.
    contentType string
    The type of the content object. Valid value:
    createdAt string
    createdBy string
    description string
    The description of the muting schedule.
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    monitor MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name string
    The name of the muting schedule. The name must be alphanumeric.
    parentId string
    type string
    The type of object model. Valid value:
    version number
    schedule MutingScheduleScheduleArgs
    The schedule information. see schedule_type.
    content_type str
    The type of the content object. Valid value:
    created_at str
    created_by str
    description str
    The description of the muting schedule.
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    monitor MutingScheduleMonitorArgs
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name str
    The name of the muting schedule. The name must be alphanumeric.
    parent_id str
    type str
    The type of object model. Valid value:
    version int
    schedule Property Map
    The schedule information. see schedule_type.
    contentType String
    The type of the content object. Valid value:
    createdAt String
    createdBy String
    description String
    The description of the muting schedule.
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    monitor Property Map
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name String
    The name of the muting schedule. The name must be alphanumeric.
    parentId String
    type String
    The type of object model. Valid value:
    version Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MutingSchedule 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.

    Look up Existing MutingSchedule Resource

    Get an existing MutingSchedule 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?: MutingScheduleState, opts?: CustomResourceOptions): MutingSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content_type: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            is_mutable: Optional[bool] = None,
            is_system: Optional[bool] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            monitor: Optional[MutingScheduleMonitorArgs] = None,
            name: Optional[str] = None,
            parent_id: Optional[str] = None,
            schedule: Optional[MutingScheduleScheduleArgs] = None,
            type: Optional[str] = None,
            version: Optional[int] = None) -> MutingSchedule
    func GetMutingSchedule(ctx *Context, name string, id IDInput, state *MutingScheduleState, opts ...ResourceOption) (*MutingSchedule, error)
    public static MutingSchedule Get(string name, Input<string> id, MutingScheduleState? state, CustomResourceOptions? opts = null)
    public static MutingSchedule get(String name, Output<String> id, MutingScheduleState 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.
    The following state arguments are supported:
    ContentType string
    The type of the content object. Valid value:
    CreatedAt string
    CreatedBy string
    Description string
    The description of the muting schedule.
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Monitor Pulumi.SumoLogic.Inputs.MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    Name string
    The name of the muting schedule. The name must be alphanumeric.
    ParentId string
    Schedule Pulumi.SumoLogic.Inputs.MutingScheduleSchedule
    The schedule information. see schedule_type.
    Type string
    The type of object model. Valid value:
    Version int
    ContentType string
    The type of the content object. Valid value:
    CreatedAt string
    CreatedBy string
    Description string
    The description of the muting schedule.
    IsMutable bool
    IsSystem bool
    ModifiedAt string
    ModifiedBy string
    Monitor MutingScheduleMonitorArgs
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    Name string
    The name of the muting schedule. The name must be alphanumeric.
    ParentId string
    Schedule MutingScheduleScheduleArgs
    The schedule information. see schedule_type.
    Type string
    The type of object model. Valid value:
    Version int
    contentType String
    The type of the content object. Valid value:
    createdAt String
    createdBy String
    description String
    The description of the muting schedule.
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    monitor MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name String
    The name of the muting schedule. The name must be alphanumeric.
    parentId String
    schedule MutingScheduleSchedule
    The schedule information. see schedule_type.
    type String
    The type of object model. Valid value:
    version Integer
    contentType string
    The type of the content object. Valid value:
    createdAt string
    createdBy string
    description string
    The description of the muting schedule.
    isMutable boolean
    isSystem boolean
    modifiedAt string
    modifiedBy string
    monitor MutingScheduleMonitor
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name string
    The name of the muting schedule. The name must be alphanumeric.
    parentId string
    schedule MutingScheduleSchedule
    The schedule information. see schedule_type.
    type string
    The type of object model. Valid value:
    version number
    content_type str
    The type of the content object. Valid value:
    created_at str
    created_by str
    description str
    The description of the muting schedule.
    is_mutable bool
    is_system bool
    modified_at str
    modified_by str
    monitor MutingScheduleMonitorArgs
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name str
    The name of the muting schedule. The name must be alphanumeric.
    parent_id str
    schedule MutingScheduleScheduleArgs
    The schedule information. see schedule_type.
    type str
    The type of object model. Valid value:
    version int
    contentType String
    The type of the content object. Valid value:
    createdAt String
    createdBy String
    description String
    The description of the muting schedule.
    isMutable Boolean
    isSystem Boolean
    modifiedAt String
    modifiedBy String
    monitor Property Map
    The monitors which need to put in the muting schedule. see monitor_scope_type:
    name String
    The name of the muting schedule. The name must be alphanumeric.
    parentId String
    schedule Property Map
    The schedule information. see schedule_type.
    type String
    The type of object model. Valid value:
    version Number

    Supporting Types

    MutingScheduleMonitor, MutingScheduleMonitorArgs

    All bool
    True if the schedule applies to all monitors
    Ids List<string>
    List of monitor Ids in hex. Must be empty if all is true.
    All bool
    True if the schedule applies to all monitors
    Ids []string
    List of monitor Ids in hex. Must be empty if all is true.
    all Boolean
    True if the schedule applies to all monitors
    ids List<String>
    List of monitor Ids in hex. Must be empty if all is true.
    all boolean
    True if the schedule applies to all monitors
    ids string[]
    List of monitor Ids in hex. Must be empty if all is true.
    all bool
    True if the schedule applies to all monitors
    ids Sequence[str]
    List of monitor Ids in hex. Must be empty if all is true.
    all Boolean
    True if the schedule applies to all monitors
    ids List<String>
    List of monitor Ids in hex. Must be empty if all is true.

    MutingScheduleSchedule, MutingScheduleScheduleArgs

    Duration int
    Duration of the muting in minutes
    StartDate string
    Schedule start date in the format of yyyy-mm-dd
    StartTime string
    Schedule start time in the format of hh:mm
    Timezone string
    Time zone for the schedule per IANA Time Zone Database.
    Rrule string
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)
    Duration int
    Duration of the muting in minutes
    StartDate string
    Schedule start date in the format of yyyy-mm-dd
    StartTime string
    Schedule start time in the format of hh:mm
    Timezone string
    Time zone for the schedule per IANA Time Zone Database.
    Rrule string
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)
    duration Integer
    Duration of the muting in minutes
    startDate String
    Schedule start date in the format of yyyy-mm-dd
    startTime String
    Schedule start time in the format of hh:mm
    timezone String
    Time zone for the schedule per IANA Time Zone Database.
    rrule String
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)
    duration number
    Duration of the muting in minutes
    startDate string
    Schedule start date in the format of yyyy-mm-dd
    startTime string
    Schedule start time in the format of hh:mm
    timezone string
    Time zone for the schedule per IANA Time Zone Database.
    rrule string
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)
    duration int
    Duration of the muting in minutes
    start_date str
    Schedule start date in the format of yyyy-mm-dd
    start_time str
    Schedule start time in the format of hh:mm
    timezone str
    Time zone for the schedule per IANA Time Zone Database.
    rrule str
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)
    duration Number
    Duration of the muting in minutes
    startDate String
    Schedule start date in the format of yyyy-mm-dd
    startTime String
    Schedule start time in the format of hh:mm
    timezone String
    Time zone for the schedule per IANA Time Zone Database.
    rrule String
    RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format: A rule occurring on the third Sunday of April would be as follows: FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3 An event occurring on the first and second Monday of October would be specified by the rule: FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2 Event that repeats monthly: every 29th of every other month! FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29 (https://freetools.textmagic.com/rrule-generator)

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi