oci.Database.AutonomousDatabaseRegionalWalletManagement
Explore with Pulumi AI
This resource provides the Autonomous Database Regional Wallet Management resource in Oracle Cloud Infrastructure Database service.
Updates the Autonomous Database regional wallet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseRegionalWalletManagement = new oci.database.AutonomousDatabaseRegionalWalletManagement("test_autonomous_database_regional_wallet_management", {
gracePeriod: autonomousDatabaseRegionalWalletManagementGracePeriod,
shouldRotate: autonomousDatabaseRegionalWalletManagementShouldRotate,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_regional_wallet_management = oci.database.AutonomousDatabaseRegionalWalletManagement("test_autonomous_database_regional_wallet_management",
grace_period=autonomous_database_regional_wallet_management_grace_period,
should_rotate=autonomous_database_regional_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.NewAutonomousDatabaseRegionalWalletManagement(ctx, "test_autonomous_database_regional_wallet_management", &Database.AutonomousDatabaseRegionalWalletManagementArgs{
GracePeriod: pulumi.Any(autonomousDatabaseRegionalWalletManagementGracePeriod),
ShouldRotate: pulumi.Any(autonomousDatabaseRegionalWalletManagementShouldRotate),
})
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 testAutonomousDatabaseRegionalWalletManagement = new Oci.Database.AutonomousDatabaseRegionalWalletManagement("test_autonomous_database_regional_wallet_management", new()
{
GracePeriod = autonomousDatabaseRegionalWalletManagementGracePeriod,
ShouldRotate = autonomousDatabaseRegionalWalletManagementShouldRotate,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.AutonomousDatabaseRegionalWalletManagement;
import com.pulumi.oci.Database.AutonomousDatabaseRegionalWalletManagementArgs;
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 testAutonomousDatabaseRegionalWalletManagement = new AutonomousDatabaseRegionalWalletManagement("testAutonomousDatabaseRegionalWalletManagement", AutonomousDatabaseRegionalWalletManagementArgs.builder()
.gracePeriod(autonomousDatabaseRegionalWalletManagementGracePeriod)
.shouldRotate(autonomousDatabaseRegionalWalletManagementShouldRotate)
.build());
}
}
resources:
testAutonomousDatabaseRegionalWalletManagement:
type: oci:Database:AutonomousDatabaseRegionalWalletManagement
name: test_autonomous_database_regional_wallet_management
properties:
gracePeriod: ${autonomousDatabaseRegionalWalletManagementGracePeriod}
shouldRotate: ${autonomousDatabaseRegionalWalletManagementShouldRotate}
Create AutonomousDatabaseRegionalWalletManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutonomousDatabaseRegionalWalletManagement(name: string, args?: AutonomousDatabaseRegionalWalletManagementArgs, opts?: CustomResourceOptions);
@overload
def AutonomousDatabaseRegionalWalletManagement(resource_name: str,
args: Optional[AutonomousDatabaseRegionalWalletManagementArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AutonomousDatabaseRegionalWalletManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
grace_period: Optional[int] = None,
should_rotate: Optional[bool] = None)
func NewAutonomousDatabaseRegionalWalletManagement(ctx *Context, name string, args *AutonomousDatabaseRegionalWalletManagementArgs, opts ...ResourceOption) (*AutonomousDatabaseRegionalWalletManagement, error)
public AutonomousDatabaseRegionalWalletManagement(string name, AutonomousDatabaseRegionalWalletManagementArgs? args = null, CustomResourceOptions? opts = null)
public AutonomousDatabaseRegionalWalletManagement(String name, AutonomousDatabaseRegionalWalletManagementArgs args)
public AutonomousDatabaseRegionalWalletManagement(String name, AutonomousDatabaseRegionalWalletManagementArgs args, CustomResourceOptions options)
type: oci:Database:AutonomousDatabaseRegionalWalletManagement
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 AutonomousDatabaseRegionalWalletManagementArgs
- 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 AutonomousDatabaseRegionalWalletManagementArgs
- 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 AutonomousDatabaseRegionalWalletManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutonomousDatabaseRegionalWalletManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutonomousDatabaseRegionalWalletManagementArgs
- 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 autonomousDatabaseRegionalWalletManagementResource = new Oci.Database.AutonomousDatabaseRegionalWalletManagement("autonomousDatabaseRegionalWalletManagementResource", new()
{
GracePeriod = 0,
ShouldRotate = false,
});
example, err := Database.NewAutonomousDatabaseRegionalWalletManagement(ctx, "autonomousDatabaseRegionalWalletManagementResource", &Database.AutonomousDatabaseRegionalWalletManagementArgs{
GracePeriod: pulumi.Int(0),
ShouldRotate: pulumi.Bool(false),
})
var autonomousDatabaseRegionalWalletManagementResource = new AutonomousDatabaseRegionalWalletManagement("autonomousDatabaseRegionalWalletManagementResource", AutonomousDatabaseRegionalWalletManagementArgs.builder()
.gracePeriod(0)
.shouldRotate(false)
.build());
autonomous_database_regional_wallet_management_resource = oci.database.AutonomousDatabaseRegionalWalletManagement("autonomousDatabaseRegionalWalletManagementResource",
grace_period=0,
should_rotate=False)
const autonomousDatabaseRegionalWalletManagementResource = new oci.database.AutonomousDatabaseRegionalWalletManagement("autonomousDatabaseRegionalWalletManagementResource", {
gracePeriod: 0,
shouldRotate: false,
});
type: oci:Database:AutonomousDatabaseRegionalWalletManagement
properties:
gracePeriod: 0
shouldRotate: false
AutonomousDatabaseRegionalWalletManagement 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 AutonomousDatabaseRegionalWalletManagement resource accepts the following input properties:
- 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
- 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
- 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
- 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
- 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
- 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 AutonomousDatabaseRegionalWalletManagement 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 AutonomousDatabaseRegionalWalletManagement Resource
Get an existing AutonomousDatabaseRegionalWalletManagement 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?: AutonomousDatabaseRegionalWalletManagementState, opts?: CustomResourceOptions): AutonomousDatabaseRegionalWalletManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
grace_period: Optional[int] = None,
should_rotate: Optional[bool] = None,
state: Optional[str] = None,
time_rotated: Optional[str] = None) -> AutonomousDatabaseRegionalWalletManagement
func GetAutonomousDatabaseRegionalWalletManagement(ctx *Context, name string, id IDInput, state *AutonomousDatabaseRegionalWalletManagementState, opts ...ResourceOption) (*AutonomousDatabaseRegionalWalletManagement, error)
public static AutonomousDatabaseRegionalWalletManagement Get(string name, Input<string> id, AutonomousDatabaseRegionalWalletManagementState? state, CustomResourceOptions? opts = null)
public static AutonomousDatabaseRegionalWalletManagement get(String name, Output<String> id, AutonomousDatabaseRegionalWalletManagementState 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.