import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Namespace Association 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/Association/Upsert * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/log_analytics * * Creates or updates associations between sources and entities. The entity should belong to the specified input compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNamespaceAssociation = new oci.loganalytics.NamespaceAssociation("test_namespace_association", { * compartmentId: compartmentId, * entityId: testLogAnalyticsEntity.id, * logGroupId: testLogAnalyticsLogGroup.id, * namespace: namespaceAssociationNamespace, * sourceName: namespaceAssociationSourceName, * isFromRepublish: namespaceAssociationIsFromRepublish === "true", * associationProperties: [{ * name: namespaceAssociationAssociationPropertiesName, * patterns: [{ * id: namespaceAssociationAssociationPropertiesPatternsId, * value: namespaceAssociationAssociationPropertiesPatternsValue, * }], * value: namespaceAssociationAssociationPropertiesValue, * }], * }); * ``` * * ## Import * * NamespaceAssociations can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:LogAnalytics/namespaceAssociation:NamespaceAssociation test_namespace_association "namespaces/{namespaceName}/associations/{compartmentId}/{entityId}/{sourceName}" * ``` */ export declare class NamespaceAssociation extends pulumi.CustomResource { /** * Get an existing NamespaceAssociation 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?: NamespaceAssociationState, opts?: pulumi.CustomResourceOptions): NamespaceAssociation; /** * Returns true if the given object is an instance of NamespaceAssociation. 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 NamespaceAssociation; /** * The agent unique identifier. */ readonly agentEntityName: pulumi.Output; /** * The agent unique identifier. */ readonly agentId: pulumi.Output; /** * A list of association properties. */ readonly associationProperties: pulumi.Output; /** * The compartment ID */ readonly compartmentId: pulumi.Output; /** * The entity unique identifier. */ readonly entityId: pulumi.Output; /** * The entity name. */ readonly entityName: pulumi.Output; /** * The entity type display name. */ readonly entityTypeDisplayName: pulumi.Output; /** * The entity type internal name. */ readonly entityTypeName: pulumi.Output; /** * The failure message. */ readonly failureMessage: pulumi.Output; /** * The host name. */ readonly host: pulumi.Output; /** * isFromRepublish */ readonly isFromRepublish: pulumi.Output; readonly lifecycleState: pulumi.Output; /** * The log group compartment. */ readonly logGroupCompartment: pulumi.Output; /** * (Updatable) The log group unique identifier. */ readonly logGroupId: pulumi.Output; /** * The log group name. */ readonly logGroupName: pulumi.Output; /** * The Logging Analytics namespace used for the request. * * ** 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 namespace: pulumi.Output; /** * The number of times the association will be attempted before failing. */ readonly retryCount: pulumi.Output; /** * The source display name. */ readonly sourceDisplayName: pulumi.Output; /** * The source name. */ readonly sourceName: pulumi.Output; /** * The source type internal name. */ readonly sourceTypeName: pulumi.Output; /** * The last attempt date. */ readonly timeLastAttempted: pulumi.Output; /** * Create a NamespaceAssociation 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: NamespaceAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamespaceAssociation resources. */ export interface NamespaceAssociationState { /** * The agent unique identifier. */ agentEntityName?: pulumi.Input; /** * The agent unique identifier. */ agentId?: pulumi.Input; /** * A list of association properties. */ associationProperties?: pulumi.Input[] | undefined>; /** * The compartment ID */ compartmentId?: pulumi.Input; /** * The entity unique identifier. */ entityId?: pulumi.Input; /** * The entity name. */ entityName?: pulumi.Input; /** * The entity type display name. */ entityTypeDisplayName?: pulumi.Input; /** * The entity type internal name. */ entityTypeName?: pulumi.Input; /** * The failure message. */ failureMessage?: pulumi.Input; /** * The host name. */ host?: pulumi.Input; /** * isFromRepublish */ isFromRepublish?: pulumi.Input; lifecycleState?: pulumi.Input; /** * The log group compartment. */ logGroupCompartment?: pulumi.Input; /** * (Updatable) The log group unique identifier. */ logGroupId?: pulumi.Input; /** * The log group name. */ logGroupName?: pulumi.Input; /** * The Logging Analytics namespace used for the request. * * ** 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 */ namespace?: pulumi.Input; /** * The number of times the association will be attempted before failing. */ retryCount?: pulumi.Input; /** * The source display name. */ sourceDisplayName?: pulumi.Input; /** * The source name. */ sourceName?: pulumi.Input; /** * The source type internal name. */ sourceTypeName?: pulumi.Input; /** * The last attempt date. */ timeLastAttempted?: pulumi.Input; } /** * The set of arguments for constructing a NamespaceAssociation resource. */ export interface NamespaceAssociationArgs { /** * A list of association properties. */ associationProperties?: pulumi.Input[] | undefined>; /** * The compartment ID */ compartmentId: pulumi.Input; /** * The entity unique identifier. */ entityId: pulumi.Input; /** * isFromRepublish */ isFromRepublish?: pulumi.Input; /** * (Updatable) The log group unique identifier. */ logGroupId: pulumi.Input; /** * The Logging Analytics namespace used for the request. * * ** 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 */ namespace: pulumi.Input; /** * The source name. */ sourceName: pulumi.Input; } //# sourceMappingURL=namespaceAssociation.d.ts.map