oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LogAnalytics.NamespaceIngestTimeRulesManagement

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNamespaceIngestTimeRulesManagement = new Oci.LogAnalytics.NamespaceIngestTimeRulesManagement("testNamespaceIngestTimeRulesManagement", new()
    {
        IngestTimeRuleId = oci_events_rule.Test_rule.Id,
        Namespace = @var.Namespace_ingest_time_rules_management_namespace,
        EnableIngestTimeRule = @var.Enable_ingest_time_rule,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LogAnalytics.NewNamespaceIngestTimeRulesManagement(ctx, "testNamespaceIngestTimeRulesManagement", &LogAnalytics.NamespaceIngestTimeRulesManagementArgs{
			IngestTimeRuleId:     pulumi.Any(oci_events_rule.Test_rule.Id),
			Namespace:            pulumi.Any(_var.Namespace_ingest_time_rules_management_namespace),
			EnableIngestTimeRule: pulumi.Any(_var.Enable_ingest_time_rule),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_events_rule.test_rule().id())
            .namespace(var_.namespace_ingest_time_rules_management_namespace())
            .enableIngestTimeRule(var_.enable_ingest_time_rule())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_namespace_ingest_time_rules_management = oci.log_analytics.NamespaceIngestTimeRulesManagement("testNamespaceIngestTimeRulesManagement",
    ingest_time_rule_id=oci_events_rule["test_rule"]["id"],
    namespace=var["namespace_ingest_time_rules_management_namespace"],
    enable_ingest_time_rule=var["enable_ingest_time_rule"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNamespaceIngestTimeRulesManagement = new oci.loganalytics.NamespaceIngestTimeRulesManagement("testNamespaceIngestTimeRulesManagement", {
    ingestTimeRuleId: oci_events_rule.test_rule.id,
    namespace: _var.namespace_ingest_time_rules_management_namespace,
    enableIngestTimeRule: _var.enable_ingest_time_rule,
});
resources:
  testNamespaceIngestTimeRulesManagement:
    type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
    properties:
      #Required
      ingestTimeRuleId: ${oci_events_rule.test_rule.id}
      namespace: ${var.namespace_ingest_time_rules_management_namespace}
      enableIngestTimeRule: ${var.enable_ingest_time_rule}

Create NamespaceIngestTimeRulesManagement Resource

new NamespaceIngestTimeRulesManagement(name: string, args: NamespaceIngestTimeRulesManagementArgs, opts?: CustomResourceOptions);
@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)
@overload
def NamespaceIngestTimeRulesManagement(resource_name: str,
                                       args: NamespaceIngestTimeRulesManagementArgs,
                                       opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args NamespaceIngestTimeRulesManagementArgs
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 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 string
The unique name of the resource.
args NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NamespaceIngestTimeRulesManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The NamespaceIngestTimeRulesManagement resource accepts the following input properties:

EnableIngestTimeRule bool

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

IngestTimeRuleId string

Unique ocid of the ingest time rule.

Namespace 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.

IngestTimeRuleId string

Unique ocid of the ingest time rule.

Namespace 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.

ingestTimeRuleId String

Unique ocid of the ingest time rule.

namespace 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.

ingestTimeRuleId string

Unique ocid of the ingest time rule.

namespace 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.

ingest_time_rule_id str

Unique ocid of the ingest time rule.

namespace 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.

ingestTimeRuleId String

Unique ocid of the ingest time rule.

namespace 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)
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:
EnableIngestTimeRule bool

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

IngestTimeRuleId string

Unique ocid of the ingest time rule.

Namespace 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.

IngestTimeRuleId string

Unique ocid of the ingest time rule.

Namespace 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.

ingestTimeRuleId String

Unique ocid of the ingest time rule.

namespace 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.

ingestTimeRuleId string

Unique ocid of the ingest time rule.

namespace 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.

ingest_time_rule_id str

Unique ocid of the ingest time rule.

namespace 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.

ingestTimeRuleId String

Unique ocid of the ingest time rule.

namespace 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.