gcp.alloydb.Backup
Explore with Pulumi AI
An AlloyDB Backup.
To get more information about Backup, see:
- API documentation
- How-to Guides
Example Usage
Alloydb Backup Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {name: "alloydb-network"});
const defaultCluster = new gcp.alloydb.Cluster("default", {
clusterId: "alloydb-cluster",
location: "us-central1",
networkConfig: {
network: defaultNetwork.id,
},
});
const privateIpAlloc = new gcp.compute.GlobalAddress("private_ip_alloc", {
name: "alloydb-cluster",
addressType: "INTERNAL",
purpose: "VPC_PEERING",
prefixLength: 16,
network: defaultNetwork.id,
});
const vpcConnection = new gcp.servicenetworking.Connection("vpc_connection", {
network: defaultNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [privateIpAlloc.name],
});
const defaultInstance = new gcp.alloydb.Instance("default", {
cluster: defaultCluster.name,
instanceId: "alloydb-instance",
instanceType: "PRIMARY",
}, {
dependsOn: [vpcConnection],
});
const _default = new gcp.alloydb.Backup("default", {
location: "us-central1",
backupId: "alloydb-backup",
clusterName: defaultCluster.name,
}, {
dependsOn: [defaultInstance],
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default", name="alloydb-network")
default_cluster = gcp.alloydb.Cluster("default",
cluster_id="alloydb-cluster",
location="us-central1",
network_config={
"network": default_network.id,
})
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
name="alloydb-cluster",
address_type="INTERNAL",
purpose="VPC_PEERING",
prefix_length=16,
network=default_network.id)
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
network=default_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[private_ip_alloc.name])
default_instance = gcp.alloydb.Instance("default",
cluster=default_cluster.name,
instance_id="alloydb-instance",
instance_type="PRIMARY",
opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
default = gcp.alloydb.Backup("default",
location="us-central1",
backup_id="alloydb-backup",
cluster_name=default_cluster.name,
opts = pulumi.ResourceOptions(depends_on=[default_instance]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/alloydb"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("alloydb-network"),
})
if err != nil {
return err
}
defaultCluster, err := alloydb.NewCluster(ctx, "default", &alloydb.ClusterArgs{
ClusterId: pulumi.String("alloydb-cluster"),
Location: pulumi.String("us-central1"),
NetworkConfig: &alloydb.ClusterNetworkConfigArgs{
Network: defaultNetwork.ID(),
},
})
if err != nil {
return err
}
privateIpAlloc, err := compute.NewGlobalAddress(ctx, "private_ip_alloc", &compute.GlobalAddressArgs{
Name: pulumi.String("alloydb-cluster"),
AddressType: pulumi.String("INTERNAL"),
Purpose: pulumi.String("VPC_PEERING"),
PrefixLength: pulumi.Int(16),
Network: defaultNetwork.ID(),
})
if err != nil {
return err
}
vpcConnection, err := servicenetworking.NewConnection(ctx, "vpc_connection", &servicenetworking.ConnectionArgs{
Network: defaultNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
privateIpAlloc.Name,
},
})
if err != nil {
return err
}
defaultInstance, err := alloydb.NewInstance(ctx, "default", &alloydb.InstanceArgs{
Cluster: defaultCluster.Name,
InstanceId: pulumi.String("alloydb-instance"),
InstanceType: pulumi.String("PRIMARY"),
}, pulumi.DependsOn([]pulumi.Resource{
vpcConnection,
}))
if err != nil {
return err
}
_, err = alloydb.NewBackup(ctx, "default", &alloydb.BackupArgs{
Location: pulumi.String("us-central1"),
BackupId: pulumi.String("alloydb-backup"),
ClusterName: defaultCluster.Name,
}, pulumi.DependsOn([]pulumi.Resource{
defaultInstance,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "alloydb-network",
});
var defaultCluster = new Gcp.Alloydb.Cluster("default", new()
{
ClusterId = "alloydb-cluster",
Location = "us-central1",
NetworkConfig = new Gcp.Alloydb.Inputs.ClusterNetworkConfigArgs
{
Network = defaultNetwork.Id,
},
});
var privateIpAlloc = new Gcp.Compute.GlobalAddress("private_ip_alloc", new()
{
Name = "alloydb-cluster",
AddressType = "INTERNAL",
Purpose = "VPC_PEERING",
PrefixLength = 16,
Network = defaultNetwork.Id,
});
var vpcConnection = new Gcp.ServiceNetworking.Connection("vpc_connection", new()
{
Network = defaultNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
privateIpAlloc.Name,
},
});
var defaultInstance = new Gcp.Alloydb.Instance("default", new()
{
Cluster = defaultCluster.Name,
InstanceId = "alloydb-instance",
InstanceType = "PRIMARY",
}, new CustomResourceOptions
{
DependsOn =
{
vpcConnection,
},
});
var @default = new Gcp.Alloydb.Backup("default", new()
{
Location = "us-central1",
BackupId = "alloydb-backup",
ClusterName = defaultCluster.Name,
}, new CustomResourceOptions
{
DependsOn =
{
defaultInstance,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.alloydb.Cluster;
import com.pulumi.gcp.alloydb.ClusterArgs;
import com.pulumi.gcp.alloydb.inputs.ClusterNetworkConfigArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.alloydb.Instance;
import com.pulumi.gcp.alloydb.InstanceArgs;
import com.pulumi.gcp.alloydb.Backup;
import com.pulumi.gcp.alloydb.BackupArgs;
import com.pulumi.resources.CustomResourceOptions;
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 defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("alloydb-network")
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterId("alloydb-cluster")
.location("us-central1")
.networkConfig(ClusterNetworkConfigArgs.builder()
.network(defaultNetwork.id())
.build())
.build());
var privateIpAlloc = new GlobalAddress("privateIpAlloc", GlobalAddressArgs.builder()
.name("alloydb-cluster")
.addressType("INTERNAL")
.purpose("VPC_PEERING")
.prefixLength(16)
.network(defaultNetwork.id())
.build());
var vpcConnection = new Connection("vpcConnection", ConnectionArgs.builder()
.network(defaultNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(privateIpAlloc.name())
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cluster(defaultCluster.name())
.instanceId("alloydb-instance")
.instanceType("PRIMARY")
.build(), CustomResourceOptions.builder()
.dependsOn(vpcConnection)
.build());
var default_ = new Backup("default", BackupArgs.builder()
.location("us-central1")
.backupId("alloydb-backup")
.clusterName(defaultCluster.name())
.build(), CustomResourceOptions.builder()
.dependsOn(defaultInstance)
.build());
}
}
resources:
default:
type: gcp:alloydb:Backup
properties:
location: us-central1
backupId: alloydb-backup
clusterName: ${defaultCluster.name}
options:
dependson:
- ${defaultInstance}
defaultCluster:
type: gcp:alloydb:Cluster
name: default
properties:
clusterId: alloydb-cluster
location: us-central1
networkConfig:
network: ${defaultNetwork.id}
defaultInstance:
type: gcp:alloydb:Instance
name: default
properties:
cluster: ${defaultCluster.name}
instanceId: alloydb-instance
instanceType: PRIMARY
options:
dependson:
- ${vpcConnection}
privateIpAlloc:
type: gcp:compute:GlobalAddress
name: private_ip_alloc
properties:
name: alloydb-cluster
addressType: INTERNAL
purpose: VPC_PEERING
prefixLength: 16
network: ${defaultNetwork.id}
vpcConnection:
type: gcp:servicenetworking:Connection
name: vpc_connection
properties:
network: ${defaultNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${privateIpAlloc.name}
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: alloydb-network
Alloydb Backup Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultNetwork = new gcp.compute.Network("default", {name: "alloydb-network"});
const defaultCluster = new gcp.alloydb.Cluster("default", {
clusterId: "alloydb-cluster",
location: "us-central1",
networkConfig: {
network: defaultNetwork.id,
},
});
const privateIpAlloc = new gcp.compute.GlobalAddress("private_ip_alloc", {
name: "alloydb-cluster",
addressType: "INTERNAL",
purpose: "VPC_PEERING",
prefixLength: 16,
network: defaultNetwork.id,
});
const vpcConnection = new gcp.servicenetworking.Connection("vpc_connection", {
network: defaultNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [privateIpAlloc.name],
});
const defaultInstance = new gcp.alloydb.Instance("default", {
cluster: defaultCluster.name,
instanceId: "alloydb-instance",
instanceType: "PRIMARY",
}, {
dependsOn: [vpcConnection],
});
const _default = new gcp.alloydb.Backup("default", {
location: "us-central1",
backupId: "alloydb-backup",
clusterName: defaultCluster.name,
description: "example description",
type: "ON_DEMAND",
labels: {
label: "key",
},
}, {
dependsOn: [defaultInstance],
});
import pulumi
import pulumi_gcp as gcp
default_network = gcp.compute.Network("default", name="alloydb-network")
default_cluster = gcp.alloydb.Cluster("default",
cluster_id="alloydb-cluster",
location="us-central1",
network_config={
"network": default_network.id,
})
private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
name="alloydb-cluster",
address_type="INTERNAL",
purpose="VPC_PEERING",
prefix_length=16,
network=default_network.id)
vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
network=default_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[private_ip_alloc.name])
default_instance = gcp.alloydb.Instance("default",
cluster=default_cluster.name,
instance_id="alloydb-instance",
instance_type="PRIMARY",
opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
default = gcp.alloydb.Backup("default",
location="us-central1",
backup_id="alloydb-backup",
cluster_name=default_cluster.name,
description="example description",
type="ON_DEMAND",
labels={
"label": "key",
},
opts = pulumi.ResourceOptions(depends_on=[default_instance]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/alloydb"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
Name: pulumi.String("alloydb-network"),
})
if err != nil {
return err
}
defaultCluster, err := alloydb.NewCluster(ctx, "default", &alloydb.ClusterArgs{
ClusterId: pulumi.String("alloydb-cluster"),
Location: pulumi.String("us-central1"),
NetworkConfig: &alloydb.ClusterNetworkConfigArgs{
Network: defaultNetwork.ID(),
},
})
if err != nil {
return err
}
privateIpAlloc, err := compute.NewGlobalAddress(ctx, "private_ip_alloc", &compute.GlobalAddressArgs{
Name: pulumi.String("alloydb-cluster"),
AddressType: pulumi.String("INTERNAL"),
Purpose: pulumi.String("VPC_PEERING"),
PrefixLength: pulumi.Int(16),
Network: defaultNetwork.ID(),
})
if err != nil {
return err
}
vpcConnection, err := servicenetworking.NewConnection(ctx, "vpc_connection", &servicenetworking.ConnectionArgs{
Network: defaultNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
privateIpAlloc.Name,
},
})
if err != nil {
return err
}
defaultInstance, err := alloydb.NewInstance(ctx, "default", &alloydb.InstanceArgs{
Cluster: defaultCluster.Name,
InstanceId: pulumi.String("alloydb-instance"),
InstanceType: pulumi.String("PRIMARY"),
}, pulumi.DependsOn([]pulumi.Resource{
vpcConnection,
}))
if err != nil {
return err
}
_, err = alloydb.NewBackup(ctx, "default", &alloydb.BackupArgs{
Location: pulumi.String("us-central1"),
BackupId: pulumi.String("alloydb-backup"),
ClusterName: defaultCluster.Name,
Description: pulumi.String("example description"),
Type: pulumi.String("ON_DEMAND"),
Labels: pulumi.StringMap{
"label": pulumi.String("key"),
},
}, pulumi.DependsOn([]pulumi.Resource{
defaultInstance,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultNetwork = new Gcp.Compute.Network("default", new()
{
Name = "alloydb-network",
});
var defaultCluster = new Gcp.Alloydb.Cluster("default", new()
{
ClusterId = "alloydb-cluster",
Location = "us-central1",
NetworkConfig = new Gcp.Alloydb.Inputs.ClusterNetworkConfigArgs
{
Network = defaultNetwork.Id,
},
});
var privateIpAlloc = new Gcp.Compute.GlobalAddress("private_ip_alloc", new()
{
Name = "alloydb-cluster",
AddressType = "INTERNAL",
Purpose = "VPC_PEERING",
PrefixLength = 16,
Network = defaultNetwork.Id,
});
var vpcConnection = new Gcp.ServiceNetworking.Connection("vpc_connection", new()
{
Network = defaultNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
privateIpAlloc.Name,
},
});
var defaultInstance = new Gcp.Alloydb.Instance("default", new()
{
Cluster = defaultCluster.Name,
InstanceId = "alloydb-instance",
InstanceType = "PRIMARY",
}, new CustomResourceOptions
{
DependsOn =
{
vpcConnection,
},
});
var @default = new Gcp.Alloydb.Backup("default", new()
{
Location = "us-central1",
BackupId = "alloydb-backup",
ClusterName = defaultCluster.Name,
Description = "example description",
Type = "ON_DEMAND",
Labels =
{
{ "label", "key" },
},
}, new CustomResourceOptions
{
DependsOn =
{
defaultInstance,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.alloydb.Cluster;
import com.pulumi.gcp.alloydb.ClusterArgs;
import com.pulumi.gcp.alloydb.inputs.ClusterNetworkConfigArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.alloydb.Instance;
import com.pulumi.gcp.alloydb.InstanceArgs;
import com.pulumi.gcp.alloydb.Backup;
import com.pulumi.gcp.alloydb.BackupArgs;
import com.pulumi.resources.CustomResourceOptions;
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 defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.name("alloydb-network")
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterId("alloydb-cluster")
.location("us-central1")
.networkConfig(ClusterNetworkConfigArgs.builder()
.network(defaultNetwork.id())
.build())
.build());
var privateIpAlloc = new GlobalAddress("privateIpAlloc", GlobalAddressArgs.builder()
.name("alloydb-cluster")
.addressType("INTERNAL")
.purpose("VPC_PEERING")
.prefixLength(16)
.network(defaultNetwork.id())
.build());
var vpcConnection = new Connection("vpcConnection", ConnectionArgs.builder()
.network(defaultNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(privateIpAlloc.name())
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cluster(defaultCluster.name())
.instanceId("alloydb-instance")
.instanceType("PRIMARY")
.build(), CustomResourceOptions.builder()
.dependsOn(vpcConnection)
.build());
var default_ = new Backup("default", BackupArgs.builder()
.location("us-central1")
.backupId("alloydb-backup")
.clusterName(defaultCluster.name())
.description("example description")
.type("ON_DEMAND")
.labels(Map.of("label", "key"))
.build(), CustomResourceOptions.builder()
.dependsOn(defaultInstance)
.build());
}
}
resources:
default:
type: gcp:alloydb:Backup
properties:
location: us-central1
backupId: alloydb-backup
clusterName: ${defaultCluster.name}
description: example description
type: ON_DEMAND
labels:
label: key
options:
dependson:
- ${defaultInstance}
defaultCluster:
type: gcp:alloydb:Cluster
name: default
properties:
clusterId: alloydb-cluster
location: us-central1
networkConfig:
network: ${defaultNetwork.id}
defaultInstance:
type: gcp:alloydb:Instance
name: default
properties:
cluster: ${defaultCluster.name}
instanceId: alloydb-instance
instanceType: PRIMARY
options:
dependson:
- ${vpcConnection}
privateIpAlloc:
type: gcp:compute:GlobalAddress
name: private_ip_alloc
properties:
name: alloydb-cluster
addressType: INTERNAL
purpose: VPC_PEERING
prefixLength: 16
network: ${defaultNetwork.id}
vpcConnection:
type: gcp:servicenetworking:Connection
name: vpc_connection
properties:
network: ${defaultNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${privateIpAlloc.name}
defaultNetwork:
type: gcp:compute:Network
name: default
properties:
name: alloydb-network
Create Backup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
@overload
def Backup(resource_name: str,
args: BackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Backup(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_id: Optional[str] = None,
cluster_name: Optional[str] = None,
location: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
encryption_config: Optional[BackupEncryptionConfigArgs] = None,
labels: Optional[Mapping[str, str]] = None,
project: Optional[str] = None,
type: Optional[str] = None)
func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)
public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
public Backup(String name, BackupArgs args)
public Backup(String name, BackupArgs args, CustomResourceOptions options)
type: gcp:alloydb:Backup
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 BackupArgs
- 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 BackupArgs
- 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 BackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupArgs
- 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 backupResource = new Gcp.Alloydb.Backup("backupResource", new()
{
BackupId = "string",
ClusterName = "string",
Location = "string",
Annotations =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
EncryptionConfig = new Gcp.Alloydb.Inputs.BackupEncryptionConfigArgs
{
KmsKeyName = "string",
},
Labels =
{
{ "string", "string" },
},
Project = "string",
Type = "string",
});
example, err := alloydb.NewBackup(ctx, "backupResource", &alloydb.BackupArgs{
BackupId: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Location: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EncryptionConfig: &alloydb.BackupEncryptionConfigArgs{
KmsKeyName: pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
Type: pulumi.String("string"),
})
var backupResource = new Backup("backupResource", BackupArgs.builder()
.backupId("string")
.clusterName("string")
.location("string")
.annotations(Map.of("string", "string"))
.description("string")
.displayName("string")
.encryptionConfig(BackupEncryptionConfigArgs.builder()
.kmsKeyName("string")
.build())
.labels(Map.of("string", "string"))
.project("string")
.type("string")
.build());
backup_resource = gcp.alloydb.Backup("backupResource",
backup_id="string",
cluster_name="string",
location="string",
annotations={
"string": "string",
},
description="string",
display_name="string",
encryption_config={
"kms_key_name": "string",
},
labels={
"string": "string",
},
project="string",
type="string")
const backupResource = new gcp.alloydb.Backup("backupResource", {
backupId: "string",
clusterName: "string",
location: "string",
annotations: {
string: "string",
},
description: "string",
displayName: "string",
encryptionConfig: {
kmsKeyName: "string",
},
labels: {
string: "string",
},
project: "string",
type: "string",
});
type: gcp:alloydb:Backup
properties:
annotations:
string: string
backupId: string
clusterName: string
description: string
displayName: string
encryptionConfig:
kmsKeyName: string
labels:
string: string
location: string
project: string
type: string
Backup 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 Backup resource accepts the following input properties:
- Backup
Id string - The ID of the alloydb backup.
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- Location string
- The location where the alloydb backup should reside.
- Annotations Dictionary<string, string>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- Labels Dictionary<string, string>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
- Backup
Id string - The ID of the alloydb backup.
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- Location string
- The location where the alloydb backup should reside.
- Annotations map[string]string
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Encryption
Config BackupEncryption Config Args - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- Labels map[string]string
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
- backup
Id String - The ID of the alloydb backup.
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- location String
- The location where the alloydb backup should reside.
- annotations Map<String,String>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- labels Map<String,String>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type String
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
- backup
Id string - The ID of the alloydb backup.
- cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- location string
- The location where the alloydb backup should reside.
- annotations {[key: string]: string}
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- description string
- User-provided description of the backup.
- display
Name string - User-settable and human-readable display name for the Backup.
- encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- labels {[key: string]: string}
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
- backup_
id str - The ID of the alloydb backup.
- cluster_
name str - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- location str
- The location where the alloydb backup should reside.
- annotations Mapping[str, str]
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- description str
- User-provided description of the backup.
- display_
name str - User-settable and human-readable display name for the Backup.
- encryption_
config BackupEncryption Config Args - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- labels Mapping[str, str]
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type str
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
- backup
Id String - The ID of the alloydb backup.
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- location String
- The location where the alloydb backup should reside.
- annotations Map<String>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- encryption
Config Property Map - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- labels Map<String>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- type String
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:
- Cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Effective
Annotations Dictionary<string, string> - Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Encryption
Infos List<BackupEncryption Info> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantities List<BackupExpiry Quantity> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- Expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- Size
Bytes string - Output only. The size of the backup in bytes.
- State string
- Output only. The current state of the backup.
- Uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Effective
Annotations map[string]string - Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Encryption
Infos []BackupEncryption Info - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantities []BackupExpiry Quantity - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- Expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- Size
Bytes string - Output only. The size of the backup in bytes.
- State string
- Output only. The current state of the backup.
- Uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- cluster
Uid String - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time String - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- effective
Annotations Map<String,String> - effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Infos List<BackupEncryption Info> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities List<BackupExpiry Quantity> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time String - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes String - Output only. The size of the backup in bytes.
- state String
- Output only. The current state of the backup.
- uid String
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- effective
Annotations {[key: string]: string} - effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Infos BackupEncryption Info[] - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag string
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities BackupExpiry Quantity[] - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes string - Output only. The size of the backup in bytes.
- state string
- Output only. The current state of the backup.
- uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- cluster_
uid str - Output only. The system-generated UID of the cluster which was used to create this resource.
- create_
time str - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete_
time str - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- effective_
annotations Mapping[str, str] - effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption_
infos Sequence[BackupEncryption Info] - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag str
- For Resource freshness validation (https://google.aip.dev/154)
- expiry_
quantities Sequence[BackupExpiry Quantity] - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry_
time str - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size_
bytes str - Output only. The size of the backup in bytes.
- state str
- Output only. The current state of the backup.
- uid str
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update_
time str - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- cluster
Uid String - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time String - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- effective
Annotations Map<String> - effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Infos List<Property Map> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities List<Property Map> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time String - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes String - Output only. The size of the backup in bytes.
- state String
- Output only. The current state of the backup.
- uid String
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
Look up Existing Backup Resource
Get an existing Backup 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?: BackupState, opts?: CustomResourceOptions): Backup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
backup_id: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_uid: Optional[str] = None,
create_time: Optional[str] = None,
delete_time: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
effective_annotations: Optional[Mapping[str, str]] = None,
effective_labels: Optional[Mapping[str, str]] = None,
encryption_config: Optional[BackupEncryptionConfigArgs] = None,
encryption_infos: Optional[Sequence[BackupEncryptionInfoArgs]] = None,
etag: Optional[str] = None,
expiry_quantities: Optional[Sequence[BackupExpiryQuantityArgs]] = None,
expiry_time: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
reconciling: Optional[bool] = None,
size_bytes: Optional[str] = None,
state: Optional[str] = None,
type: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> Backup
func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
public static Backup get(String name, Output<String> id, BackupState 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.
- Annotations Dictionary<string, string>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- Backup
Id string - The ID of the alloydb backup.
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- Cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Effective
Annotations Dictionary<string, string> - Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- Encryption
Infos List<BackupEncryption Info> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantities List<BackupExpiry Quantity> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- Expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- Labels Dictionary<string, string>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location where the alloydb backup should reside.
- Name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- Size
Bytes string - Output only. The size of the backup in bytes.
- State string
- Output only. The current state of the backup.
- Type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - Uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Annotations map[string]string
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- Backup
Id string - The ID of the alloydb backup.
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- Cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Effective
Annotations map[string]string - Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Encryption
Config BackupEncryption Config Args - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- Encryption
Infos []BackupEncryption Info Args - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantities []BackupExpiry Quantity Args - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- Expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- Labels map[string]string
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The location where the alloydb backup should reside.
- Name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- Size
Bytes string - Output only. The size of the backup in bytes.
- State string
- Output only. The current state of the backup.
- Type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - Uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- annotations Map<String,String>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- backup
Id String - The ID of the alloydb backup.
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- cluster
Uid String - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time String - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- effective
Annotations Map<String,String> - effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- encryption
Infos List<BackupEncryption Info> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities List<BackupExpiry Quantity> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time String - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- labels Map<String,String>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location where the alloydb backup should reside.
- name String
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes String - Output only. The size of the backup in bytes.
- state String
- Output only. The current state of the backup.
- type String
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - uid String
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- annotations {[key: string]: string}
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- backup
Id string - The ID of the alloydb backup.
- cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- cluster
Uid string - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time string - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time string - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- description string
- User-provided description of the backup.
- display
Name string - User-settable and human-readable display name for the Backup.
- effective
Annotations {[key: string]: string} - effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Config BackupEncryption Config - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- encryption
Infos BackupEncryption Info[] - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag string
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities BackupExpiry Quantity[] - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time string - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- labels {[key: string]: string}
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- The location where the alloydb backup should reside.
- name string
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes string - Output only. The size of the backup in bytes.
- state string
- Output only. The current state of the backup.
- type string
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - uid string
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time string - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- annotations Mapping[str, str]
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- backup_
id str - The ID of the alloydb backup.
- cluster_
name str - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- cluster_
uid str - Output only. The system-generated UID of the cluster which was used to create this resource.
- create_
time str - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete_
time str - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- description str
- User-provided description of the backup.
- display_
name str - User-settable and human-readable display name for the Backup.
- effective_
annotations Mapping[str, str] - effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption_
config BackupEncryption Config Args - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- encryption_
infos Sequence[BackupEncryption Info Args] - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag str
- For Resource freshness validation (https://google.aip.dev/154)
- expiry_
quantities Sequence[BackupExpiry Quantity Args] - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry_
time str - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- labels Mapping[str, str]
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- The location where the alloydb backup should reside.
- name str
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling bool
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size_
bytes str - Output only. The size of the backup in bytes.
- state str
- Output only. The current state of the backup.
- type str
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - uid str
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update_
time str - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- annotations Map<String>
Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
effective_annotations
for all of the annotations present on the resource.- backup
Id String - The ID of the alloydb backup.
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{location}/clusters/{clusterId}).
- cluster
Uid String - Output only. The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Output only. Create time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- delete
Time String - Output only. Delete time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- effective
Annotations Map<String> - effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- encryption
Config Property Map - EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
- encryption
Infos List<Property Map> - EncryptionInfo describes the encryption information of a cluster or a backup. Structure is documented below.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantities List<Property Map> - Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected. Structure is documented below.
- expiry
Time String - Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's createTime.
- labels Map<String>
User-defined labels for the alloydb backup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The location where the alloydb backup should reside.
- name String
- Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backupId}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.
- size
Bytes String - Output only. The size of the backup in bytes.
- state String
- Output only. The current state of the backup.
- type String
- The backup type, which suggests the trigger for the backup.
Possible values are:
TYPE_UNSPECIFIED
,ON_DEMAND
,AUTOMATED
,CONTINUOUS
. - uid String
- Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Output only. Update time stamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
Supporting Types
BackupEncryptionConfig, BackupEncryptionConfigArgs
- Kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
- Kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
- kms
Key StringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
- kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
- kms_
key_ strname - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
- kms
Key StringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME].
BackupEncryptionInfo, BackupEncryptionInfoArgs
- Encryption
Type string - (Output) Output only. Type of encryption.
- Kms
Key List<string>Versions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
- Encryption
Type string - (Output) Output only. Type of encryption.
- Kms
Key []stringVersions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type String - (Output) Output only. Type of encryption.
- kms
Key List<String>Versions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type string - (Output) Output only. Type of encryption.
- kms
Key string[]Versions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
- encryption_
type str - (Output) Output only. Type of encryption.
- kms_
key_ Sequence[str]versions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type String - (Output) Output only. Type of encryption.
- kms
Key List<String>Versions - (Output) Output only. Cloud KMS key versions that are being used to protect the database or the backup.
BackupExpiryQuantity, BackupExpiryQuantityArgs
- Retention
Count int - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- Total
Retention intCount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
- Retention
Count int - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- Total
Retention intCount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count Integer - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- total
Retention IntegerCount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count number - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- total
Retention numberCount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
- retention_
count int - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- total_
retention_ intcount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count Number - (Output) Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time (i.e. newest first).
- total
Retention NumberCount - (Output) Output only. The length of the quantity-based queue, specified by the backup's retention policy.
Import
Backup can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/backups/{{backup_id}}
{{project}}/{{location}}/{{backup_id}}
{{location}}/{{backup_id}}
When using the pulumi import
command, Backup can be imported using one of the formats above. For example:
$ pulumi import gcp:alloydb/backup:Backup default projects/{{project}}/locations/{{location}}/backups/{{backup_id}}
$ pulumi import gcp:alloydb/backup:Backup default {{project}}/{{location}}/{{backup_id}}
$ pulumi import gcp:alloydb/backup:Backup default {{location}}/{{backup_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.