Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

AutonomousDatabaseInstanceWalletManagement

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

Updates the wallet for the specified Autonomous Database.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseInstanceWalletManagement = new Oci.Database.AutonomousDatabaseInstanceWalletManagement("testAutonomousDatabaseInstanceWalletManagement", new()
    {
        AutonomousDatabaseId = oci_database_autonomous_database.Test_autonomous_database.Id,
        GracePeriod = @var.Autonomous_database_instance_wallet_management_grace_period,
        ShouldRotate = @var.Autonomous_database_instance_wallet_management_should_rotate,
    });

});
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.NewAutonomousDatabaseInstanceWalletManagement(ctx, "testAutonomousDatabaseInstanceWalletManagement", &Database.AutonomousDatabaseInstanceWalletManagementArgs{
			AutonomousDatabaseId: pulumi.Any(oci_database_autonomous_database.Test_autonomous_database.Id),
			GracePeriod:          pulumi.Any(_var.Autonomous_database_instance_wallet_management_grace_period),
			ShouldRotate:         pulumi.Any(_var.Autonomous_database_instance_wallet_management_should_rotate),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.AutonomousDatabaseInstanceWalletManagement;
import com.pulumi.oci.Database.AutonomousDatabaseInstanceWalletManagementArgs;
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 testAutonomousDatabaseInstanceWalletManagement = new AutonomousDatabaseInstanceWalletManagement("testAutonomousDatabaseInstanceWalletManagement", AutonomousDatabaseInstanceWalletManagementArgs.builder()        
            .autonomousDatabaseId(oci_database_autonomous_database.test_autonomous_database().id())
            .gracePeriod(var_.autonomous_database_instance_wallet_management_grace_period())
            .shouldRotate(var_.autonomous_database_instance_wallet_management_should_rotate())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_autonomous_database_instance_wallet_management = oci.database.AutonomousDatabaseInstanceWalletManagement("testAutonomousDatabaseInstanceWalletManagement",
    autonomous_database_id=oci_database_autonomous_database["test_autonomous_database"]["id"],
    grace_period=var["autonomous_database_instance_wallet_management_grace_period"],
    should_rotate=var["autonomous_database_instance_wallet_management_should_rotate"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutonomousDatabaseInstanceWalletManagement = new oci.database.AutonomousDatabaseInstanceWalletManagement("testAutonomousDatabaseInstanceWalletManagement", {
    autonomousDatabaseId: oci_database_autonomous_database.test_autonomous_database.id,
    gracePeriod: _var.autonomous_database_instance_wallet_management_grace_period,
    shouldRotate: _var.autonomous_database_instance_wallet_management_should_rotate,
});
resources:
  testAutonomousDatabaseInstanceWalletManagement:
    type: oci:Database:AutonomousDatabaseInstanceWalletManagement
    properties:
      #Required
      autonomousDatabaseId: ${oci_database_autonomous_database.test_autonomous_database.id}
      #Optional
      gracePeriod: ${var.autonomous_database_instance_wallet_management_grace_period}
      shouldRotate: ${var.autonomous_database_instance_wallet_management_should_rotate}

Create a AutonomousDatabaseInstanceWalletManagement Resource

new AutonomousDatabaseInstanceWalletManagement(name: string, args: AutonomousDatabaseInstanceWalletManagementArgs, opts?: CustomResourceOptions);
@overload
def AutonomousDatabaseInstanceWalletManagement(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               autonomous_database_id: Optional[str] = None,
                                               grace_period: Optional[int] = None,
                                               should_rotate: Optional[bool] = None)
@overload
def AutonomousDatabaseInstanceWalletManagement(resource_name: str,
                                               args: AutonomousDatabaseInstanceWalletManagementArgs,
                                               opts: Optional[ResourceOptions] = None)
func NewAutonomousDatabaseInstanceWalletManagement(ctx *Context, name string, args AutonomousDatabaseInstanceWalletManagementArgs, opts ...ResourceOption) (*AutonomousDatabaseInstanceWalletManagement, error)
public AutonomousDatabaseInstanceWalletManagement(string name, AutonomousDatabaseInstanceWalletManagementArgs args, CustomResourceOptions? opts = null)
public AutonomousDatabaseInstanceWalletManagement(String name, AutonomousDatabaseInstanceWalletManagementArgs args)
public AutonomousDatabaseInstanceWalletManagement(String name, AutonomousDatabaseInstanceWalletManagementArgs args, CustomResourceOptions options)
type: oci:Database:AutonomousDatabaseInstanceWalletManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AutonomousDatabaseInstanceWalletManagementArgs
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 AutonomousDatabaseInstanceWalletManagementArgs
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 AutonomousDatabaseInstanceWalletManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AutonomousDatabaseInstanceWalletManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AutonomousDatabaseInstanceWalletManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

AutonomousDatabaseId string

(Updatable) The database OCID.

GracePeriod int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

ShouldRotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

AutonomousDatabaseId string

(Updatable) The database OCID.

GracePeriod int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

ShouldRotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

autonomousDatabaseId String

(Updatable) The database OCID.

gracePeriod Integer

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate Boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

autonomousDatabaseId string

(Updatable) The database OCID.

gracePeriod number

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

autonomous_database_id str

(Updatable) The database OCID.

grace_period int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

should_rotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

autonomousDatabaseId String

(Updatable) The database OCID.

gracePeriod Number

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate Boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

State string

The current lifecycle state of the Autonomous Database wallet.

TimeRotated string

The date and time the wallet was last rotated.

Id string

The provider-assigned unique ID for this managed resource.

State string

The current lifecycle state of the Autonomous Database wallet.

TimeRotated string

The date and time the wallet was last rotated.

id String

The provider-assigned unique ID for this managed resource.

state String

The current lifecycle state of the Autonomous Database wallet.

timeRotated String

The date and time the wallet was last rotated.

id string

The provider-assigned unique ID for this managed resource.

state string

The current lifecycle state of the Autonomous Database wallet.

timeRotated string

The date and time the wallet was last rotated.

id str

The provider-assigned unique ID for this managed resource.

state str

The current lifecycle state of the Autonomous Database wallet.

time_rotated str

The date and time the wallet was last rotated.

id String

The provider-assigned unique ID for this managed resource.

state String

The current lifecycle state of the Autonomous Database wallet.

timeRotated String

The date and time the wallet was last rotated.

Look up an Existing AutonomousDatabaseInstanceWalletManagement Resource

Get an existing AutonomousDatabaseInstanceWalletManagement 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?: AutonomousDatabaseInstanceWalletManagementState, opts?: CustomResourceOptions): AutonomousDatabaseInstanceWalletManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        autonomous_database_id: Optional[str] = None,
        grace_period: Optional[int] = None,
        should_rotate: Optional[bool] = None,
        state: Optional[str] = None,
        time_rotated: Optional[str] = None) -> AutonomousDatabaseInstanceWalletManagement
func GetAutonomousDatabaseInstanceWalletManagement(ctx *Context, name string, id IDInput, state *AutonomousDatabaseInstanceWalletManagementState, opts ...ResourceOption) (*AutonomousDatabaseInstanceWalletManagement, error)
public static AutonomousDatabaseInstanceWalletManagement Get(string name, Input<string> id, AutonomousDatabaseInstanceWalletManagementState? state, CustomResourceOptions? opts = null)
public static AutonomousDatabaseInstanceWalletManagement get(String name, Output<String> id, AutonomousDatabaseInstanceWalletManagementState 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

(Updatable) The database OCID.

GracePeriod int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

ShouldRotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

State string

The current lifecycle state of the Autonomous Database wallet.

TimeRotated string

The date and time the wallet was last rotated.

AutonomousDatabaseId string

(Updatable) The database OCID.

GracePeriod int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

ShouldRotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

State string

The current lifecycle state of the Autonomous Database wallet.

TimeRotated string

The date and time the wallet was last rotated.

autonomousDatabaseId String

(Updatable) The database OCID.

gracePeriod Integer

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate Boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

state String

The current lifecycle state of the Autonomous Database wallet.

timeRotated String

The date and time the wallet was last rotated.

autonomousDatabaseId string

(Updatable) The database OCID.

gracePeriod number

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

state string

The current lifecycle state of the Autonomous Database wallet.

timeRotated string

The date and time the wallet was last rotated.

autonomous_database_id str

(Updatable) The database OCID.

grace_period int

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

should_rotate bool

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

state str

The current lifecycle state of the Autonomous Database wallet.

time_rotated str

The date and time the wallet was last rotated.

autonomousDatabaseId String

(Updatable) The database OCID.

gracePeriod Number

(Updatable) Grace period in hours to keep the existing wallet valid after rotation.

shouldRotate Boolean

(Updatable) Indicates whether to rotate the wallet or not. If false, the wallet will not be rotated. The default is false.

state String

The current lifecycle state of the Autonomous Database wallet.

timeRotated String

The date and time the wallet was last rotated.

Import

Import is not supported for this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.