1. Packages
  2. Scaleway
  3. API Docs
  4. DocumentdbReadReplica
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.DocumentdbReadReplica

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Creates and manages Scaleway DocumentDB Database read replicas. For more information, see the documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const replica = new scaleway.DocumentdbReadReplica("replica", {
        directAccess: {},
        instanceId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    replica = scaleway.DocumentdbReadReplica("replica",
        direct_access=scaleway.DocumentdbReadReplicaDirectAccessArgs(),
        instance_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewDocumentdbReadReplica(ctx, "replica", &scaleway.DocumentdbReadReplicaArgs{
    			DirectAccess: nil,
    			InstanceId:   pulumi.String("11111111-1111-1111-1111-111111111111"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var replica = new Scaleway.DocumentdbReadReplica("replica", new()
        {
            DirectAccess = null,
            InstanceId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.DocumentdbReadReplica;
    import com.pulumi.scaleway.DocumentdbReadReplicaArgs;
    import com.pulumi.scaleway.inputs.DocumentdbReadReplicaDirectAccessArgs;
    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 replica = new DocumentdbReadReplica("replica", DocumentdbReadReplicaArgs.builder()        
                .directAccess()
                .instanceId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    resources:
      replica:
        type: scaleway:DocumentdbReadReplica
        properties:
          directAccess: {}
          instanceId: 11111111-1111-1111-1111-111111111111
    

    Private network

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const pn = new scaleway.VpcPrivateNetwork("pn", {});
    const replica = new scaleway.DocumentdbReadReplica("replica", {
        instanceId: scaleway_rdb_instance.instance.id,
        privateNetwork: {
            privateNetworkId: pn.id,
            serviceIp: "192.168.1.254/24",
        },
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    pn = scaleway.VpcPrivateNetwork("pn")
    replica = scaleway.DocumentdbReadReplica("replica",
        instance_id=scaleway_rdb_instance["instance"]["id"],
        private_network=scaleway.DocumentdbReadReplicaPrivateNetworkArgs(
            private_network_id=pn.id,
            service_ip="192.168.1.254/24",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		pn, err := scaleway.NewVpcPrivateNetwork(ctx, "pn", nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewDocumentdbReadReplica(ctx, "replica", &scaleway.DocumentdbReadReplicaArgs{
    			InstanceId: pulumi.Any(scaleway_rdb_instance.Instance.Id),
    			PrivateNetwork: &scaleway.DocumentdbReadReplicaPrivateNetworkArgs{
    				PrivateNetworkId: pn.ID(),
    				ServiceIp:        pulumi.String("192.168.1.254/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var pn = new Scaleway.VpcPrivateNetwork("pn");
    
        var replica = new Scaleway.DocumentdbReadReplica("replica", new()
        {
            InstanceId = scaleway_rdb_instance.Instance.Id,
            PrivateNetwork = new Scaleway.Inputs.DocumentdbReadReplicaPrivateNetworkArgs
            {
                PrivateNetworkId = pn.Id,
                ServiceIp = "192.168.1.254/24",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.VpcPrivateNetwork;
    import com.pulumi.scaleway.DocumentdbReadReplica;
    import com.pulumi.scaleway.DocumentdbReadReplicaArgs;
    import com.pulumi.scaleway.inputs.DocumentdbReadReplicaPrivateNetworkArgs;
    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 pn = new VpcPrivateNetwork("pn");
    
            var replica = new DocumentdbReadReplica("replica", DocumentdbReadReplicaArgs.builder()        
                .instanceId(scaleway_rdb_instance.instance().id())
                .privateNetwork(DocumentdbReadReplicaPrivateNetworkArgs.builder()
                    .privateNetworkId(pn.id())
                    .serviceIp("192.168.1.254/24")
                    .build())
                .build());
    
        }
    }
    
    resources:
      pn:
        type: scaleway:VpcPrivateNetwork
      replica:
        type: scaleway:DocumentdbReadReplica
        properties:
          instanceId: ${scaleway_rdb_instance.instance.id}
          privateNetwork:
            privateNetworkId: ${pn.id}
            serviceIp: 192.168.1.254/24
    

    Create DocumentdbReadReplica Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DocumentdbReadReplica(name: string, args: DocumentdbReadReplicaArgs, opts?: CustomResourceOptions);
    @overload
    def DocumentdbReadReplica(resource_name: str,
                              args: DocumentdbReadReplicaArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def DocumentdbReadReplica(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              instance_id: Optional[str] = None,
                              direct_access: Optional[DocumentdbReadReplicaDirectAccessArgs] = None,
                              private_network: Optional[DocumentdbReadReplicaPrivateNetworkArgs] = None,
                              region: Optional[str] = None)
    func NewDocumentdbReadReplica(ctx *Context, name string, args DocumentdbReadReplicaArgs, opts ...ResourceOption) (*DocumentdbReadReplica, error)
    public DocumentdbReadReplica(string name, DocumentdbReadReplicaArgs args, CustomResourceOptions? opts = null)
    public DocumentdbReadReplica(String name, DocumentdbReadReplicaArgs args)
    public DocumentdbReadReplica(String name, DocumentdbReadReplicaArgs args, CustomResourceOptions options)
    
    type: scaleway:DocumentdbReadReplica
    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 DocumentdbReadReplicaArgs
    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 DocumentdbReadReplicaArgs
    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 DocumentdbReadReplicaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DocumentdbReadReplicaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DocumentdbReadReplicaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var documentdbReadReplicaResource = new Scaleway.DocumentdbReadReplica("documentdbReadReplicaResource", new()
    {
        InstanceId = "string",
        DirectAccess = new Scaleway.Inputs.DocumentdbReadReplicaDirectAccessArgs
        {
            EndpointId = "string",
            Hostname = "string",
            Ip = "string",
            Name = "string",
            Port = 0,
        },
        PrivateNetwork = new Scaleway.Inputs.DocumentdbReadReplicaPrivateNetworkArgs
        {
            PrivateNetworkId = "string",
            EndpointId = "string",
            Hostname = "string",
            Ip = "string",
            Name = "string",
            Port = 0,
            ServiceIp = "string",
            Zone = "string",
        },
        Region = "string",
    });
    
    example, err := scaleway.NewDocumentdbReadReplica(ctx, "documentdbReadReplicaResource", &scaleway.DocumentdbReadReplicaArgs{
    	InstanceId: pulumi.String("string"),
    	DirectAccess: &scaleway.DocumentdbReadReplicaDirectAccessArgs{
    		EndpointId: pulumi.String("string"),
    		Hostname:   pulumi.String("string"),
    		Ip:         pulumi.String("string"),
    		Name:       pulumi.String("string"),
    		Port:       pulumi.Int(0),
    	},
    	PrivateNetwork: &scaleway.DocumentdbReadReplicaPrivateNetworkArgs{
    		PrivateNetworkId: pulumi.String("string"),
    		EndpointId:       pulumi.String("string"),
    		Hostname:         pulumi.String("string"),
    		Ip:               pulumi.String("string"),
    		Name:             pulumi.String("string"),
    		Port:             pulumi.Int(0),
    		ServiceIp:        pulumi.String("string"),
    		Zone:             pulumi.String("string"),
    	},
    	Region: pulumi.String("string"),
    })
    
    var documentdbReadReplicaResource = new DocumentdbReadReplica("documentdbReadReplicaResource", DocumentdbReadReplicaArgs.builder()        
        .instanceId("string")
        .directAccess(DocumentdbReadReplicaDirectAccessArgs.builder()
            .endpointId("string")
            .hostname("string")
            .ip("string")
            .name("string")
            .port(0)
            .build())
        .privateNetwork(DocumentdbReadReplicaPrivateNetworkArgs.builder()
            .privateNetworkId("string")
            .endpointId("string")
            .hostname("string")
            .ip("string")
            .name("string")
            .port(0)
            .serviceIp("string")
            .zone("string")
            .build())
        .region("string")
        .build());
    
    documentdb_read_replica_resource = scaleway.DocumentdbReadReplica("documentdbReadReplicaResource",
        instance_id="string",
        direct_access=scaleway.DocumentdbReadReplicaDirectAccessArgs(
            endpoint_id="string",
            hostname="string",
            ip="string",
            name="string",
            port=0,
        ),
        private_network=scaleway.DocumentdbReadReplicaPrivateNetworkArgs(
            private_network_id="string",
            endpoint_id="string",
            hostname="string",
            ip="string",
            name="string",
            port=0,
            service_ip="string",
            zone="string",
        ),
        region="string")
    
    const documentdbReadReplicaResource = new scaleway.DocumentdbReadReplica("documentdbReadReplicaResource", {
        instanceId: "string",
        directAccess: {
            endpointId: "string",
            hostname: "string",
            ip: "string",
            name: "string",
            port: 0,
        },
        privateNetwork: {
            privateNetworkId: "string",
            endpointId: "string",
            hostname: "string",
            ip: "string",
            name: "string",
            port: 0,
            serviceIp: "string",
            zone: "string",
        },
        region: "string",
    });
    
    type: scaleway:DocumentdbReadReplica
    properties:
        directAccess:
            endpointId: string
            hostname: string
            ip: string
            name: string
            port: 0
        instanceId: string
        privateNetwork:
            endpointId: string
            hostname: string
            ip: string
            name: string
            port: 0
            privateNetworkId: string
            serviceIp: string
            zone: string
        region: string
    

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

    InstanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    DirectAccess Pulumiverse.Scaleway.Inputs.DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    PrivateNetwork Pulumiverse.Scaleway.Inputs.DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    Region string
    region) The region in which the Database read replica should be created.
    InstanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    DirectAccess DocumentdbReadReplicaDirectAccessArgs
    Creates a direct access endpoint to documentdb replica.
    PrivateNetwork DocumentdbReadReplicaPrivateNetworkArgs
    Create an endpoint in a private network.
    Region string
    region) The region in which the Database read replica should be created.
    instanceId String

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    directAccess DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    privateNetwork DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    region String
    region) The region in which the Database read replica should be created.
    instanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    directAccess DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    privateNetwork DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    region string
    region) The region in which the Database read replica should be created.
    instance_id str

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    direct_access DocumentdbReadReplicaDirectAccessArgs
    Creates a direct access endpoint to documentdb replica.
    private_network DocumentdbReadReplicaPrivateNetworkArgs
    Create an endpoint in a private network.
    region str
    region) The region in which the Database read replica should be created.
    instanceId String

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    directAccess Property Map
    Creates a direct access endpoint to documentdb replica.
    privateNetwork Property Map
    Create an endpoint in a private network.
    region String
    region) The region in which the Database read replica should be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DocumentdbReadReplica Resource

    Get an existing DocumentdbReadReplica 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?: DocumentdbReadReplicaState, opts?: CustomResourceOptions): DocumentdbReadReplica
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            direct_access: Optional[DocumentdbReadReplicaDirectAccessArgs] = None,
            instance_id: Optional[str] = None,
            private_network: Optional[DocumentdbReadReplicaPrivateNetworkArgs] = None,
            region: Optional[str] = None) -> DocumentdbReadReplica
    func GetDocumentdbReadReplica(ctx *Context, name string, id IDInput, state *DocumentdbReadReplicaState, opts ...ResourceOption) (*DocumentdbReadReplica, error)
    public static DocumentdbReadReplica Get(string name, Input<string> id, DocumentdbReadReplicaState? state, CustomResourceOptions? opts = null)
    public static DocumentdbReadReplica get(String name, Output<String> id, DocumentdbReadReplicaState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DirectAccess Pulumiverse.Scaleway.Inputs.DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    InstanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    PrivateNetwork Pulumiverse.Scaleway.Inputs.DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    Region string
    region) The region in which the Database read replica should be created.
    DirectAccess DocumentdbReadReplicaDirectAccessArgs
    Creates a direct access endpoint to documentdb replica.
    InstanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    PrivateNetwork DocumentdbReadReplicaPrivateNetworkArgs
    Create an endpoint in a private network.
    Region string
    region) The region in which the Database read replica should be created.
    directAccess DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    instanceId String

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    privateNetwork DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    region String
    region) The region in which the Database read replica should be created.
    directAccess DocumentdbReadReplicaDirectAccess
    Creates a direct access endpoint to documentdb replica.
    instanceId string

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    privateNetwork DocumentdbReadReplicaPrivateNetwork
    Create an endpoint in a private network.
    region string
    region) The region in which the Database read replica should be created.
    direct_access DocumentdbReadReplicaDirectAccessArgs
    Creates a direct access endpoint to documentdb replica.
    instance_id str

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    private_network DocumentdbReadReplicaPrivateNetworkArgs
    Create an endpoint in a private network.
    region str
    region) The region in which the Database read replica should be created.
    directAccess Property Map
    Creates a direct access endpoint to documentdb replica.
    instanceId String

    UUID of the documentdb instance.

    Important: The replica musts contains at least one of direct_access or private_network. It can contain both.

    privateNetwork Property Map
    Create an endpoint in a private network.
    region String
    region) The region in which the Database read replica should be created.

    Supporting Types

    DocumentdbReadReplicaDirectAccess, DocumentdbReadReplicaDirectAccessArgs

    EndpointId string
    The ID of the endpoint of the read replica.
    Hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    Ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    Name string
    Name of the endpoint.
    Port int
    TCP port of the endpoint.
    EndpointId string
    The ID of the endpoint of the read replica.
    Hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    Ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    Name string
    Name of the endpoint.
    Port int
    TCP port of the endpoint.
    endpointId String
    The ID of the endpoint of the read replica.
    hostname String
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip String
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name String
    Name of the endpoint.
    port Integer
    TCP port of the endpoint.
    endpointId string
    The ID of the endpoint of the read replica.
    hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name string
    Name of the endpoint.
    port number
    TCP port of the endpoint.
    endpoint_id str
    The ID of the endpoint of the read replica.
    hostname str
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip str
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name str
    Name of the endpoint.
    port int
    TCP port of the endpoint.
    endpointId String
    The ID of the endpoint of the read replica.
    hostname String
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip String
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name String
    Name of the endpoint.
    port Number
    TCP port of the endpoint.

    DocumentdbReadReplicaPrivateNetwork, DocumentdbReadReplicaPrivateNetworkArgs

    PrivateNetworkId string
    UUID of the private network to be connected to the read replica.
    EndpointId string
    The ID of the endpoint of the read replica.
    Hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    Ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    Name string
    Name of the endpoint.
    Port int
    TCP port of the endpoint.
    ServiceIp string
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    Zone string
    Private network zone
    PrivateNetworkId string
    UUID of the private network to be connected to the read replica.
    EndpointId string
    The ID of the endpoint of the read replica.
    Hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    Ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    Name string
    Name of the endpoint.
    Port int
    TCP port of the endpoint.
    ServiceIp string
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    Zone string
    Private network zone
    privateNetworkId String
    UUID of the private network to be connected to the read replica.
    endpointId String
    The ID of the endpoint of the read replica.
    hostname String
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip String
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name String
    Name of the endpoint.
    port Integer
    TCP port of the endpoint.
    serviceIp String
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    zone String
    Private network zone
    privateNetworkId string
    UUID of the private network to be connected to the read replica.
    endpointId string
    The ID of the endpoint of the read replica.
    hostname string
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip string
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name string
    Name of the endpoint.
    port number
    TCP port of the endpoint.
    serviceIp string
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    zone string
    Private network zone
    private_network_id str
    UUID of the private network to be connected to the read replica.
    endpoint_id str
    The ID of the endpoint of the read replica.
    hostname str
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip str
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name str
    Name of the endpoint.
    port int
    TCP port of the endpoint.
    service_ip str
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    zone str
    Private network zone
    privateNetworkId String
    UUID of the private network to be connected to the read replica.
    endpointId String
    The ID of the endpoint of the read replica.
    hostname String
    Hostname of the endpoint. Only one of ip and hostname may be set.
    ip String
    IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.
    name String
    Name of the endpoint.
    port Number
    TCP port of the endpoint.
    serviceIp String
    The IP network address within the private subnet. This must be an IPv4 address with a CIDR notation. The IP network address within the private subnet is determined by the IP Address Management (IPAM) service if not set.
    zone String
    Private network zone

    Import

    Database Read replica can be imported using the {region}/{id}, e.g.

    bash

    $ pulumi import scaleway:index/documentdbReadReplica:DocumentdbReadReplica rr fr-par/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse