1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. AutonomousDatabaseWallet
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Database.AutonomousDatabaseWallet

Explore with Pulumi AI

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("test_autonomous_database_wallet", {
    autonomousDatabaseId: testAutonomousDatabase.id,
    password: autonomousDatabaseWalletPassword,
    base64EncodeContent: false,
    generateType: autonomousDatabaseWalletGenerateType,
    isRegional: autonomousDatabaseWalletIsRegional,
});
Copy
import pulumi
import pulumi_oci as oci

test_autonomous_database_wallet = oci.database.AutonomousDatabaseWallet("test_autonomous_database_wallet",
    autonomous_database_id=test_autonomous_database["id"],
    password=autonomous_database_wallet_password,
    base64_encode_content=False,
    generate_type=autonomous_database_wallet_generate_type,
    is_regional=autonomous_database_wallet_is_regional)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.NewAutonomousDatabaseWallet(ctx, "test_autonomous_database_wallet", &database.AutonomousDatabaseWalletArgs{
			AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
			Password:             pulumi.Any(autonomousDatabaseWalletPassword),
			Base64EncodeContent:  pulumi.Bool(false),
			GenerateType:         pulumi.Any(autonomousDatabaseWalletGenerateType),
			IsRegional:           pulumi.Any(autonomousDatabaseWalletIsRegional),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseWallet = new Oci.Database.AutonomousDatabaseWallet("test_autonomous_database_wallet", new()
    {
        AutonomousDatabaseId = testAutonomousDatabase.Id,
        Password = autonomousDatabaseWalletPassword,
        Base64EncodeContent = false,
        GenerateType = autonomousDatabaseWalletGenerateType,
        IsRegional = autonomousDatabaseWalletIsRegional,
    });

});
Copy
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(testAutonomousDatabase.id())
            .password(autonomousDatabaseWalletPassword)
            .base64EncodeContent(false)
            .generateType(autonomousDatabaseWalletGenerateType)
            .isRegional(autonomousDatabaseWalletIsRegional)
            .build());

    }
}
Copy
resources:
  testAutonomousDatabaseWallet:
    type: oci:Database:AutonomousDatabaseWallet
    name: test_autonomous_database_wallet
    properties:
      autonomousDatabaseId: ${testAutonomousDatabase.id}
      password: ${autonomousDatabaseWalletPassword}
      base64EncodeContent: 'false'
      generateType: ${autonomousDatabaseWalletGenerateType}
      isRegional: ${autonomousDatabaseWalletIsRegional}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. AutonomousDatabaseWalletArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AutonomousDatabaseWalletArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AutonomousDatabaseWalletArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AutonomousDatabaseWalletArgs
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 autonomousDatabaseWalletResource = new Oci.Database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource", new()
{
    AutonomousDatabaseId = "string",
    Password = "string",
    Base64EncodeContent = false,
    GenerateType = "string",
    IsRegional = false,
});
Copy
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),
})
Copy
var autonomousDatabaseWalletResource = new AutonomousDatabaseWallet("autonomousDatabaseWalletResource", AutonomousDatabaseWalletArgs.builder()
    .autonomousDatabaseId("string")
    .password("string")
    .base64EncodeContent(false)
    .generateType("string")
    .isRegional(false)
    .build());
Copy
autonomous_database_wallet_resource = oci.database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource",
    autonomous_database_id="string",
    password="string",
    base64_encode_content=False,
    generate_type="string",
    is_regional=False)
Copy
const autonomousDatabaseWalletResource = new oci.database.AutonomousDatabaseWallet("autonomousDatabaseWalletResource", {
    autonomousDatabaseId: "string",
    password: "string",
    base64EncodeContent: false,
    generateType: "string",
    isRegional: false,
});
Copy
type: oci:Database:AutonomousDatabaseWallet
properties:
    autonomousDatabaseId: string
    base64EncodeContent: false
    generateType: string
    isRegional: false
    password: string
Copy

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

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

The AutonomousDatabaseWallet resource accepts the following input properties:

AutonomousDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The database OCID.
Password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. bool
GenerateType Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

IsRegional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
AutonomousDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The database OCID.
Password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. bool
GenerateType Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

IsRegional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
autonomousDatabaseId
This property is required.
Changes to this property will trigger replacement.
String
The database OCID.
password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. Boolean
generateType Changes to this property will trigger replacement. String

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. Boolean
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
autonomousDatabaseId
This property is required.
Changes to this property will trigger replacement.
string
The database OCID.
password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. boolean
generateType Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. boolean
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
autonomous_database_id
This property is required.
Changes to this property will trigger replacement.
str
The database OCID.
password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. bool
generate_type Changes to this property will trigger replacement. str

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

is_regional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
autonomousDatabaseId
This property is required.
Changes to this property will trigger replacement.
String
The database OCID.
password
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. Boolean
generateType Changes to this property will trigger replacement. String

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. 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)
resources:  _:    type: oci:Database:AutonomousDatabaseWallet    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The database OCID.
Base64EncodeContent Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

IsRegional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
Password Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The database OCID.
Base64EncodeContent Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

IsRegional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
Password Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The database OCID.
base64EncodeContent Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. Boolean
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
password Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The database OCID.
base64EncodeContent Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. boolean
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
password Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The database OCID.
base64_encode_content Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

is_regional Changes to this property will trigger replacement. bool
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
password Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The database OCID.
base64EncodeContent Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String

The type of wallet to generate.

Serverless instance usage:

  • SINGLE - used to generate a wallet for a single database
  • ALL - used to generate wallet for all databases in the region

Dedicated Exadata infrastructure usage: Value must be NULL if attribute is used.

isRegional Changes to this property will trigger replacement. Boolean
True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
password Changes to this property will trigger replacement. 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.