1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. NamespaceIngestTimeRulesManagement
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.LogAnalytics.NamespaceIngestTimeRulesManagement

Explore with Pulumi AI

This resource provides the Namespace Ingest Time Rules Management resource in Oracle Cloud Infrastructure Log Analytics service.

Enables the specified ingest time rule.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNamespaceIngestTimeRulesManagement = new oci.loganalytics.NamespaceIngestTimeRulesManagement("test_namespace_ingest_time_rules_management", {
    ingestTimeRuleId: testRule.id,
    namespace: namespaceIngestTimeRulesManagementNamespace,
    enableIngestTimeRule: enableIngestTimeRule,
});
Copy
import pulumi
import pulumi_oci as oci

test_namespace_ingest_time_rules_management = oci.log_analytics.NamespaceIngestTimeRulesManagement("test_namespace_ingest_time_rules_management",
    ingest_time_rule_id=test_rule["id"],
    namespace=namespace_ingest_time_rules_management_namespace,
    enable_ingest_time_rule=enable_ingest_time_rule)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/loganalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loganalytics.NewNamespaceIngestTimeRulesManagement(ctx, "test_namespace_ingest_time_rules_management", &loganalytics.NamespaceIngestTimeRulesManagementArgs{
			IngestTimeRuleId:     pulumi.Any(testRule.Id),
			Namespace:            pulumi.Any(namespaceIngestTimeRulesManagementNamespace),
			EnableIngestTimeRule: pulumi.Any(enableIngestTimeRule),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNamespaceIngestTimeRulesManagement = new Oci.LogAnalytics.NamespaceIngestTimeRulesManagement("test_namespace_ingest_time_rules_management", new()
    {
        IngestTimeRuleId = testRule.Id,
        Namespace = namespaceIngestTimeRulesManagementNamespace,
        EnableIngestTimeRule = enableIngestTimeRule,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRulesManagement;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRulesManagementArgs;
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 testNamespaceIngestTimeRulesManagement = new NamespaceIngestTimeRulesManagement("testNamespaceIngestTimeRulesManagement", NamespaceIngestTimeRulesManagementArgs.builder()
            .ingestTimeRuleId(testRule.id())
            .namespace(namespaceIngestTimeRulesManagementNamespace)
            .enableIngestTimeRule(enableIngestTimeRule)
            .build());

    }
}
Copy
resources:
  testNamespaceIngestTimeRulesManagement:
    type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
    name: test_namespace_ingest_time_rules_management
    properties:
      ingestTimeRuleId: ${testRule.id}
      namespace: ${namespaceIngestTimeRulesManagementNamespace}
      enableIngestTimeRule: ${enableIngestTimeRule}
Copy

Create NamespaceIngestTimeRulesManagement Resource

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

Constructor syntax

new NamespaceIngestTimeRulesManagement(name: string, args: NamespaceIngestTimeRulesManagementArgs, opts?: CustomResourceOptions);
@overload
def NamespaceIngestTimeRulesManagement(resource_name: str,
                                       args: NamespaceIngestTimeRulesManagementArgs,
                                       opts: Optional[ResourceOptions] = None)

@overload
def NamespaceIngestTimeRulesManagement(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       enable_ingest_time_rule: Optional[bool] = None,
                                       ingest_time_rule_id: Optional[str] = None,
                                       namespace: Optional[str] = None)
func NewNamespaceIngestTimeRulesManagement(ctx *Context, name string, args NamespaceIngestTimeRulesManagementArgs, opts ...ResourceOption) (*NamespaceIngestTimeRulesManagement, error)
public NamespaceIngestTimeRulesManagement(string name, NamespaceIngestTimeRulesManagementArgs args, CustomResourceOptions? opts = null)
public NamespaceIngestTimeRulesManagement(String name, NamespaceIngestTimeRulesManagementArgs args)
public NamespaceIngestTimeRulesManagement(String name, NamespaceIngestTimeRulesManagementArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NamespaceIngestTimeRulesManagementArgs
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 namespaceIngestTimeRulesManagementResource = new Oci.LogAnalytics.NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource", new()
{
    EnableIngestTimeRule = false,
    IngestTimeRuleId = "string",
    Namespace = "string",
});
Copy
example, err := LogAnalytics.NewNamespaceIngestTimeRulesManagement(ctx, "namespaceIngestTimeRulesManagementResource", &LogAnalytics.NamespaceIngestTimeRulesManagementArgs{
	EnableIngestTimeRule: pulumi.Bool(false),
	IngestTimeRuleId:     pulumi.String("string"),
	Namespace:            pulumi.String("string"),
})
Copy
var namespaceIngestTimeRulesManagementResource = new NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource", NamespaceIngestTimeRulesManagementArgs.builder()
    .enableIngestTimeRule(false)
    .ingestTimeRuleId("string")
    .namespace("string")
    .build());
Copy
namespace_ingest_time_rules_management_resource = oci.log_analytics.NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource",
    enable_ingest_time_rule=False,
    ingest_time_rule_id="string",
    namespace="string")
