1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. Schedule
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.MeteringComputation.Schedule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Schedule resource in Oracle Cloud Infrastructure Metering Computation service.

    Returns the created schedule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSchedule = new oci.meteringcomputation.Schedule("testSchedule", {
        compartmentId: _var.compartment_id,
        resultLocation: {
            bucket: _var.schedule_result_location_bucket,
            locationType: _var.schedule_result_location_location_type,
            namespace: _var.schedule_result_location_namespace,
            region: _var.schedule_result_location_region,
        },
        scheduleRecurrences: _var.schedule_schedule_recurrences,
        timeScheduled: _var.schedule_time_scheduled,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: _var.schedule_description,
        freeformTags: {
            "bar-key": "value",
        },
        outputFileFormat: _var.schedule_output_file_format,
        queryProperties: {
            dateRange: {
                dateRangeType: _var.schedule_query_properties_date_range_date_range_type,
                dynamicDateRangeType: _var.schedule_query_properties_date_range_dynamic_date_range_type,
                timeUsageEnded: _var.schedule_query_properties_date_range_time_usage_ended,
                timeUsageStarted: _var.schedule_query_properties_date_range_time_usage_started,
            },
            granularity: _var.schedule_query_properties_granularity,
            compartmentDepth: _var.schedule_query_properties_compartment_depth,
            filter: _var.schedule_query_properties_filter,
            groupBies: _var.schedule_query_properties_group_by,
            groupByTags: [{
                key: _var.schedule_query_properties_group_by_tag_key,
                namespace: _var.schedule_query_properties_group_by_tag_namespace,
                value: _var.schedule_query_properties_group_by_tag_value,
            }],
            isAggregateByTime: _var.schedule_query_properties_is_aggregate_by_time,
            queryType: _var.schedule_query_properties_query_type,
        },
        savedReportId: oci_data_safe_report.test_report.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_schedule = oci.metering_computation.Schedule("testSchedule",
        compartment_id=var["compartment_id"],
        result_location=oci.metering_computation.ScheduleResultLocationArgs(
            bucket=var["schedule_result_location_bucket"],
            location_type=var["schedule_result_location_location_type"],
            namespace=var["schedule_result_location_namespace"],
            region=var["schedule_result_location_region"],
        ),
        schedule_recurrences=var["schedule_schedule_recurrences"],
        time_scheduled=var["schedule_time_scheduled"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=var["schedule_description"],
        freeform_tags={
            "bar-key": "value",
        },
        output_file_format=var["schedule_output_file_format"],
        query_properties=oci.metering_computation.ScheduleQueryPropertiesArgs(
            date_range=oci.metering_computation.ScheduleQueryPropertiesDateRangeArgs(
                date_range_type=var["schedule_query_properties_date_range_date_range_type"],
                dynamic_date_range_type=var["schedule_query_properties_date_range_dynamic_date_range_type"],
                time_usage_ended=var["schedule_query_properties_date_range_time_usage_ended"],
                time_usage_started=var["schedule_query_properties_date_range_time_usage_started"],
            ),
            granularity=var["schedule_query_properties_granularity"],
            compartment_depth=var["schedule_query_properties_compartment_depth"],
            filter=var["schedule_query_properties_filter"],
            group_bies=var["schedule_query_properties_group_by"],
            group_by_tags=[oci.metering_computation.ScheduleQueryPropertiesGroupByTagArgs(
                key=var["schedule_query_properties_group_by_tag_key"],
                namespace=var["schedule_query_properties_group_by_tag_namespace"],
                value=var["schedule_query_properties_group_by_tag_value"],
            )],
            is_aggregate_by_time=var["schedule_query_properties_is_aggregate_by_time"],
            query_type=var["schedule_query_properties_query_type"],
        ),
        saved_report_id=oci_data_safe_report["test_report"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/MeteringComputation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := MeteringComputation.NewSchedule(ctx, "testSchedule", &MeteringComputation.ScheduleArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			ResultLocation: &meteringcomputation.ScheduleResultLocationArgs{
    				Bucket:       pulumi.Any(_var.Schedule_result_location_bucket),
    				LocationType: pulumi.Any(_var.Schedule_result_location_location_type),
    				Namespace:    pulumi.Any(_var.Schedule_result_location_namespace),
    				Region:       pulumi.Any(_var.Schedule_result_location_region),
    			},
    			ScheduleRecurrences: pulumi.Any(_var.Schedule_schedule_recurrences),
    			TimeScheduled:       pulumi.Any(_var.Schedule_time_scheduled),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(_var.Schedule_description),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			OutputFileFormat: pulumi.Any(_var.Schedule_output_file_format),
    			QueryProperties: &meteringcomputation.ScheduleQueryPropertiesArgs{
    				DateRange: &meteringcomputation.ScheduleQueryPropertiesDateRangeArgs{
    					DateRangeType:        pulumi.Any(_var.Schedule_query_properties_date_range_date_range_type),
    					DynamicDateRangeType: pulumi.Any(_var.Schedule_query_properties_date_range_dynamic_date_range_type),
    					TimeUsageEnded:       pulumi.Any(_var.Schedule_query_properties_date_range_time_usage_ended),
    					TimeUsageStarted:     pulumi.Any(_var.Schedule_query_properties_date_range_time_usage_started),
    				},
    				Granularity:      pulumi.Any(_var.Schedule_query_properties_granularity),
    				CompartmentDepth: pulumi.Any(_var.Schedule_query_properties_compartment_depth),
    				Filter:           pulumi.Any(_var.Schedule_query_properties_filter),
    				GroupBies:        pulumi.Any(_var.Schedule_query_properties_group_by),
    				GroupByTags: meteringcomputation.ScheduleQueryPropertiesGroupByTagArray{
    					&meteringcomputation.ScheduleQueryPropertiesGroupByTagArgs{
    						Key:       pulumi.Any(_var.Schedule_query_properties_group_by_tag_key),
    						Namespace: pulumi.Any(_var.Schedule_query_properties_group_by_tag_namespace),
    						Value:     pulumi.Any(_var.Schedule_query_properties_group_by_tag_value),
    					},
    				},
    				IsAggregateByTime: pulumi.Any(_var.Schedule_query_properties_is_aggregate_by_time),
    				QueryType:         pulumi.Any(_var.Schedule_query_properties_query_type),
    			},
    			SavedReportId: pulumi.Any(oci_data_safe_report.Test_report.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSchedule = new Oci.MeteringComputation.Schedule("testSchedule", new()
        {
            CompartmentId = @var.Compartment_id,
            ResultLocation = new Oci.MeteringComputation.Inputs.ScheduleResultLocationArgs
            {
                Bucket = @var.Schedule_result_location_bucket,
                LocationType = @var.Schedule_result_location_location_type,
                Namespace = @var.Schedule_result_location_namespace,
                Region = @var.Schedule_result_location_region,
            },
            ScheduleRecurrences = @var.Schedule_schedule_recurrences,
            TimeScheduled = @var.Schedule_time_scheduled,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = @var.Schedule_description,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            OutputFileFormat = @var.Schedule_output_file_format,
            QueryProperties = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesArgs
            {
                DateRange = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesDateRangeArgs
                {
                    DateRangeType = @var.Schedule_query_properties_date_range_date_range_type,
                    DynamicDateRangeType = @var.Schedule_query_properties_date_range_dynamic_date_range_type,
                    TimeUsageEnded = @var.Schedule_query_properties_date_range_time_usage_ended,
                    TimeUsageStarted = @var.Schedule_query_properties_date_range_time_usage_started,
                },
                Granularity = @var.Schedule_query_properties_granularity,
                CompartmentDepth = @var.Schedule_query_properties_compartment_depth,
                Filter = @var.Schedule_query_properties_filter,
                GroupBies = @var.Schedule_query_properties_group_by,
                GroupByTags = new[]
                {
                    new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesGroupByTagArgs
                    {
                        Key = @var.Schedule_query_properties_group_by_tag_key,
                        Namespace = @var.Schedule_query_properties_group_by_tag_namespace,
                        Value = @var.Schedule_query_properties_group_by_tag_value,
                    },
                },
                IsAggregateByTime = @var.Schedule_query_properties_is_aggregate_by_time,
                QueryType = @var.Schedule_query_properties_query_type,
            },
            SavedReportId = oci_data_safe_report.Test_report.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.MeteringComputation.Schedule;
    import com.pulumi.oci.MeteringComputation.ScheduleArgs;
    import com.pulumi.oci.MeteringComputation.inputs.ScheduleResultLocationArgs;
    import com.pulumi.oci.MeteringComputation.inputs.ScheduleQueryPropertiesArgs;
    import com.pulumi.oci.MeteringComputation.inputs.ScheduleQueryPropertiesDateRangeArgs;
    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 testSchedule = new Schedule("testSchedule", ScheduleArgs.builder()        
                .compartmentId(var_.compartment_id())
                .resultLocation(ScheduleResultLocationArgs.builder()
                    .bucket(var_.schedule_result_location_bucket())
                    .locationType(var_.schedule_result_location_location_type())
                    .namespace(var_.schedule_result_location_namespace())
                    .region(var_.schedule_result_location_region())
                    .build())
                .scheduleRecurrences(var_.schedule_schedule_recurrences())
                .timeScheduled(var_.schedule_time_scheduled())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(var_.schedule_description())
                .freeformTags(Map.of("bar-key", "value"))
                .outputFileFormat(var_.schedule_output_file_format())
                .queryProperties(ScheduleQueryPropertiesArgs.builder()
                    .dateRange(ScheduleQueryPropertiesDateRangeArgs.builder()
                        .dateRangeType(var_.schedule_query_properties_date_range_date_range_type())
                        .dynamicDateRangeType(var_.schedule_query_properties_date_range_dynamic_date_range_type())
                        .timeUsageEnded(var_.schedule_query_properties_date_range_time_usage_ended())
                        .timeUsageStarted(var_.schedule_query_properties_date_range_time_usage_started())
                        .build())
                    .granularity(var_.schedule_query_properties_granularity())
                    .compartmentDepth(var_.schedule_query_properties_compartment_depth())
                    .filter(var_.schedule_query_properties_filter())
                    .groupBies(var_.schedule_query_properties_group_by())
                    .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
                        .key(var_.schedule_query_properties_group_by_tag_key())
                        .namespace(var_.schedule_query_properties_group_by_tag_namespace())
                        .value(var_.schedule_query_properties_group_by_tag_value())
                        .build())
                    .isAggregateByTime(var_.schedule_query_properties_is_aggregate_by_time())
                    .queryType(var_.schedule_query_properties_query_type())
                    .build())
                .savedReportId(oci_data_safe_report.test_report().id())
                .build());
    
        }
    }
    
    resources:
      testSchedule:
        type: oci:MeteringComputation:Schedule
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          resultLocation:
            bucket: ${var.schedule_result_location_bucket}
            locationType: ${var.schedule_result_location_location_type}
            namespace: ${var.schedule_result_location_namespace}
            region: ${var.schedule_result_location_region}
          scheduleRecurrences: ${var.schedule_schedule_recurrences}
          timeScheduled: ${var.schedule_time_scheduled}
          #Optional
          definedTags:
            foo-namespace.bar-key: value
          description: ${var.schedule_description}
          freeformTags:
            bar-key: value
          outputFileFormat: ${var.schedule_output_file_format}
          queryProperties:
            dateRange:
              dateRangeType: ${var.schedule_query_properties_date_range_date_range_type}
              dynamicDateRangeType: ${var.schedule_query_properties_date_range_dynamic_date_range_type}
              timeUsageEnded: ${var.schedule_query_properties_date_range_time_usage_ended}
              timeUsageStarted: ${var.schedule_query_properties_date_range_time_usage_started}
            granularity: ${var.schedule_query_properties_granularity}
            compartmentDepth: ${var.schedule_query_properties_compartment_depth}
            filter: ${var.schedule_query_properties_filter}
            groupBies: ${var.schedule_query_properties_group_by}
            groupByTags:
              - key: ${var.schedule_query_properties_group_by_tag_key}
                namespace: ${var.schedule_query_properties_group_by_tag_namespace}
                value: ${var.schedule_query_properties_group_by_tag_value}
            isAggregateByTime: ${var.schedule_query_properties_is_aggregate_by_time}
            queryType: ${var.schedule_query_properties_query_type}
          savedReportId: ${oci_data_safe_report.test_report.id}
    

    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,
                 compartment_id: Optional[str] = None,
                 result_location: Optional[_meteringcomputation.ScheduleResultLocationArgs] = None,
                 schedule_recurrences: Optional[str] = None,
                 time_scheduled: Optional[str] = None,
                 defined_tags: Optional[Mapping[str, Any]] = None,
                 description: Optional[str] = None,
                 freeform_tags: Optional[Mapping[str, Any]] = None,
                 name: Optional[str] = None,
                 output_file_format: Optional[str] = None,
                 query_properties: Optional[_meteringcomputation.ScheduleQueryPropertiesArgs] = None,
                 saved_report_id: Optional[str] = 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: oci:MeteringComputation: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.

    Example

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

    var scheduleResource = new Oci.MeteringComputation.Schedule("scheduleResource", new()
    {
        CompartmentId = "string",
        ResultLocation = new Oci.MeteringComputation.Inputs.ScheduleResultLocationArgs
        {
            Bucket = "string",
            LocationType = "string",
            Namespace = "string",
            Region = "string",
        },
        ScheduleRecurrences = "string",
        TimeScheduled = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        Name = "string",
        OutputFileFormat = "string",
        QueryProperties = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesArgs
        {
            DateRange = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesDateRangeArgs
            {
                DateRangeType = "string",
                DynamicDateRangeType = "string",
                TimeUsageEnded = "string",
                TimeUsageStarted = "string",
            },
            Granularity = "string",
            CompartmentDepth = 0,
            Filter = "string",
            GroupBies = new[]
            {
                "string",
            },
            GroupByTags = new[]
            {
                new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesGroupByTagArgs
                {
                    Key = "string",
                    Namespace = "string",
                    Value = "string",
                },
            },
            IsAggregateByTime = false,
            QueryType = "string",
        },
        SavedReportId = "string",
    });
    
    example, err := MeteringComputation.NewSchedule(ctx, "scheduleResource", &MeteringComputation.ScheduleArgs{
    	CompartmentId: pulumi.String("string"),
    	ResultLocation: &meteringcomputation.ScheduleResultLocationArgs{
    		Bucket:       pulumi.String("string"),
    		LocationType: pulumi.String("string"),
    		Namespace:    pulumi.String("string"),
    		Region:       pulumi.String("string"),
    	},
    	ScheduleRecurrences: pulumi.String("string"),
    	TimeScheduled:       pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Name:             pulumi.String("string"),
    	OutputFileFormat: pulumi.String("string"),
    	QueryProperties: &meteringcomputation.ScheduleQueryPropertiesArgs{
    		DateRange: &meteringcomputation.ScheduleQueryPropertiesDateRangeArgs{
    			DateRangeType:        pulumi.String("string"),
    			DynamicDateRangeType: pulumi.String("string"),
    			TimeUsageEnded:       pulumi.String("string"),
    			TimeUsageStarted:     pulumi.String("string"),
    		},
    		Granularity:      pulumi.String("string"),
    		CompartmentDepth: pulumi.Float64(0),
    		Filter:           pulumi.String("string"),
    		GroupBies: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		GroupByTags: meteringcomputation.ScheduleQueryPropertiesGroupByTagArray{
    			&meteringcomputation.ScheduleQueryPropertiesGroupByTagArgs{
    				Key:       pulumi.String("string"),
    				Namespace: pulumi.String("string"),
    				Value:     pulumi.String("string"),
    			},
    		},
    		IsAggregateByTime: pulumi.Bool(false),
    		QueryType:         pulumi.String("string"),
    	},
    	SavedReportId: pulumi.String("string"),
    })
    
    var scheduleResource = new Schedule("scheduleResource", ScheduleArgs.builder()        
        .compartmentId("string")
        .resultLocation(ScheduleResultLocationArgs.builder()
            .bucket("string")
            .locationType("string")
            .namespace("string")
            .region("string")
            .build())
        .scheduleRecurrences("string")
        .timeScheduled("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .freeformTags(Map.of("string", "any"))
        .name("string")
        .outputFileFormat("string")
        .queryProperties(ScheduleQueryPropertiesArgs.builder()
            .dateRange(ScheduleQueryPropertiesDateRangeArgs.builder()
                .dateRangeType("string")
                .dynamicDateRangeType("string")
                .timeUsageEnded("string")
                .timeUsageStarted("string")
                .build())
            .granularity("string")
            .compartmentDepth(0)
            .filter("string")
            .groupBies("string")
            .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
                .key("string")
                .namespace("string")
                .value("string")
                .build())
            .isAggregateByTime(false)
            .queryType("string")
            .build())
        .savedReportId("string")
        .build());
    
    schedule_resource = oci.metering_computation.Schedule("scheduleResource",
        compartment_id="string",
        result_location=oci.metering_computation.ScheduleResultLocationArgs(
            bucket="string",
            location_type="string",
            namespace="string",
            region="string",
        ),
        schedule_recurrences="string",
        time_scheduled="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        freeform_tags={
            "string": "any",
        },
        name="string",
        output_file_format="string",
        query_properties=oci.metering_computation.ScheduleQueryPropertiesArgs(
            date_range=oci.metering_computation.ScheduleQueryPropertiesDateRangeArgs(
                date_range_type="string",
                dynamic_date_range_type="string",
                time_usage_ended="string",
                time_usage_started="string",
            ),
            granularity="string",
            compartment_depth=0,
            filter="string",
            group_bies=["string"],
            group_by_tags=[oci.metering_computation.ScheduleQueryPropertiesGroupByTagArgs(
                key="string",
                namespace="string",
                value="string",
            )],
            is_aggregate_by_time=False,
            query_type="string",
        ),
        saved_report_id="string")
    
    const scheduleResource = new oci.meteringcomputation.Schedule("scheduleResource", {
        compartmentId: "string",
        resultLocation: {
            bucket: "string",
            locationType: "string",
            namespace: "string",
            region: "string",
        },
        scheduleRecurrences: "string",
        timeScheduled: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        freeformTags: {
            string: "any",
        },
        name: "string",
        outputFileFormat: "string",
        queryProperties: {
            dateRange: {
                dateRangeType: "string",
                dynamicDateRangeType: "string",
                timeUsageEnded: "string",
                timeUsageStarted: "string",
            },
            granularity: "string",
            compartmentDepth: 0,
            filter: "string",
            groupBies: ["string"],
            groupByTags: [{
                key: "string",
                namespace: "string",
                value: "string",
            }],
            isAggregateByTime: false,
            queryType: "string",
        },
        savedReportId: "string",
    });
    
    type: oci:MeteringComputation:Schedule
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        freeformTags:
            string: any
        name: string
        outputFileFormat: string
        queryProperties:
            compartmentDepth: 0
            dateRange:
                dateRangeType: string
                dynamicDateRangeType: string
                timeUsageEnded: string
                timeUsageStarted: string
            filter: string
            granularity: string
            groupBies:
                - string
            groupByTags:
                - key: string
                  namespace: string
                  value: string
            isAggregateByTime: false
            queryType: string
        resultLocation:
            bucket: string
            locationType: string
            namespace: string
            region: string
        savedReportId: string
        scheduleRecurrences: string
        timeScheduled: string
    

    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:

    CompartmentId string
    The customer tenancy.
    ResultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    ScheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    TimeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) The description of the schedule.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Name string
    The unique name of the user-created schedule.
    OutputFileFormat string
    (Updatable) Specifies the supported output file format.
    QueryProperties ScheduleQueryProperties
    The query properties.
    SavedReportId string
    The saved report ID which can also be used to generate a query.
    CompartmentId string
    The customer tenancy.
    ResultLocation ScheduleResultLocationArgs
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    ScheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    TimeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) The description of the schedule.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Name string
    The unique name of the user-created schedule.
    OutputFileFormat string
    (Updatable) Specifies the supported output file format.
    QueryProperties ScheduleQueryPropertiesArgs
    The query properties.
    SavedReportId string
    The saved report ID which can also be used to generate a query.
    compartmentId String
    The customer tenancy.
    resultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    scheduleRecurrences String
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    timeScheduled String

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) The description of the schedule.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name String
    The unique name of the user-created schedule.
    outputFileFormat String
    (Updatable) Specifies the supported output file format.
    queryProperties ScheduleQueryProperties
    The query properties.
    savedReportId String
    The saved report ID which can also be used to generate a query.
    compartmentId string
    The customer tenancy.
    resultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    scheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    timeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) The description of the schedule.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name string
    The unique name of the user-created schedule.
    outputFileFormat string
    (Updatable) Specifies the supported output file format.
    queryProperties ScheduleQueryProperties
    The query properties.
    savedReportId string
    The saved report ID which can also be used to generate a query.
    compartment_id str
    The customer tenancy.
    result_location meteringcomputation.ScheduleResultLocationArgs
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    schedule_recurrences str
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    time_scheduled str

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) The description of the schedule.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name str
    The unique name of the user-created schedule.
    output_file_format str
    (Updatable) Specifies the supported output file format.
    query_properties meteringcomputation.ScheduleQueryPropertiesArgs
    The query properties.
    saved_report_id str
    The saved report ID which can also be used to generate a query.
    compartmentId String
    The customer tenancy.
    resultLocation Property Map
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    scheduleRecurrences String
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    timeScheduled String

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) The description of the schedule.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name String
    The unique name of the user-created schedule.
    outputFileFormat String
    (Updatable) Specifies the supported output file format.
    queryProperties Property Map
    The query properties.
    savedReportId String
    The saved report ID which can also be used to generate a query.

    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.
    State string
    The schedule lifecycle state.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the schedule was created.
    TimeNextRun string
    The date and time of the next job execution.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The schedule lifecycle state.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the schedule was created.
    TimeNextRun string
    The date and time of the next job execution.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The schedule lifecycle state.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the schedule was created.
    timeNextRun String
    The date and time of the next job execution.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The schedule lifecycle state.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the schedule was created.
    timeNextRun string
    The date and time of the next job execution.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The schedule lifecycle state.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the schedule was created.
    time_next_run str
    The date and time of the next job execution.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The schedule lifecycle state.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the schedule was created.
    timeNextRun String
    The date and time of the next job execution.

    Look up Existing Schedule Resource

    Get an existing Schedule 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?: ScheduleState, opts?: CustomResourceOptions): Schedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            name: Optional[str] = None,
            output_file_format: Optional[str] = None,
            query_properties: Optional[_meteringcomputation.ScheduleQueryPropertiesArgs] = None,
            result_location: Optional[_meteringcomputation.ScheduleResultLocationArgs] = None,
            saved_report_id: Optional[str] = None,
            schedule_recurrences: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_next_run: Optional[str] = None,
            time_scheduled: Optional[str] = None) -> Schedule
    func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
    public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
    public static Schedule get(String name, Output<String> id, ScheduleState 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:
    CompartmentId string
    The customer tenancy.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) The description of the schedule.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Name string
    The unique name of the user-created schedule.
    OutputFileFormat string
    (Updatable) Specifies the supported output file format.
    QueryProperties ScheduleQueryProperties
    The query properties.
    ResultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    SavedReportId string
    The saved report ID which can also be used to generate a query.
    ScheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    State string
    The schedule lifecycle state.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the schedule was created.
    TimeNextRun string
    The date and time of the next job execution.
    TimeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    The customer tenancy.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) The description of the schedule.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Name string
    The unique name of the user-created schedule.
    OutputFileFormat string
    (Updatable) Specifies the supported output file format.
    QueryProperties ScheduleQueryPropertiesArgs
    The query properties.
    ResultLocation ScheduleResultLocationArgs
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    SavedReportId string
    The saved report ID which can also be used to generate a query.
    ScheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    State string
    The schedule lifecycle state.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the schedule was created.
    TimeNextRun string
    The date and time of the next job execution.
    TimeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    The customer tenancy.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) The description of the schedule.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name String
    The unique name of the user-created schedule.
    outputFileFormat String
    (Updatable) Specifies the supported output file format.
    queryProperties ScheduleQueryProperties
    The query properties.
    resultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    savedReportId String
    The saved report ID which can also be used to generate a query.
    scheduleRecurrences String
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    state String
    The schedule lifecycle state.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the schedule was created.
    timeNextRun String
    The date and time of the next job execution.
    timeScheduled String

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    The customer tenancy.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) The description of the schedule.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name string
    The unique name of the user-created schedule.
    outputFileFormat string
    (Updatable) Specifies the supported output file format.
    queryProperties ScheduleQueryProperties
    The query properties.
    resultLocation ScheduleResultLocation
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    savedReportId string
    The saved report ID which can also be used to generate a query.
    scheduleRecurrences string
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    state string
    The schedule lifecycle state.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the schedule was created.
    timeNextRun string
    The date and time of the next job execution.
    timeScheduled string

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    The customer tenancy.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) The description of the schedule.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name str
    The unique name of the user-created schedule.
    output_file_format str
    (Updatable) Specifies the supported output file format.
    query_properties meteringcomputation.ScheduleQueryPropertiesArgs
    The query properties.
    result_location meteringcomputation.ScheduleResultLocationArgs
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    saved_report_id str
    The saved report ID which can also be used to generate a query.
    schedule_recurrences str
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    state str
    The schedule lifecycle state.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the schedule was created.
    time_next_run str
    The date and time of the next job execution.
    time_scheduled str

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    The customer tenancy.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) The description of the schedule.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    name String
    The unique name of the user-created schedule.
    outputFileFormat String
    (Updatable) Specifies the supported output file format.
    queryProperties Property Map
    The query properties.
    resultLocation Property Map
    (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
    savedReportId String
    The saved report ID which can also be used to generate a query.
    scheduleRecurrences String
    Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
    state String
    The schedule lifecycle state.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the schedule was created.
    timeNextRun String
    The date and time of the next job execution.
    timeScheduled String

    The date and time of the first time job execution.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    ScheduleQueryProperties, ScheduleQueryPropertiesArgs

    DateRange ScheduleQueryPropertiesDateRange
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    Granularity string
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    CompartmentDepth double
    The depth level of the compartment.
    Filter string
    The filter object for query usage.
    GroupBies List<string>
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    GroupByTags List<ScheduleQueryPropertiesGroupByTag>
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    IsAggregateByTime bool
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    QueryType string
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
    DateRange ScheduleQueryPropertiesDateRange
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    Granularity string
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    CompartmentDepth float64
    The depth level of the compartment.
    Filter string
    The filter object for query usage.
    GroupBies []string
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    GroupByTags []ScheduleQueryPropertiesGroupByTag
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    IsAggregateByTime bool
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    QueryType string
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
    dateRange ScheduleQueryPropertiesDateRange
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    granularity String
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    compartmentDepth Double
    The depth level of the compartment.
    filter String
    The filter object for query usage.
    groupBies List<String>
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    groupByTags List<ScheduleQueryPropertiesGroupByTag>
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    isAggregateByTime Boolean
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    queryType String
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
    dateRange ScheduleQueryPropertiesDateRange
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    granularity string
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    compartmentDepth number
    The depth level of the compartment.
    filter string
    The filter object for query usage.
    groupBies string[]
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    groupByTags ScheduleQueryPropertiesGroupByTag[]
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    isAggregateByTime boolean
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    queryType string
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
    date_range meteringcomputation.ScheduleQueryPropertiesDateRange
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    granularity str
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    compartment_depth float
    The depth level of the compartment.
    filter str
    The filter object for query usage.
    group_bies Sequence[str]
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    group_by_tags Sequence[meteringcomputation.ScheduleQueryPropertiesGroupByTag]
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    is_aggregate_by_time bool
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    query_type str
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
    dateRange Property Map
    Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
    granularity String
    The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
    compartmentDepth Number
    The depth level of the compartment.
    filter String
    The filter object for query usage.
    groupBies List<String>
    Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
    groupByTags List<Property Map>
    GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
    isAggregateByTime Boolean
    Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
    queryType String
    The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST

    ScheduleQueryPropertiesDateRange, ScheduleQueryPropertiesDateRangeArgs

    DateRangeType string
    Defines whether the schedule date range is STATIC or DYNAMIC.
    DynamicDateRangeType string
    TimeUsageEnded string
    The usage end time.
    TimeUsageStarted string
    The usage start time.
    DateRangeType string
    Defines whether the schedule date range is STATIC or DYNAMIC.
    DynamicDateRangeType string
    TimeUsageEnded string
    The usage end time.
    TimeUsageStarted string
    The usage start time.
    dateRangeType String
    Defines whether the schedule date range is STATIC or DYNAMIC.
    dynamicDateRangeType String
    timeUsageEnded String
    The usage end time.
    timeUsageStarted String
    The usage start time.
    dateRangeType string
    Defines whether the schedule date range is STATIC or DYNAMIC.
    dynamicDateRangeType string
    timeUsageEnded string
    The usage end time.
    timeUsageStarted string
    The usage start time.
    date_range_type str
    Defines whether the schedule date range is STATIC or DYNAMIC.
    dynamic_date_range_type str
    time_usage_ended str
    The usage end time.
    time_usage_started str
    The usage start time.
    dateRangeType String
    Defines whether the schedule date range is STATIC or DYNAMIC.
    dynamicDateRangeType String
    timeUsageEnded String
    The usage end time.
    timeUsageStarted String
    The usage start time.

    ScheduleQueryPropertiesGroupByTag, ScheduleQueryPropertiesGroupByTagArgs

    Key string
    The tag key.
    Namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    Value string
    The tag value.
    Key string
    The tag key.
    Namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    Value string
    The tag value.
    key String
    The tag key.
    namespace String
    (Updatable) The namespace needed to determine the object storage bucket.
    value String
    The tag value.
    key string
    The tag key.
    namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    value string
    The tag value.
    key str
    The tag key.
    namespace str
    (Updatable) The namespace needed to determine the object storage bucket.
    value str
    The tag value.
    key String
    The tag key.
    namespace String
    (Updatable) The namespace needed to determine the object storage bucket.
    value String
    The tag value.

    ScheduleResultLocation, ScheduleResultLocationArgs

    Bucket string
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    LocationType string
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    Namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    Region string
    (Updatable) The destination Object Store Region specified by the customer.
    Bucket string
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    LocationType string
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    Namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    Region string
    (Updatable) The destination Object Store Region specified by the customer.
    bucket String
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    locationType String
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    namespace String
    (Updatable) The namespace needed to determine the object storage bucket.
    region String
    (Updatable) The destination Object Store Region specified by the customer.
    bucket string
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    locationType string
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    namespace string
    (Updatable) The namespace needed to determine the object storage bucket.
    region string
    (Updatable) The destination Object Store Region specified by the customer.
    bucket str
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    location_type str
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    namespace str
    (Updatable) The namespace needed to determine the object storage bucket.
    region str
    (Updatable) The destination Object Store Region specified by the customer.
    bucket String
    (Updatable) The bucket name where usage or cost CSVs will be uploaded.
    locationType String
    (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
    namespace String
    (Updatable) The namespace needed to determine the object storage bucket.
    region String
    (Updatable) The destination Object Store Region specified by the customer.

    Import

    Schedules can be imported using the id, e.g.

    $ pulumi import oci:MeteringComputation/schedule:Schedule test_schedule "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi