oci.Database.AutonomousDatabaseInstanceWalletManagement
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseInstanceWalletManagement = new oci.database.AutonomousDatabaseInstanceWalletManagement("test_autonomous_database_instance_wallet_management", {
autonomousDatabaseId: testAutonomousDatabase.id,
gracePeriod: autonomousDatabaseInstanceWalletManagementGracePeriod,
shouldRotate: autonomousDatabaseInstanceWalletManagementShouldRotate,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_instance_wallet_management = oci.database.AutonomousDatabaseInstanceWalletManagement("test_autonomous_database_instance_wallet_management",
autonomous_database_id=test_autonomous_database["id"],
grace_period=autonomous_database_instance_wallet_management_grace_period,
should_rotate=autonomous_database_instance_wallet_management_should_rotate)
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.NewAutonomousDatabaseInstanceWalletManagement(ctx, "test_autonomous_database_instance_wallet_management", &Database.AutonomousDatabaseInstanceWalletManagementArgs{
AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
GracePeriod: pulumi.Any(autonomousDatabaseInstanceWalletManagementGracePeriod),
ShouldRotate: pulumi.Any(autonomousDatabaseInstanceWalletManagementShouldRotate),
})
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 testAutonomousDatabaseInstanceWalletManagement = new Oci.Database.AutonomousDatabaseInstanceWalletManagement("test_autonomous_database_instance_wallet_management", new()
{
AutonomousDatabaseId = testAutonomousDatabase.Id,
GracePeriod = autonomousDatabaseInstanceWalletManagementGracePeriod,
ShouldRotate = autonomousDatabaseInstanceWalletManagementShouldRotate,
});
});
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(testAutonomousDatabase.id())
.gracePeriod(autonomousDatabaseInstanceWalletManagementGracePeriod)
.shouldRotate(autonomousDatabaseInstanceWalletManagementShouldRotate)
.build());
}
}
resources:
testAutonomousDatabaseInstanceWalletManagement:
type: oci:Database:AutonomousDatabaseInstanceWalletManagement
name: test_autonomous_database_instance_wallet_management
properties:
autonomousDatabaseId: ${testAutonomousDatabase.id}
gracePeriod: ${autonomousDatabaseInstanceWalletManagementGracePeriod}
shouldRotate: ${autonomousDatabaseInstanceWalletManagementShouldRotate}
Create AutonomousDatabaseInstanceWalletManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutonomousDatabaseInstanceWalletManagement(name: string, args: AutonomousDatabaseInstanceWalletManagementArgs, opts?: CustomResourceOptions);
@overload
def AutonomousDatabaseInstanceWalletManagement(resource_name: str,
args: AutonomousDatabaseInstanceWalletManagementArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var autonomousDatabaseInstanceWalletManagementResource = new Oci.Database.AutonomousDatabaseInstanceWalletManagement("autonomousDatabaseInstanceWalletManagementResource", new()
{
AutonomousDatabaseId = "string",
GracePeriod = 0,
ShouldRotate = false,
});
example, err := Database.NewAutonomousDatabaseInstanceWalletManagement(ctx, "autonomousDatabaseInstanceWalletManagementResource", &Database.AutonomousDatabaseInstanceWalletManagementArgs{
AutonomousDatabaseId: pulumi.String("string"),
GracePeriod: pulumi.Int(0),
ShouldRotate: pulumi.Bool(false),
})
var autonomousDatabaseInstanceWalletManagementResource = new AutonomousDatabaseInstanceWalletManagement("autonomousDatabaseInstanceWalletManagementResource", AutonomousDatabaseInstanceWalletManagementArgs.builder()
.autonomousDatabaseId("string")
.gracePeriod(0)
.shouldRotate(false)
.build());
autonomous_database_instance_wallet_management_resource = oci.database.AutonomousDatabaseInstanceWalletManagement("autonomousDatabaseInstanceWalletManagementResource",
autonomous_database_id="string",
grace_period=0,
should_rotate=False)
const autonomousDatabaseInstanceWalletManagementResource = new oci.database.AutonomousDatabaseInstanceWalletManagement("autonomousDatabaseInstanceWalletManagementResource", {
autonomousDatabaseId: "string",
gracePeriod: 0,
shouldRotate: false,
});
type: oci:Database:AutonomousDatabaseInstanceWalletManagement
properties:
autonomousDatabaseId: string
gracePeriod: 0
shouldRotate: false
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:
- Autonomous
Database stringId - (Updatable) The database OCID.
- Grace
Period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- Should
Rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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 stringId - (Updatable) The database OCID.
- Grace
Period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- Should
Rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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 StringId - (Updatable) The database OCID.
- grace
Period Integer - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate Boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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 stringId - (Updatable) The database OCID.
- grace
Period number - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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_ strid - (Updatable) The database OCID.
- grace_
period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should_
rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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 StringId - (Updatable) The database OCID.
- grace
Period Number - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate Boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
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.
- Time
Rotated 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.
- Time
Rotated 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.
- time
Rotated 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.
- time
Rotated 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.
- time
Rotated String - The date and time the wallet was last rotated.
Look up 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.
- Autonomous
Database stringId - (Updatable) The database OCID.
- Grace
Period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- Should
Rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- State string
- The current lifecycle state of the Autonomous Database wallet.
- Time
Rotated string - The date and time the wallet was last rotated.
- Autonomous
Database stringId - (Updatable) The database OCID.
- Grace
Period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- Should
Rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- State string
- The current lifecycle state of the Autonomous Database wallet.
- Time
Rotated string - The date and time the wallet was last rotated.
- autonomous
Database StringId - (Updatable) The database OCID.
- grace
Period Integer - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate Boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- state String
- The current lifecycle state of the Autonomous Database wallet.
- time
Rotated String - The date and time the wallet was last rotated.
- autonomous
Database stringId - (Updatable) The database OCID.
- grace
Period number - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- state string
- The current lifecycle state of the Autonomous Database wallet.
- time
Rotated string - The date and time the wallet was last rotated.
- autonomous_
database_ strid - (Updatable) The database OCID.
- grace_
period int - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should_
rotate bool (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- state str
- The current lifecycle state of the Autonomous Database wallet.
- time_
rotated str - The date and time the wallet was last rotated.
- autonomous
Database StringId - (Updatable) The database OCID.
- grace
Period Number - (Updatable) The number of hours that the old wallet can be used after it has been rotated. The old wallet will no longer be valid after the number of hours in the wallet rotation grace period has passed. During the grace period, both the old wallet and the current wallet can be used.
- should
Rotate Boolean (Updatable) Indicates whether to rotate the wallet or not. If
false
, the wallet will not be rotated. The default isfalse
.** 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
- state String
- The current lifecycle state of the Autonomous Database wallet.
- time
Rotated String - The date and time the wallet was last rotated.
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.