Copy
const namespaceIngestTimeRulesManagementResource = new oci.loganalytics.NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource", {
    enableIngestTimeRule: false,
    ingestTimeRuleId: "string",
    namespace: "string",
});
Copy
type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
properties:
    enableIngestTimeRule: false
    ingestTimeRuleId: string
    namespace: string
Copy

NamespaceIngestTimeRulesManagement Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The NamespaceIngestTimeRulesManagement resource accepts the following input properties:

EnableIngestTimeRule This property is required. bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

IngestTimeRuleId
This property is required.
Changes to this property will trigger replacement.
string
Unique ocid of the ingest time rule.
Namespace
This property is required.
Changes to this property will trigger replacement.
string
The Logging Analytics namespace used for the request.
EnableIngestTimeRule This property is required. bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

IngestTimeRuleId
This property is required.
Changes to this property will trigger replacement.
string
Unique ocid of the ingest time rule.
Namespace
This property is required.
Changes to this property will trigger replacement.
string
The Logging Analytics namespace used for the request.
enableIngestTimeRule This property is required. Boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId
This property is required.
Changes to this property will trigger replacement.
String
Unique ocid of the ingest time rule.
namespace
This property is required.
Changes to this property will trigger replacement.
String
The Logging Analytics namespace used for the request.
enableIngestTimeRule This property is required. boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId
This property is required.
Changes to this property will trigger replacement.
string
Unique ocid of the ingest time rule.
namespace
This property is required.
Changes to this property will trigger replacement.
string
The Logging Analytics namespace used for the request.
enable_ingest_time_rule This property is required. bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingest_time_rule_id
This property is required.
Changes to this property will trigger replacement.
str
Unique ocid of the ingest time rule.
namespace
This property is required.
Changes to this property will trigger replacement.
str
The Logging Analytics namespace used for the request.
enableIngestTimeRule This property is required. Boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId
This property is required.
Changes to this property will trigger replacement.
String
Unique ocid of the ingest time rule.
namespace
This property is required.
Changes to this property will trigger replacement.
String
The Logging Analytics namespace used for the request.

Outputs

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

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

Look up Existing NamespaceIngestTimeRulesManagement Resource

Get an existing NamespaceIngestTimeRulesManagement 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?: NamespaceIngestTimeRulesManagementState, opts?: CustomResourceOptions): NamespaceIngestTimeRulesManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_ingest_time_rule: Optional[bool] = None,
        ingest_time_rule_id: Optional[str] = None,
        namespace: Optional[str] = None) -> NamespaceIngestTimeRulesManagement
func GetNamespaceIngestTimeRulesManagement(ctx *Context, name string, id IDInput, state *NamespaceIngestTimeRulesManagementState, opts ...ResourceOption) (*NamespaceIngestTimeRulesManagement, error)
public static NamespaceIngestTimeRulesManagement Get(string name, Input<string> id, NamespaceIngestTimeRulesManagementState? state, CustomResourceOptions? opts = null)
public static NamespaceIngestTimeRulesManagement get(String name, Output<String> id, NamespaceIngestTimeRulesManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
EnableIngestTimeRule bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

IngestTimeRuleId Changes to this property will trigger replacement. string
Unique ocid of the ingest time rule.
Namespace Changes to this property will trigger replacement. string
The Logging Analytics namespace used for the request.
EnableIngestTimeRule bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

IngestTimeRuleId Changes to this property will trigger replacement. string
Unique ocid of the ingest time rule.
Namespace Changes to this property will trigger replacement. string
The Logging Analytics namespace used for the request.
enableIngestTimeRule Boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId Changes to this property will trigger replacement. String
Unique ocid of the ingest time rule.
namespace Changes to this property will trigger replacement. String
The Logging Analytics namespace used for the request.
enableIngestTimeRule boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId Changes to this property will trigger replacement. string
Unique ocid of the ingest time rule.
namespace Changes to this property will trigger replacement. string
The Logging Analytics namespace used for the request.
enable_ingest_time_rule bool

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingest_time_rule_id Changes to this property will trigger replacement. str
Unique ocid of the ingest time rule.
namespace Changes to this property will trigger replacement. str
The Logging Analytics namespace used for the request.
enableIngestTimeRule Boolean

(Updatable) A required field when set to true calls enable action and when set to false calls disable action.

** 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

ingestTimeRuleId Changes to this property will trigger replacement. String
Unique ocid of the ingest time rule.
namespace Changes to this property will trigger replacement. String
The Logging Analytics namespace used for the request.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.