1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Kms
  5. VaultVerification
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Kms.VaultVerification

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This source triggers action to create, update and delete replica for a vault in Oracle Cloud Infrastructure Kms service.

    A vault replica is a mirror of that vault in a different region in the same realm. The vault replica and all the resources have same OCID with corresponding original ones.

    This only supports virtual private vault for now. This supports only one replica in a region for a vault. Multiple replica will be supported in the future.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplication = new oci.kms.VaultVerification("testReplication", {
        vaultId: oci_kms_vault.test_vault.id,
        replicaRegion: _var.replica_region,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication = oci.kms.VaultVerification("testReplication",
        vault_id=oci_kms_vault["test_vault"]["id"],
        replica_region=var["replica_region"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Kms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Kms.NewVaultVerification(ctx, "testReplication", &Kms.VaultVerificationArgs{
    			VaultId:       pulumi.Any(oci_kms_vault.Test_vault.Id),
    			ReplicaRegion: pulumi.Any(_var.Replica_region),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testReplication = new Oci.Kms.VaultVerification("testReplication", new()
        {
            VaultId = oci_kms_vault.Test_vault.Id,
            ReplicaRegion = @var.Replica_region,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Kms.VaultVerification;
    import com.pulumi.oci.Kms.VaultVerificationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testReplication = new VaultVerification("testReplication", VaultVerificationArgs.builder()        
                .vaultId(oci_kms_vault.test_vault().id())
                .replicaRegion(var_.replica_region())
                .build());
    
        }
    }
    
    resources:
      testReplication:
        type: oci:Kms:VaultVerification
        properties:
          #Required
          vaultId: ${oci_kms_vault.test_vault.id}
          replicaRegion: ${var.replica_region}
    

    Create VaultVerification Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VaultVerification(name: string, args: VaultVerificationArgs, opts?: CustomResourceOptions);
    @overload
    def VaultVerification(resource_name: str,
                          args: VaultVerificationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def VaultVerification(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          replica_region: Optional[str] = None,
                          vault_id: Optional[str] = None)
    func NewVaultVerification(ctx *Context, name string, args VaultVerificationArgs, opts ...ResourceOption) (*VaultVerification, error)
    public VaultVerification(string name, VaultVerificationArgs args, CustomResourceOptions? opts = null)
    public VaultVerification(String name, VaultVerificationArgs args)
    public VaultVerification(String name, VaultVerificationArgs args, CustomResourceOptions options)
    
    type: oci:Kms:VaultVerification
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VaultVerificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VaultVerificationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VaultVerificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VaultVerificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VaultVerificationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var vaultVerificationResource = new Oci.Kms.VaultVerification("vaultVerificationResource", new()
    {
        ReplicaRegion = "string",
        VaultId = "string",
    });
    
    example, err := Kms.NewVaultVerification(ctx, "vaultVerificationResource", &Kms.VaultVerificationArgs{
    	ReplicaRegion: pulumi.String("string"),
    	VaultId:       pulumi.String("string"),
    })
    
    var vaultVerificationResource = new VaultVerification("vaultVerificationResource", VaultVerificationArgs.builder()        
        .replicaRegion("string")
        .vaultId("string")
        .build());
    
    vault_verification_resource = oci.kms.VaultVerification("vaultVerificationResource",
        replica_region="string",
        vault_id="string")
    
    const vaultVerificationResource = new oci.kms.VaultVerification("vaultVerificationResource", {
        replicaRegion: "string",
        vaultId: "string",
    });
    
    type: oci:Kms:VaultVerification
    properties:
        replicaRegion: string
        vaultId: string
    

    VaultVerification Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VaultVerification resource accepts the following input properties:

    ReplicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    VaultId string
    The OCID of the primary vault to create replica from.
    ReplicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    VaultId string
    The OCID of the primary vault to create replica from.
    replicaRegion String
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId String
    The OCID of the primary vault to create replica from.
    replicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId string
    The OCID of the primary vault to create replica from.
    replica_region str
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vault_id str
    The OCID of the primary vault to create replica from.
    replicaRegion String
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId String
    The OCID of the primary vault to create replica from.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VaultVerification resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VaultVerification Resource

    Get an existing VaultVerification resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VaultVerificationState, opts?: CustomResourceOptions): VaultVerification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            replica_region: Optional[str] = None,
            vault_id: Optional[str] = None) -> VaultVerification
    func GetVaultVerification(ctx *Context, name string, id IDInput, state *VaultVerificationState, opts ...ResourceOption) (*VaultVerification, error)
    public static VaultVerification Get(string name, Input<string> id, VaultVerificationState? state, CustomResourceOptions? opts = null)
    public static VaultVerification get(String name, Output<String> id, VaultVerificationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ReplicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    VaultId string
    The OCID of the primary vault to create replica from.
    ReplicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    VaultId string
    The OCID of the primary vault to create replica from.
    replicaRegion String
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId String
    The OCID of the primary vault to create replica from.
    replicaRegion string
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId string
    The OCID of the primary vault to create replica from.
    replica_region str
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vault_id str
    The OCID of the primary vault to create replica from.
    replicaRegion String
    (Updatable) The region to be created replica to. When updated, replica will be deleted from old region, and created to updated region.
    vaultId String
    The OCID of the primary vault to create replica from.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi