1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. AutonomousDatabaseWallet
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Database.AutonomousDatabaseWallet

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 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("test_autonomous_database_wallet", {
        autonomousDatabaseId: testAutonomousDatabase.id,
        password: autonomousDatabaseWalletPassword,
        base64EncodeContent: false,
        generateType: autonomousDatabaseWalletGenerateType,
        isRegional: autonomousDatabaseWalletIsRegional,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      testAutonomousDatabaseWallet:
        type: oci:Database:AutonomousDatabaseWallet
        name: test_autonomous_database_wallet
        properties:
          autonomousDatabaseId: ${testAutonomousDatabase.id}
          password: ${autonomousDatabaseWalletPassword}
          base64EncodeContent: 'false'
          generateType: ${autonomousDatabaseWalletGenerateType}
          isRegional: ${autonomousDatabaseWalletIsRegional}
    

    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.

    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,
    });
    
    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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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:

    • 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 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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi