1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Kms
  5. VaultVerification
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Kms.VaultVerification

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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("test_replication", {
        vaultId: testVault.id,
        replicaRegion: replicaRegion,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication = oci.kms.VaultVerification("test_replication",
        vault_id=test_vault["id"],
        replica_region=replica_region)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Kms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Kms.NewVaultVerification(ctx, "test_replication", &Kms.VaultVerificationArgs{
    			VaultId:       pulumi.Any(testVault.Id),
    			ReplicaRegion: pulumi.Any(replicaRegion),
    		})
    		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("test_replication", new()
        {
            VaultId = testVault.Id,
            ReplicaRegion = replicaRegion,
        });
    
    });
    
    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(testVault.id())
                .replicaRegion(replicaRegion)
                .build());
    
        }
    }
    
    resources:
      testReplication:
        type: oci:Kms:VaultVerification
        name: test_replication
        properties:
          vaultId: ${testVault.id}
          replicaRegion: ${replicaRegion}
    

    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.

    Constructor 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi