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<pulumi.ID>, 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<string>;
    /**
     * The agent unique identifier.
     */
    readonly agentId: pulumi.Output<string>;
    /**
     * A list of association properties.
     */
    readonly associationProperties: pulumi.Output<outputs.LogAnalytics.NamespaceAssociationAssociationProperty[] | undefined>;
    /**
     * The compartment ID
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * The entity unique identifier.
     */
    readonly entityId: pulumi.Output<string>;
    /**
     * The entity name.
     */
    readonly entityName: pulumi.Output<string>;
    /**
     * The entity type display name.
     */
    readonly entityTypeDisplayName: pulumi.Output<string>;
    /**
     * The entity type internal name.
     */
    readonly entityTypeName: pulumi.Output<string>;
    /**
     * The failure message.
     */
    readonly failureMessage: pulumi.Output<string>;
    /**
     * The host name.
     */
    readonly host: pulumi.Output<string>;
    /**
     * isFromRepublish
     */
    readonly isFromRepublish: pulumi.Output<boolean | undefined>;
    readonly lifecycleState: pulumi.Output<string>;
    /**
     * The log group compartment.
     */
    readonly logGroupCompartment: pulumi.Output<string>;
    /**
     * (Updatable) The log group unique identifier.
     */
    readonly logGroupId: pulumi.Output<string>;
    /**
     * The log group name.
     */
    readonly logGroupName: pulumi.Output<string>;
    /**
     * 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<string>;
    /**
     * The number of times the association will be attempted before failing.
     */
    readonly retryCount: pulumi.Output<number>;
    /**
     * The source display name.
     */
    readonly sourceDisplayName: pulumi.Output<string>;
    /**
     * The source name.
     */
    readonly sourceName: pulumi.Output<string>;
    /**
     * The source type internal name.
     */
    readonly sourceTypeName: pulumi.Output<string>;
    /**
     * The last attempt date.
     */
    readonly timeLastAttempted: pulumi.Output<string>;
    /**
     * 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<string | undefined>;
    /**
     * The agent unique identifier.
     */
    agentId?: pulumi.Input<string | undefined>;
    /**
     * A list of association properties.
     */
    associationProperties?: pulumi.Input<pulumi.Input<inputs.LogAnalytics.NamespaceAssociationAssociationProperty>[] | undefined>;
    /**
     * The compartment ID
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * The entity unique identifier.
     */
    entityId?: pulumi.Input<string | undefined>;
    /**
     * The entity name.
     */
    entityName?: pulumi.Input<string | undefined>;
    /**
     * The entity type display name.
     */
    entityTypeDisplayName?: pulumi.Input<string | undefined>;
    /**
     * The entity type internal name.
     */
    entityTypeName?: pulumi.Input<string | undefined>;
    /**
     * The failure message.
     */
    failureMessage?: pulumi.Input<string | undefined>;
    /**
     * The host name.
     */
    host?: pulumi.Input<string | undefined>;
    /**
     * isFromRepublish
     */
    isFromRepublish?: pulumi.Input<boolean | undefined>;
    lifecycleState?: pulumi.Input<string | undefined>;
    /**
     * The log group compartment.
     */
    logGroupCompartment?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The log group unique identifier.
     */
    logGroupId?: pulumi.Input<string | undefined>;
    /**
     * The log group name.
     */
    logGroupName?: pulumi.Input<string | undefined>;
    /**
     * 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<string | undefined>;
    /**
     * The number of times the association will be attempted before failing.
     */
    retryCount?: pulumi.Input<number | undefined>;
    /**
     * The source display name.
     */
    sourceDisplayName?: pulumi.Input<string | undefined>;
    /**
     * The source name.
     */
    sourceName?: pulumi.Input<string | undefined>;
    /**
     * The source type internal name.
     */
    sourceTypeName?: pulumi.Input<string | undefined>;
    /**
     * The last attempt date.
     */
    timeLastAttempted?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a NamespaceAssociation resource.
 */
export interface NamespaceAssociationArgs {
    /**
     * A list of association properties.
     */
    associationProperties?: pulumi.Input<pulumi.Input<inputs.LogAnalytics.NamespaceAssociationAssociationProperty>[] | undefined>;
    /**
     * The compartment ID
     */
    compartmentId: pulumi.Input<string>;
    /**
     * The entity unique identifier.
     */
    entityId: pulumi.Input<string>;
    /**
     * isFromRepublish
     */
    isFromRepublish?: pulumi.Input<boolean | undefined>;
    /**
     * (Updatable) The log group unique identifier.
     */
    logGroupId: pulumi.Input<string>;
    /**
     * 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<string>;
    /**
     * The source name.
     */
    sourceName: pulumi.Input<string>;
}
//# sourceMappingURL=namespaceAssociation.d.ts.map