import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Namespace Lookup resource in Oracle Cloud Infrastructure Log Analytics service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/logan-api-spec/latest/NamespaceLookup * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/log_analytics * * Creates a lookup with the specified name, type and description. The csv file containing the lookup content is passed in as binary data in the request. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNamespaceLookup = new oci.loganalytics.NamespaceLookup("test_namespace_lookup", { * lookupName: namespaceLookupLookupName, * namespace: namespaceLookupNamespace, * registerLookupFile: namespaceLookupRegisterLookupFile, * type: namespaceLookupType, * categories: [{ * description: namespaceLookupCategoriesDescription, * displayName: namespaceLookupCategoriesDisplayName, * isSystem: namespaceLookupCategoriesIsSystem === "true", * name: namespaceLookupCategoriesName, * type: namespaceLookupCategoriesType, * }], * charEncoding: namespaceLookupCharEncoding, * compartmentId: namespaceLookupCompartmentId, * defaultMatchValue: namespaceLookupDefaultMatchValue, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: namespaceLookupDescription, * fields: [{ * commonFieldName: namespaceLookupFieldsCommonFieldName, * defaultMatchValue: namespaceLookupFieldsDefaultMatchValue, * displayName: namespaceLookupFieldsDisplayName, * isCommonField: namespaceLookupFieldsIsCommonField === "true", * matchOperator: namespaceLookupFieldsMatchOperator, * name: namespaceLookupFieldsName, * position: namespaceLookupFieldsPosition, * }], * freeformTags: { * "bar-key": "value", * }, * isHidden: namespaceLookupIsHidden === "true", * maxMatches: namespaceLookupMaxMatches, * }); * ``` * * ## Import * * NamespaceLookups can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:LogAnalytics/namespaceLookup:NamespaceLookup test_namespace_lookup "namespaces/{namespaceName}/lookups/{lookupName}" * ``` */ export declare class NamespaceLookup extends pulumi.CustomResource { /** * Get an existing NamespaceLookup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NamespaceLookupState, opts?: pulumi.CustomResourceOptions): NamespaceLookup; /** * Returns true if the given object is an instance of NamespaceLookup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NamespaceLookup; /** * The active edit version. */ readonly activeEditVersion: pulumi.Output; /** * The canonical link. */ readonly canonicalLink: pulumi.Output; /** * (Updatable) An array of categories to assign to the lookup. Specifying the name attribute for each category would suffice. Oracle-defined category assignments cannot be removed. */ readonly categories: pulumi.Output; /** * The character encoding of the uploaded file. */ readonly charEncoding: pulumi.Output; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly compartmentId: pulumi.Output; /** * (Updatable) The default match value. */ readonly defaultMatchValue: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The lookup description. */ readonly description: pulumi.Output; /** * The edit version. */ readonly editVersion: pulumi.Output; /** * (Updatable) The lookup fields. */ readonly fields: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * A flag indicating if the lookup is custom (user-defined) or built in. */ readonly isBuiltIn: pulumi.Output; /** * A flag indicating whether or not the new lookup should be hidden. */ readonly isHidden: pulumi.Output; /** * The lookup display name. */ readonly lookupDisplayName: pulumi.Output; /** * The lookup OCID. */ readonly lookupId: pulumi.Output; /** * The name of the lookup to operate on. */ readonly lookupName: pulumi.Output; /** * The lookup reference as an integer. */ readonly lookupReference: pulumi.Output; /** * The lookup reference as a string. */ readonly lookupReferenceString: pulumi.Output; /** * (Updatable) The maximum number of matches. */ readonly maxMatches: pulumi.Output; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ readonly namespace: pulumi.Output; /** * AutoLookups */ readonly referringSources: pulumi.Output; /** * Path to the file containing data for lookup creation. */ readonly registerLookupFile: pulumi.Output; /** * StatusSummary */ readonly statusSummaries: pulumi.Output; /** * The last updated date. */ readonly timeUpdated: pulumi.Output; /** * The lookup type. Valid values are Lookup, Dictionary or Module. * * ** 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 */ readonly type: pulumi.Output; /** * Create a NamespaceLookup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NamespaceLookupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamespaceLookup resources. */ export interface NamespaceLookupState { /** * The active edit version. */ activeEditVersion?: pulumi.Input; /** * The canonical link. */ canonicalLink?: pulumi.Input; /** * (Updatable) An array of categories to assign to the lookup. Specifying the name attribute for each category would suffice. Oracle-defined category assignments cannot be removed. */ categories?: pulumi.Input[] | undefined>; /** * The character encoding of the uploaded file. */ charEncoding?: pulumi.Input; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * (Updatable) The default match value. */ defaultMatchValue?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The lookup description. */ description?: pulumi.Input; /** * The edit version. */ editVersion?: pulumi.Input; /** * (Updatable) The lookup fields. */ fields?: pulumi.Input[] | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A flag indicating if the lookup is custom (user-defined) or built in. */ isBuiltIn?: pulumi.Input; /** * A flag indicating whether or not the new lookup should be hidden. */ isHidden?: pulumi.Input; /** * The lookup display name. */ lookupDisplayName?: pulumi.Input; /** * The lookup OCID. */ lookupId?: pulumi.Input; /** * The name of the lookup to operate on. */ lookupName?: pulumi.Input; /** * The lookup reference as an integer. */ lookupReference?: pulumi.Input; /** * The lookup reference as a string. */ lookupReferenceString?: pulumi.Input; /** * (Updatable) The maximum number of matches. */ maxMatches?: pulumi.Input; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace?: pulumi.Input; /** * AutoLookups */ referringSources?: pulumi.Input[] | undefined>; /** * Path to the file containing data for lookup creation. */ registerLookupFile?: pulumi.Input; /** * StatusSummary */ statusSummaries?: pulumi.Input[] | undefined>; /** * The last updated date. */ timeUpdated?: pulumi.Input; /** * The lookup type. Valid values are Lookup, Dictionary or Module. * * ** 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 */ type?: pulumi.Input; } /** * The set of arguments for constructing a NamespaceLookup resource. */ export interface NamespaceLookupArgs { /** * (Updatable) An array of categories to assign to the lookup. Specifying the name attribute for each category would suffice. Oracle-defined category assignments cannot be removed. */ categories?: pulumi.Input[] | undefined>; /** * The character encoding of the uploaded file. */ charEncoding?: pulumi.Input; /** * (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * (Updatable) The default match value. */ defaultMatchValue?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The lookup description. */ description?: pulumi.Input; /** * (Updatable) The lookup fields. */ fields?: pulumi.Input[] | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A flag indicating whether or not the new lookup should be hidden. */ isHidden?: pulumi.Input; /** * The name of the lookup to operate on. */ lookupName: pulumi.Input; /** * (Updatable) The maximum number of matches. */ maxMatches?: pulumi.Input; /** * The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get' */ namespace: pulumi.Input; /** * Path to the file containing data for lookup creation. */ registerLookupFile: pulumi.Input; /** * The lookup type. Valid values are Lookup, Dictionary or Module. * * ** 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 */ type: pulumi.Input; } //# sourceMappingURL=namespaceLookup.d.ts.map