import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Domain Replication To Region resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/DomainReplicationToRegion * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Replicate domain to a new region. This is an asynchronous call - where, at start, * {@code state} of this domain in replica region is set to ENABLING_REPLICATION. * On domain replication completion the {@code state} will be set to REPLICATION_ENABLED. * * To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide * the async operation's status. * * If the replica region's {@code state} is already ENABLING_REPLICATION or REPLICATION_ENABLED, * returns 409 CONFLICT. * - If the domain doesn't exists, returns 404 NOT FOUND. * - If home region is same as replication region, return 400 BAD REQUEST. * - If Domain is not active or being updated, returns 400 BAD REQUEST. * - If any internal error occurs, return 500 INTERNAL SERVER ERROR. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDomainReplicationToRegion = new oci.identity.DomainReplicationToRegion("test_domain_replication_to_region", { * domainId: testDomain.id, * replicaRegion: domainReplicationToRegionReplicaRegion, * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class DomainReplicationToRegion extends pulumi.CustomResource { /** * Get an existing DomainReplicationToRegion 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?: DomainReplicationToRegionState, opts?: pulumi.CustomResourceOptions): DomainReplicationToRegion; /** * Returns true if the given object is an instance of DomainReplicationToRegion. 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 DomainReplicationToRegion; /** * The OCID of the domain */ readonly domainId: pulumi.Output; /** * A region for which domain replication is requested for. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` * * ** 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 replicaRegion: pulumi.Output; /** * Create a DomainReplicationToRegion 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: DomainReplicationToRegionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DomainReplicationToRegion resources. */ export interface DomainReplicationToRegionState { /** * The OCID of the domain */ domainId?: pulumi.Input; /** * A region for which domain replication is requested for. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` * * ** 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 */ replicaRegion?: pulumi.Input; } /** * The set of arguments for constructing a DomainReplicationToRegion resource. */ export interface DomainReplicationToRegionArgs { /** * The OCID of the domain */ domainId: pulumi.Input; /** * A region for which domain replication is requested for. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` * * ** 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 */ replicaRegion?: pulumi.Input; } //# sourceMappingURL=domainReplicationToRegion.d.ts.map