import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Container Instance resource in Oracle Cloud Infrastructure Container Instances service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/container-instances/latest/ContainerInstance
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/container_instances
 *
 * Creates a container instance and deploys the containers on it.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testContainerInstance = new oci.containerengine.ContainerInstance("test_container_instance", {
 *     availabilityDomain: containerInstanceAvailabilityDomain,
 *     compartmentId: compartmentId,
 *     containers: [{
 *         imageUrl: containerInstanceContainersImageUrl,
 *         arguments: containerInstanceContainersArguments,
 *         commands: containerInstanceContainersCommand,
 *         definedTags: containerInstanceContainersDefinedTags,
 *         displayName: containerInstanceContainersDisplayName,
 *         environmentVariables: containerInstanceContainersEnvironmentVariables,
 *         freeformTags: containerInstanceContainersFreeformTags,
 *         healthChecks: [{
 *             healthCheckType: containerInstanceContainersHealthChecksHealthCheckType,
 *             failureAction: containerInstanceContainersHealthChecksFailureAction,
 *             failureThreshold: Number(containerInstanceContainersHealthChecksFailureThreshold),
 *             headers: [{
 *                 name: containerInstanceContainersHealthChecksHeadersName,
 *                 value: containerInstanceContainersHealthChecksHeadersValue,
 *             }],
 *             initialDelayInSeconds: Number(containerInstanceContainersHealthChecksInitialDelayInSeconds),
 *             intervalInSeconds: Number(containerInstanceContainersHealthChecksIntervalInSeconds),
 *             name: containerInstanceContainersHealthChecksName,
 *             path: containerInstanceContainersHealthChecksPath,
 *             port: Number(containerInstanceContainersHealthChecksPort),
 *             successThreshold: Number(containerInstanceContainersHealthChecksSuccessThreshold),
 *             timeoutInSeconds: Number(containerInstanceContainersHealthChecksTimeoutInSeconds),
 *         }],
 *         isResourcePrincipalDisabled: containerInstanceContainersIsResourcePrincipalDisabled === "true",
 *         resourceConfig: {
 *             memoryLimitInGbs: containerInstanceContainersResourceConfigMemoryLimitInGbs,
 *             vcpusLimit: containerInstanceContainersResourceConfigVcpusLimit,
 *         },
 *         securityContext: {
 *             capabilities: {
 *                 addCapabilities: containerInstanceContainersSecurityContextCapabilitiesAddCapabilities,
 *                 dropCapabilities: containerInstanceContainersSecurityContextCapabilitiesDropCapabilities,
 *             },
 *             isNonRootUserCheckEnabled: containerInstanceContainersSecurityContextIsNonRootUserCheckEnabled === "true",
 *             isRootFileSystemReadonly: containerInstanceContainersSecurityContextIsRootFileSystemReadonly === "true",
 *             runAsGroup: Number(containerInstanceContainersSecurityContextRunAsGroup),
 *             runAsUser: Number(containerInstanceContainersSecurityContextRunAsUser),
 *             securityContextType: containerInstanceContainersSecurityContextSecurityContextType,
 *         },
 *         volumeMounts: [{
 *             mountPath: containerInstanceContainersVolumeMountsMountPath,
 *             volumeName: containerInstanceContainersVolumeMountsVolumeName,
 *             isReadOnly: containerInstanceContainersVolumeMountsIsReadOnly === "true",
 *             partition: Number(containerInstanceContainersVolumeMountsPartition),
 *             subPath: containerInstanceContainersVolumeMountsSubPath,
 *         }],
 *         workingDirectory: containerInstanceContainersWorkingDirectory,
 *     }],
 *     shape: containerInstanceShape,
 *     shapeConfig: {
 *         ocpus: containerInstanceShapeConfigOcpus,
 *         memoryInGbs: containerInstanceShapeConfigMemoryInGbs,
 *     },
 *     vnics: [{
 *         subnetId: testSubnet.id,
 *         definedTags: containerInstanceVnicsDefinedTags,
 *         displayName: containerInstanceVnicsDisplayName,
 *         freeformTags: containerInstanceVnicsFreeformTags,
 *         hostnameLabel: containerInstanceVnicsHostnameLabel,
 *         isPublicIpAssigned: containerInstanceVnicsIsPublicIpAssigned === "true",
 *         nsgIds: containerInstanceVnicsNsgIds,
 *         privateIp: containerInstanceVnicsPrivateIp,
 *         skipSourceDestCheck: containerInstanceVnicsSkipSourceDestCheck === "true",
 *     }],
 *     containerRestartPolicy: containerInstanceContainerRestartPolicy,
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     displayName: containerInstanceDisplayName,
 *     dnsConfig: {
 *         nameservers: containerInstanceDnsConfigNameservers,
 *         options: containerInstanceDnsConfigOptions,
 *         searches: containerInstanceDnsConfigSearches,
 *     },
 *     faultDomain: containerInstanceFaultDomain,
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     gracefulShutdownTimeoutInSeconds: containerInstanceGracefulShutdownTimeoutInSeconds,
 *     imagePullSecrets: [{
 *         registryEndpoint: containerInstanceImagePullSecretsRegistryEndpoint,
 *         secretType: containerInstanceImagePullSecretsSecretType,
 *         password: containerInstanceImagePullSecretsPassword,
 *         secretId: testSecret.id,
 *         username: containerInstanceImagePullSecretsUsername,
 *     }],
 *     volumes: [{
 *         name: containerInstanceVolumesName,
 *         volumeType: containerInstanceVolumesVolumeType,
 *         backingStore: containerInstanceVolumesBackingStore,
 *         configs: [{
 *             data: containerInstanceVolumesConfigsData,
 *             fileName: containerInstanceVolumesConfigsFileName,
 *             path: containerInstanceVolumesConfigsPath,
 *         }],
 *     }],
 * });
 * ```
 *
 * ## Import
 *
 * ContainerInstances can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:ContainerEngine/containerInstance:ContainerInstance test_container_instance "id"
 * ```
 */
export declare class ContainerInstance extends pulumi.CustomResource {
    /**
     * Get an existing ContainerInstance 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?: ContainerInstanceState, opts?: pulumi.CustomResourceOptions): ContainerInstance;
    /**
     * Returns true if the given object is an instance of ContainerInstance.  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 ContainerInstance;
    /**
     * The availability domain where the container instance runs.
     */
    readonly availabilityDomain: pulumi.Output<string>;
    /**
     * (Updatable) The compartment OCID.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * The number of containers on the container instance.
     */
    readonly containerCount: pulumi.Output<number>;
    /**
     * Container restart policy
     */
    readonly containerRestartPolicy: pulumi.Output<string>;
    /**
     * The containers to create on this container instance.
     */
    readonly containers: pulumi.Output<outputs.ContainerEngine.ContainerInstanceContainer[]>;
    /**
     * (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If you don't provide a name, a name is generated automatically.
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.
     */
    readonly dnsConfig: pulumi.Output<outputs.ContainerEngine.ContainerInstanceDnsConfig>;
    /**
     * The fault domain where the container instance runs.
     */
    readonly faultDomain: pulumi.Output<string>;
    /**
     * (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;
    }>;
    /**
     * The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.
     */
    readonly gracefulShutdownTimeoutInSeconds: pulumi.Output<string>;
    /**
     * The image pulls secrets so you can access private registry to pull container images.
     */
    readonly imagePullSecrets: pulumi.Output<outputs.ContainerEngine.ContainerInstanceImagePullSecret[]>;
    /**
     * A message that describes the current state of the container in more detail. Can be used to provide actionable information.
     */
    readonly lifecycleDetails: pulumi.Output<string>;
    /**
     * The shape of the container instance. The shape determines the resources available to the container instance.
     */
    readonly shape: pulumi.Output<string>;
    /**
     * The size and amount of resources available to the container instance.
     */
    readonly shapeConfig: pulumi.Output<outputs.ContainerEngine.ContainerInstanceShapeConfig>;
    /**
     * (Updatable) The target state for the Container Instance. Could be set to `ACTIVE` or `INACTIVE`.
     *
     *
     * ** 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 state: pulumi.Output<string>;
    /**
     * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`.
     */
    readonly systemTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * The time the container instance was created, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * The time the container instance was updated, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * The networks available to containers on this container instance.
     */
    readonly vnics: pulumi.Output<outputs.ContainerEngine.ContainerInstanceVnic[]>;
    /**
     * The number of volumes that are attached to the container instance.
     */
    readonly volumeCount: pulumi.Output<number>;
    /**
     * A volume is a directory with data that is accessible across multiple containers in a container instance.
     *
     * You can attach up to 32 volumes to single container instance.
     */
    readonly volumes: pulumi.Output<outputs.ContainerEngine.ContainerInstanceVolume[]>;
    /**
     * Create a ContainerInstance 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: ContainerInstanceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ContainerInstance resources.
 */
export interface ContainerInstanceState {
    /**
     * The availability domain where the container instance runs.
     */
    availabilityDomain?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The compartment OCID.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * The number of containers on the container instance.
     */
    containerCount?: pulumi.Input<number | undefined>;
    /**
     * Container restart policy
     */
    containerRestartPolicy?: pulumi.Input<string | undefined>;
    /**
     * The containers to create on this container instance.
     */
    containers?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceContainer>[] | undefined>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If you don't provide a name, a name is generated automatically.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.
     */
    dnsConfig?: pulumi.Input<inputs.ContainerEngine.ContainerInstanceDnsConfig | undefined>;
    /**
     * The fault domain where the container instance runs.
     */
    faultDomain?: pulumi.Input<string | 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<string>;
    } | undefined>;
    /**
     * The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.
     */
    gracefulShutdownTimeoutInSeconds?: pulumi.Input<string | undefined>;
    /**
     * The image pulls secrets so you can access private registry to pull container images.
     */
    imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceImagePullSecret>[] | undefined>;
    /**
     * A message that describes the current state of the container in more detail. Can be used to provide actionable information.
     */
    lifecycleDetails?: pulumi.Input<string | undefined>;
    /**
     * The shape of the container instance. The shape determines the resources available to the container instance.
     */
    shape?: pulumi.Input<string | undefined>;
    /**
     * The size and amount of resources available to the container instance.
     */
    shapeConfig?: pulumi.Input<inputs.ContainerEngine.ContainerInstanceShapeConfig | undefined>;
    /**
     * (Updatable) The target state for the Container Instance. Could be set to `ACTIVE` or `INACTIVE`.
     *
     *
     * ** 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
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`.
     */
    systemTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The time the container instance was created, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * The time the container instance was updated, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
     */
    timeUpdated?: pulumi.Input<string | undefined>;
    /**
     * The networks available to containers on this container instance.
     */
    vnics?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceVnic>[] | undefined>;
    /**
     * The number of volumes that are attached to the container instance.
     */
    volumeCount?: pulumi.Input<number | undefined>;
    /**
     * A volume is a directory with data that is accessible across multiple containers in a container instance.
     *
     * You can attach up to 32 volumes to single container instance.
     */
    volumes?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceVolume>[] | undefined>;
}
/**
 * The set of arguments for constructing a ContainerInstance resource.
 */
