import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Connection resource in Oracle Cloud Infrastructure Devops service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/devops/latest/Connection
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/devops
 *
 * Creates a new connection.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testConnection = new oci.devops.Connection("test_connection", {
 *     connectionType: connectionConnectionType,
 *     projectId: testProject.id,
 *     accessToken: connectionAccessToken,
 *     appPassword: connectionAppPassword,
 *     baseUrl: connectionBaseUrl,
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     description: connectionDescription,
 *     displayName: connectionDisplayName,
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     tlsVerifyConfig: {
 *         caCertificateBundleId: testCaCertificateBundle.id,
 *         tlsVerifyMode: connectionTlsVerifyConfigTlsVerifyMode,
 *     },
 *     username: connectionUsername,
 * });
 * ```
 *
 * ## Import
 *
 * Connections can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:DevOps/connection:Connection test_connection "id"
 * ```
 */
export declare class Connection extends pulumi.CustomResource {
    /**
     * Get an existing Connection 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?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection;
    /**
     * Returns true if the given object is an instance of Connection.  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 Connection;
    /**
     * (Updatable) The OCID of personal access token saved in secret store.
     */
    readonly accessToken: pulumi.Output<string>;
    /**
     * (Updatable) OCID of personal Bitbucket Cloud AppPassword saved in secret store
     */
    readonly appPassword: pulumi.Output<string>;
    /**
     * (Updatable) The Base URL of the hosted BitbucketServer.
     */
    readonly baseUrl: pulumi.Output<string>;
    /**
     * The OCID of the compartment containing the connection.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * (Updatable) The type of connection.
     */
    readonly connectionType: pulumi.Output<string>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}`
     */
    readonly definedTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * (Updatable) Optional description about the connection.
     */
    readonly description: pulumi.Output<string>;
    /**
     * (Updatable) Optional connection display name. Avoid entering confidential information.
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.  See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
     */
    readonly freeformTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * The result of validating the credentials of a connection.
     */
    readonly lastConnectionValidationResults: pulumi.Output<outputs.DevOps.ConnectionLastConnectionValidationResult[]>;
    /**
     * The OCID of the DevOps project.
     */
    readonly projectId: pulumi.Output<string>;
    /**
     * The current state of the connection.
     */
    readonly state: pulumi.Output<string>;
    /**
     * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    readonly systemTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * The time the connection was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * The time the connection was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * (Updatable) TLS configuration used by build service to verify TLS connection.
     */
    readonly tlsVerifyConfig: pulumi.Output<outputs.DevOps.ConnectionTlsVerifyConfig>;
    /**
     * (Updatable) Public Bitbucket Cloud Username in plain text(not more than 30 characters)
     *
     *
     * ** 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 username: pulumi.Output<string>;
    /**
     * Create a Connection 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: ConnectionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Connection resources.
 */
export interface ConnectionState {
    /**
     * (Updatable) The OCID of personal access token saved in secret store.
     */
    accessToken?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) OCID of personal Bitbucket Cloud AppPassword saved in secret store
     */
    appPassword?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The Base URL of the hosted BitbucketServer.
     */
    baseUrl?: pulumi.Input<string | undefined>;
    /**
     * The OCID of the compartment containing the connection.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The type of connection.
     */
    connectionType?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Optional description about the connection.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Optional connection display name. Avoid entering confidential information.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.  See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The result of validating the credentials of a connection.
     */
    lastConnectionValidationResults?: pulumi.Input<pulumi.Input<inputs.DevOps.ConnectionLastConnectionValidationResult>[] | undefined>;
    /**
     * The OCID of the DevOps project.
     */
    projectId?: pulumi.Input<string | undefined>;
    /**
     * The current state of the connection.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * Usage of system tag keys. These predefined keys are scoped to namespaces. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    systemTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The time the connection was created. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * The time the connection was updated. Format defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
     */
    timeUpdated?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) TLS configuration used by build service to verify TLS connection.
     */
    tlsVerifyConfig?: pulumi.Input<inputs.DevOps.ConnectionTlsVerifyConfig | undefined>;
    /**
     * (Updatable) Public Bitbucket Cloud Username in plain text(not more than 30 characters)
     *
     *
     * ** 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
     */
    username?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a Connection resource.
 */
export interface ConnectionArgs {
    /**
     * (Updatable) The OCID of personal access token saved in secret store.
     */
    accessToken?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) OCID of personal Bitbucket Cloud AppPassword saved in secret store
     */
    appPassword?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The Base URL of the hosted BitbucketServer.
     */
    baseUrl?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The type of connection.
     */
    connectionType: pulumi.Input<string>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"foo-namespace.bar-key": "value"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Optional description about the connection.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Optional connection display name. Avoid entering confidential information.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.  See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The OCID of the DevOps project.
     */
    projectId: pulumi.Input<string>;
    /**
     * (Updatable) TLS configuration used by build service to verify TLS connection.
     */
    tlsVerifyConfig?: pulumi.Input<inputs.DevOps.ConnectionTlsVerifyConfig | undefined>;
    /**
     * (Updatable) Public Bitbucket Cloud Username in plain text(not more than 30 characters)
     *
     *
     * ** 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
     */
    username?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=connection.d.ts.map