1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. AutonomousDatabaseWallet
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Database.AutonomousDatabaseWallet

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This resource provides the Autonomous Database Wallet resource in Oracle Cloud Infrastructure Database service.

    Creates and downloads a wallet for the specified Autonomous Database.

    If passing the base64 encoded content to a local_file resource, please use the content_base64 attribute of the local_file resource. See this example for more details.

    Recreate the resource to create and download a new wallet.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseWallet = new oci.database.AutonomousDatabaseWallet("testAutonomousDatabaseWallet", {
        autonomousDatabaseId: oci_database_autonomous_database.test_autonomous_database.id,
        password: _var.autonomous_database_wallet_password,
        base64EncodeContent: false,
        generateType: _var.autonomous_database_wallet_generate_type,
        isRegional: _var.autonomous_database_wallet_is_regional,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_wallet = oci.database.AutonomousDatabaseWallet("testAutonomousDatabaseWallet",
        autonomous_database_id=oci_database_autonomous_database["test_autonomous_database"]["id"],
        password=var["autonomous_database_wallet_password"],
        base64_encode_content=False,
        generate_type=var["autonomous_database_wallet_generate_type"],
        is_regional=var["autonomous_database_wallet_is_regional"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewAutonomousDatabaseWallet(ctx, "testAutonomousDatabaseWallet", &Database.AutonomousDatabaseWalletArgs{
    			AutonomousDatabaseId: pulumi.Any(oci_database_autonomous_database.Test_autonomous_database.Id),
    			Password:             pulumi.Any(_var.Autonomous_database_wallet_password),
    			Base64EncodeContent:  pulumi.Bool(false),
    			GenerateType:         pulumi.Any(_var.Autonomous_database_wallet_generate_type),
    			IsRegional:           pulumi.Any(_var.Autonomous_database_wallet_is_regional),
    		})
    		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 testAutonomousDatabaseWallet = new Oci.Database.AutonomousDatabaseWallet("testAutonomousDatabaseWallet", new()
        {
            AutonomousDatabaseId = oci_database_autonomous_database.Test_autonomous_database.Id,
            Password = @var.Autonomous_database_wallet_password,
            Base64EncodeContent = false,
            GenerateType = @var.Autonomous_database_wallet_generate_type,
            IsRegional = @var.Autonomous_database_wallet_is_regional,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.AutonomousDatabaseWallet;
    import com.pulumi.oci.Database.AutonomousDatabaseWalletArgs;
    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 testAutonomousDatabaseWallet = new AutonomousDatabaseWallet("testAutonomousDatabaseWallet", AutonomousDatabaseWalletArgs.builder()        
                .autonomousDatabaseId(oci_database_autonomous_database.test_autonomous_database().id())
                .password(var_.autonomous_database_wallet_password())
                .base64EncodeContent("false")
                .generateType(var_.autonomous_database_wallet_generate_type())
                .isRegional(var_.autonomous_database_wallet_is_regional())
                .build());
    
        }
    }
    
    resources:
      testAutonomousDatabaseWallet:
        type: oci:Database:AutonomousDatabaseWallet
        properties:
          #Required
          autonomousDatabaseId: ${oci_database_autonomous_database.test_autonomous_database.id}
          password: ${var.autonomous_database_wallet_password}
          #Optional
          base64EncodeContent: 'false'
          generateType: ${var.autonomous_database_wallet_generate_type}
          isRegional: ${var.autonomous_database_wallet_is_regional}
    

    Create AutonomousDatabaseWallet Resource

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

    Constructor syntax

    new AutonomousDatabaseWallet(name: string, args: AutonomousDatabaseWalletArgs, opts?: CustomResourceOptions);
    @overload
    def AutonomousDatabaseWallet(resource_name: str,
                                 args: AutonomousDatabaseWalletArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutonomousDatabaseWallet(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 autonomous_database_id: Optional[str] = None,
                                 password: Optional[str] = None,
                                 base64_encode_content: Optional[bool] = None,
                                 generate_type: Optional[str] = None,
                                 is_regional: Optional[bool] = None)
    func NewAutonomousDatabaseWallet(ctx *Context, name string, args AutonomousDatabaseWalletArgs, opts ...ResourceOption) (*AutonomousDatabaseWallet, error)
    public AutonomousDatabaseWallet(string name, AutonomousDatabaseWalletArgs args, CustomResourceOptions? opts = null)
    public AutonomousDatabaseWallet(String name, AutonomousDatabaseWalletArgs args)
    public AutonomousDatabaseWallet(String name, AutonomousDatabaseWalletArgs args, CustomResourceOptions options)
    
    type: oci:Database:AutonomousDatabaseWallet
    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 AutonomousDatabaseWalletArgs
    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 AutonomousDatabaseWalletArgs
    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 AutonomousDatabaseWalletArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AutonomousDatabaseWalletArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AutonomousDatabaseWalletArgs
    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 autonomousDatabaseWalletResource = new Oci.Database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource", new()
    {
        AutonomousDatabaseId = "string",
        Password = "string",
        Base64EncodeContent = false,
        GenerateType = "string",
        IsRegional = false,
    });
    
    example, err := Database.NewAutonomousDatabaseWallet(ctx, "autonomousDatabaseWalletResource", &Database.AutonomousDatabaseWalletArgs{
    	AutonomousDatabaseId: pulumi.String("string"),
    	Password:             pulumi.String("string"),
    	Base64EncodeContent:  pulumi.Bool(false),
    	GenerateType:         pulumi.String("string"),
    	IsRegional:           pulumi.Bool(false),
    })
    
    var autonomousDatabaseWalletResource = new AutonomousDatabaseWallet("autonomousDatabaseWalletResource", AutonomousDatabaseWalletArgs.builder()        
        .autonomousDatabaseId("string")
        .password("string")
        .base64EncodeContent(false)
        .generateType("string")
        .isRegional(false)
        .build());
    
    autonomous_database_wallet_resource = oci.database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource",
        autonomous_database_id="string",
        password="string",
        base64_encode_content=False,
        generate_type="string",
        is_regional=False)
    
    const autonomousDatabaseWalletResource = new oci.database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource", {
        autonomousDatabaseId: "string",
        password: "string",
        base64EncodeContent: false,
        generateType: "string",
        isRegional: false,
    });
    
    type: oci:Database:AutonomousDatabaseWallet
    properties:
        autonomousDatabaseId: string
        base64EncodeContent: false
        generateType: string
        isRegional: false
        password: string
    

    AutonomousDatabaseWallet 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 AutonomousDatabaseWallet resource accepts the following input properties:

    AutonomousDatabaseId string
    The database OCID.
    Password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    Base64EncodeContent bool
    GenerateType string

    The type of wallet to generate.

    Serverless instance usage:

    IsRegional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    AutonomousDatabaseId string
    The database OCID.
    Password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    Base64EncodeContent bool
    GenerateType string

    The type of wallet to generate.

    Serverless instance usage:

    IsRegional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    autonomousDatabaseId String
    The database OCID.
    password String

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    base64EncodeContent Boolean
    generateType String

    The type of wallet to generate.

    Serverless instance usage:

    isRegional Boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    autonomousDatabaseId string
    The database OCID.
    password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    base64EncodeContent boolean
    generateType string

    The type of wallet to generate.

    Serverless instance usage:

    isRegional boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    autonomous_database_id str
    The database OCID.
    password str

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    base64_encode_content bool
    generate_type str

    The type of wallet to generate.

    Serverless instance usage:

    is_regional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    autonomousDatabaseId String
    The database OCID.
    password String

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    base64EncodeContent Boolean
    generateType String

    The type of wallet to generate.

    Serverless instance usage:

    isRegional Boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.

    Outputs

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

    Content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    Id string
    The provider-assigned unique ID for this managed resource.
    Content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    Id string
    The provider-assigned unique ID for this managed resource.
    content String
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    id String
    The provider-assigned unique ID for this managed resource.
    content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    id string
    The provider-assigned unique ID for this managed resource.
    content str
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    id str
    The provider-assigned unique ID for this managed resource.
    content String
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AutonomousDatabaseWallet Resource

    Get an existing AutonomousDatabaseWallet 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?: AutonomousDatabaseWalletState, opts?: CustomResourceOptions): AutonomousDatabaseWallet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            autonomous_database_id: Optional[str] = None,
            base64_encode_content: Optional[bool] = None,
            content: Optional[str] = None,
            generate_type: Optional[str] = None,
            is_regional: Optional[bool] = None,
            password: Optional[str] = None) -> AutonomousDatabaseWallet
    func GetAutonomousDatabaseWallet(ctx *Context, name string, id IDInput, state *AutonomousDatabaseWalletState, opts ...ResourceOption) (*AutonomousDatabaseWallet, error)
    public static AutonomousDatabaseWallet Get(string name, Input<string> id, AutonomousDatabaseWalletState? state, CustomResourceOptions? opts = null)
    public static AutonomousDatabaseWallet get(String name, Output<String> id, AutonomousDatabaseWalletState 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:
    AutonomousDatabaseId string
    The database OCID.
    Base64EncodeContent bool
    Content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    GenerateType string

    The type of wallet to generate.

    Serverless instance usage:

    IsRegional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    Password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    AutonomousDatabaseId string
    The database OCID.
    Base64EncodeContent bool
    Content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    GenerateType string

    The type of wallet to generate.

    Serverless instance usage:

    IsRegional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    Password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    autonomousDatabaseId String
    The database OCID.
    base64EncodeContent Boolean
    content String
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    generateType String

    The type of wallet to generate.

    Serverless instance usage:

    isRegional Boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    password String

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    autonomousDatabaseId string
    The database OCID.
    base64EncodeContent boolean
    content string
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    generateType string

    The type of wallet to generate.

    Serverless instance usage:

    isRegional boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    password string

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    autonomous_database_id str
    The database OCID.
    base64_encode_content bool
    content str
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    generate_type str

    The type of wallet to generate.

    Serverless instance usage:

    is_regional bool
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    password str

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    autonomousDatabaseId String
    The database OCID.
    base64EncodeContent Boolean
    content String
    content of the downloaded zipped wallet for the Autonomous Database. If base64_encode_content is set to true, then this content will be base64 encoded.
    generateType String

    The type of wallet to generate.

    Serverless instance usage:

    isRegional Boolean
    True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
    password String

    The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.

    ** 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

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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.31.0 published on Wednesday, Apr 10, 2024 by Pulumi