1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. Schedule
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

oci.MeteringComputation.Schedule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 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("test_schedule", {
        compartmentId: compartmentId,
        name: scheduleName,
        resultLocation: {
            bucket: scheduleResultLocationBucket,
            locationType: scheduleResultLocationLocationType,
            namespace: scheduleResultLocationNamespace,
            region: scheduleResultLocationRegion,
        },
        scheduleRecurrences: scheduleScheduleRecurrences,
        timeScheduled: scheduleTimeScheduled,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: scheduleDescription,
        freeformTags: {
            "bar-key": "value",
        },
        outputFileFormat: scheduleOutputFileFormat,
        queryProperties: {
            dateRange: {
                dateRangeType: scheduleQueryPropertiesDateRangeDateRangeType,
                dynamicDateRangeType: scheduleQueryPropertiesDateRangeDynamicDateRangeType,
                timeUsageEnded: scheduleQueryPropertiesDateRangeTimeUsageEnded,
                timeUsageStarted: scheduleQueryPropertiesDateRangeTimeUsageStarted,
            },
            granularity: scheduleQueryPropertiesGranularity,
            compartmentDepth: scheduleQueryPropertiesCompartmentDepth,
            filter: scheduleQueryPropertiesFilter,
            groupBies: scheduleQueryPropertiesGroupBy,
            groupByTags: [{
                key: scheduleQueryPropertiesGroupByTagKey,
                namespace: scheduleQueryPropertiesGroupByTagNamespace,
                value: scheduleQueryPropertiesGroupByTagValue,
            }],
            isAggregateByTime: scheduleQueryPropertiesIsAggregateByTime,
            queryType: scheduleQueryPropertiesQueryType,
        },
        savedReportId: testReport.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_schedule = oci.metering_computation.Schedule("test_schedule",
        compartment_id=compartment_id,
        name=schedule_name,
        result_location=oci.metering_computation.ScheduleResultLocationArgs(
            bucket=schedule_result_location_bucket,
            location_type=schedule_result_location_location_type,
            namespace=schedule_result_location_namespace,
            region=schedule_result_location_region,
        ),
        schedule_recurrences=schedule_schedule_recurrences,
        time_scheduled=schedule_time_scheduled,
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=schedule_description,
        freeform_tags={
            "bar-key": "value",
        },
        output_file_format=schedule_output_file_format,
        query_properties=oci.metering_computation.ScheduleQueryPropertiesArgs(
            date_range=oci.metering_computation.ScheduleQueryPropertiesDateRangeArgs(
                date_range_type=schedule_query_properties_date_range_date_range_type,
                dynamic_date_range_type=schedule_query_properties_date_range_dynamic_date_range_type,
                time_usage_ended=schedule_query_properties_date_range_time_usage_ended,
                time_usage_started=schedule_query_properties_date_range_time_usage_started,
            ),
            granularity=schedule_query_properties_granularity,
            compartment_depth=schedule_query_properties_compartment_depth,
            filter=schedule_query_properties_filter,
            group_bies=schedule_query_properties_group_by,
            group_by_tags=[oci.metering_computation.ScheduleQueryPropertiesGroupByTagArgs(
                key=schedule_query_properties_group_by_tag_key,
                namespace=schedule_query_properties_group_by_tag_namespace,
                value=schedule_query_properties_group_by_tag_value,
            )],
            is_aggregate_by_time=schedule_query_properties_is_aggregate_by_time,
            query_type=schedule_query_properties_query_type,
        ),
        saved_report_id=test_report["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/MeteringComputation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := MeteringComputation.NewSchedule(ctx, "test_schedule", &MeteringComputation.ScheduleArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Name:          pulumi.Any(scheduleName),
    			ResultLocation: &meteringcomputation.ScheduleResultLocationArgs{
    				Bucket:       pulumi.Any(scheduleResultLocationBucket),
    				LocationType: pulumi.Any(scheduleResultLocationLocationType),
    				Namespace:    pulumi.Any(scheduleResultLocationNamespace),
    				Region:       pulumi.Any(scheduleResultLocationRegion),
    			},
    			ScheduleRecurrences: pulumi.Any(scheduleScheduleRecurrences),
    			TimeScheduled:       pulumi.Any(scheduleTimeScheduled),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(scheduleDescription),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			OutputFileFormat: pulumi.Any(scheduleOutputFileFormat),
    			QueryProperties: &meteringcomputation.ScheduleQueryPropertiesArgs{
    				DateRange: &meteringcomputation.ScheduleQueryPropertiesDateRangeArgs{
    					DateRangeType:        pulumi.Any(scheduleQueryPropertiesDateRangeDateRangeType),
    					DynamicDateRangeType: pulumi.Any(scheduleQueryPropertiesDateRangeDynamicDateRangeType),
    					TimeUsageEnded:       pulumi.Any(scheduleQueryPropertiesDateRangeTimeUsageEnded),
    					TimeUsageStarted:     pulumi.Any(scheduleQueryPropertiesDateRangeTimeUsageStarted),
    				},
    				Granularity:      pulumi.Any(scheduleQueryPropertiesGranularity),
    				CompartmentDepth: pulumi.Any(scheduleQueryPropertiesCompartmentDepth),
    				Filter:           pulumi.Any(scheduleQueryPropertiesFilter),
    				GroupBies:        pulumi.Any(scheduleQueryPropertiesGroupBy),
    				GroupByTags: meteringcomputation.ScheduleQueryPropertiesGroupByTagArray{
    					&meteringcomputation.ScheduleQueryPropertiesGroupByTagArgs{
    						Key:       pulumi.Any(scheduleQueryPropertiesGroupByTagKey),
    						Namespace: pulumi.Any(scheduleQueryPropertiesGroupByTagNamespace),
    						Value:     pulumi.Any(scheduleQueryPropertiesGroupByTagValue),
    					},
    				},
    				IsAggregateByTime: pulumi.Any(scheduleQueryPropertiesIsAggregateByTime),
    				QueryType:         pulumi.Any(scheduleQueryPropertiesQueryType),
    			},
    			SavedReportId: pulumi.Any(testReport.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("test_schedule", new()
        {
            CompartmentId = compartmentId,
            Name = scheduleName,
            ResultLocation = new Oci.MeteringComputation.Inputs.ScheduleResultLocationArgs
            {
                Bucket = scheduleResultLocationBucket,
                LocationType = scheduleResultLocationLocationType,
                Namespace = scheduleResultLocationNamespace,
                Region = scheduleResultLocationRegion,
            },
            ScheduleRecurrences = scheduleScheduleRecurrences,
            TimeScheduled = scheduleTimeScheduled,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = scheduleDescription,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            OutputFileFormat = scheduleOutputFileFormat,
            QueryProperties = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesArgs
            {
                DateRange = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesDateRangeArgs
                {
                    DateRangeType = scheduleQueryPropertiesDateRangeDateRangeType,
                    DynamicDateRangeType = scheduleQueryPropertiesDateRangeDynamicDateRangeType,
                    TimeUsageEnded = scheduleQueryPropertiesDateRangeTimeUsageEnded,
                    TimeUsageStarted = scheduleQueryPropertiesDateRangeTimeUsageStarted,
                },
                Granularity = scheduleQueryPropertiesGranularity,
                CompartmentDepth = scheduleQueryPropertiesCompartmentDepth,
                Filter = scheduleQueryPropertiesFilter,
                GroupBies = scheduleQueryPropertiesGroupBy,
                GroupByTags = new[]
                {
                    new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesGroupByTagArgs
                    {
                        Key = scheduleQueryPropertiesGroupByTagKey,
                        Namespace = scheduleQueryPropertiesGroupByTagNamespace,
                        Value = scheduleQueryPropertiesGroupByTagValue,
                    },
                },
                IsAggregateByTime = scheduleQueryPropertiesIsAggregateByTime,
                QueryType = scheduleQueryPropertiesQueryType,
            },
            SavedReportId = testReport.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(compartmentId)
                .name(scheduleName)
                .resultLocation(ScheduleResultLocationArgs.builder()
                    .bucket(scheduleResultLocationBucket)
                    .locationType(scheduleResultLocationLocationType)
                    .namespace(scheduleResultLocationNamespace)
                    .region(scheduleResultLocationRegion)
                    .build())
                .scheduleRecurrences(scheduleScheduleRecurrences)
                .timeScheduled(scheduleTimeScheduled)
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(scheduleDescription)
                .freeformTags(Map.of("bar-key", "value"))
                .outputFileFormat(scheduleOutputFileFormat)
                .queryProperties(ScheduleQueryPropertiesArgs.builder()
                    .dateRange(ScheduleQueryPropertiesDateRangeArgs.builder()
                        .dateRangeType(scheduleQueryPropertiesDateRangeDateRangeType)
                        .dynamicDateRangeType(scheduleQueryPropertiesDateRangeDynamicDateRangeType)
                        .timeUsageEnded(scheduleQueryPropertiesDateRangeTimeUsageEnded)
                        .timeUsageStarted(scheduleQueryPropertiesDateRangeTimeUsageStarted)
                        .build())
                    .granularity(scheduleQueryPropertiesGranularity)
                    .compartmentDepth(scheduleQueryPropertiesCompartmentDepth)
                    .filter(scheduleQueryPropertiesFilter)
                    .groupBies(scheduleQueryPropertiesGroupBy)
                    .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
                        .key(scheduleQueryPropertiesGroupByTagKey)
                        .namespace(scheduleQueryPropertiesGroupByTagNamespace)
                        .value(scheduleQueryPropertiesGroupByTagValue)
                        .build())
                    .isAggregateByTime(scheduleQueryPropertiesIsAggregateByTime)
                    .queryType(scheduleQueryPropertiesQueryType)
                    .build())
                .savedReportId(testReport.id())
                .build());
    
        }
    }
    
    resources:
      testSchedule:
        type: oci:MeteringComputation:Schedule
        name: test_schedule
        properties:
          compartmentId: ${compartmentId}
          name: ${scheduleName}
          resultLocation:
            bucket: ${scheduleResultLocationBucket}
            locationType: ${scheduleResultLocationLocationType}
            namespace: ${scheduleResultLocationNamespace}
            region: ${scheduleResultLocationRegion}
          scheduleRecurrences: ${scheduleScheduleRecurrences}
          timeScheduled: ${scheduleTimeScheduled}
          definedTags:
            foo-namespace.bar-key: value
          description: ${scheduleDescription}
          freeformTags:
            bar-key: value
          outputFileFormat: ${scheduleOutputFileFormat}
          queryProperties:
            dateRange:
              dateRangeType: ${scheduleQueryPropertiesDateRangeDateRangeType}
              dynamicDateRangeType: ${scheduleQueryPropertiesDateRangeDynamicDateRangeType}
              timeUsageEnded: ${scheduleQueryPropertiesDateRangeTimeUsageEnded}
              timeUsageStarted: ${scheduleQueryPropertiesDateRangeTimeUsageStarted}
            granularity: ${scheduleQueryPropertiesGranularity}
            compartmentDepth: ${scheduleQueryPropertiesCompartmentDepth}
            filter: ${scheduleQueryPropertiesFilter}
            groupBies: ${scheduleQueryPropertiesGroupBy}
            groupByTags:
              - key: ${scheduleQueryPropertiesGroupByTagKey}
                namespace: ${scheduleQueryPropertiesGroupByTagNamespace}
                value: ${scheduleQueryPropertiesGroupByTagValue}
            isAggregateByTime: ${scheduleQueryPropertiesIsAggregateByTime}
            queryType: ${scheduleQueryPropertiesQueryType}
          savedReportId: ${testReport.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.

    Constructor 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
    The tag namespace.
    Value string
    The tag value.
    Key string
    The tag key.
    Namespace string
    The tag namespace.
    Value string
    The tag value.
    key String
    The tag key.
    namespace String
    The tag namespace.
    value String
    The tag value.
    key string
    The tag key.
    namespace string
    The tag namespace.
    value string
    The tag value.
    key str
    The tag key.
    namespace str
    The tag namespace.
    value str
    The tag value.
    key String
    The tag key.
    namespace String
    The tag namespace.
    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 v2.2.0 published on Friday, Jul 12, 2024 by Pulumi