export interface ContainerInstanceArgs {
    /**
     * The availability domain where the container instance runs.
     */
    availabilityDomain: pulumi.Input<string>;
    /**
     * (Updatable) The compartment OCID.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * Container restart policy
     */
    containerRestartPolicy?: pulumi.Input<string | undefined>;
    /**
     * The containers to create on this container instance.
     */
    containers: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceContainer>[]>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If you don't provide a name, a name is generated automatically.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.
     */
    dnsConfig?: pulumi.Input<inputs.ContainerEngine.ContainerInstanceDnsConfig | undefined>;
    /**
     * The fault domain where the container instance runs.
     */
    faultDomain?: pulumi.Input<string | 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<string>;
    } | undefined>;
    /**
     * The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.
     */
    gracefulShutdownTimeoutInSeconds?: pulumi.Input<string | undefined>;
    /**
     * The image pulls secrets so you can access private registry to pull container images.
     */
    imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceImagePullSecret>[] | undefined>;
    /**
     * The shape of the container instance. The shape determines the resources available to the container instance.
     */
    shape: pulumi.Input<string>;
    /**
     * The size and amount of resources available to the container instance.
     */
    shapeConfig: pulumi.Input<inputs.ContainerEngine.ContainerInstanceShapeConfig>;
    /**
     * (Updatable) The target state for the Container Instance. Could be set to `ACTIVE` or `INACTIVE`.
     *
     *
     * ** 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
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * The networks available to containers on this container instance.
     */
    vnics: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceVnic>[]>;
    /**
     * A volume is a directory with data that is accessible across multiple containers in a container instance.
     *
     * You can attach up to 32 volumes to single container instance.
     */
    volumes?: pulumi.Input<pulumi.Input<inputs.ContainerEngine.ContainerInstanceVolume>[] | undefined>;
}
//# sourceMappingURL=containerInstance.d.ts.map