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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
testNamespaceIngestTimeRulesManagement:
type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
name: test_namespace_ingest_time_rules_management
properties:
ingestTimeRuleId: ${testRule.id}
namespace: ${namespaceIngestTimeRulesManagementNamespace}
enableIngestTimeRule: ${enableIngestTimeRule}
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 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.
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",
});
example, err := LogAnalytics.NewNamespaceIngestTimeRulesManagement(ctx, "namespaceIngestTimeRulesManagementResource", &LogAnalytics.NamespaceIngestTimeRulesManagementArgs{
EnableIngestTimeRule: pulumi.Bool(false),
IngestTimeRuleId: pulumi.String("string"),
Namespace: pulumi.String("string"),
})
var namespaceIngestTimeRulesManagementResource = new NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource", NamespaceIngestTimeRulesManagementArgs.builder()
.enableIngestTimeRule(false)
.ingestTimeRuleId("string")
.namespace("string")
.build());
namespace_ingest_time_rules_management_resource = oci.log_analytics.NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource",
enable_ingest_time_rule=False,
ingest_time_rule_id="string",
namespace="string")
const namespaceIngestTimeRulesManagementResource = new oci.loganalytics.NamespaceIngestTimeRulesManagement("namespaceIngestTimeRulesManagementResource", {
enableIngestTimeRule: false,
ingestTimeRuleId: "string",
namespace: "string",
});
type: oci:LogAnalytics:NamespaceIngestTimeRulesManagement
properties:
enableIngestTimeRule: false
ingestTimeRuleId: string
namespace: string
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:
- Enable
Ingest boolTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- Enable
Ingest boolTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- enable
Ingest BooleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 StringRule Id - Unique ocid of the ingest time rule.
- namespace String
- The Logging Analytics namespace used for the request.
- enable
Ingest booleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- namespace string
- The Logging Analytics namespace used for the request.
- enable_
ingest_ booltime_ rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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_ strrule_ id - Unique ocid of the ingest time rule.
- namespace str
- The Logging Analytics namespace used for the request.
- enable
Ingest BooleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 StringRule Id - 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.
- Enable
Ingest boolTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- Enable
Ingest boolTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- enable
Ingest BooleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 StringRule Id - Unique ocid of the ingest time rule.
- namespace String
- The Logging Analytics namespace used for the request.
- enable
Ingest booleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 stringRule Id - Unique ocid of the ingest time rule.
- namespace string
- The Logging Analytics namespace used for the request.
- enable_
ingest_ booltime_ rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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_ strrule_ id - Unique ocid of the ingest time rule.
- namespace str
- The Logging Analytics namespace used for the request.
- enable
Ingest BooleanTime Rule (Updatable) A required field when set to
true
calls enable action and when set tofalse
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 StringRule Id - 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.