1. Packages
  2. Event Store Cloud
  3. API Docs
  4. Network
Event Store Cloud v0.2.17 published on Tuesday, Jan 21, 2025 by EventStore

eventstorecloud.Network

Explore with Pulumi AI

Manages VPC (network) resources in Event Store Cloud

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using EventStoreCloud = Pulumi.EventStoreCloud;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new EventStoreCloud.Project("exampleProject");

    var exampleNetwork = new EventStoreCloud.Network("exampleNetwork", new()
    {
        ProjectId = exampleProject.Id,
        ResourceProvider = "aws",
        Region = "us-west-2",
        CidrBlock = "172.21.0.0/16",
    });

});
Copy
package main

import (
	"github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := eventstorecloud.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		_, err = eventstorecloud.NewNetwork(ctx, "exampleNetwork", &eventstorecloud.NetworkArgs{
			ProjectId:        exampleProject.ID(),
			ResourceProvider: pulumi.String("aws"),
			Region:           pulumi.String("us-west-2"),
			CidrBlock:        pulumi.String("172.21.0.0/16"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.eventstorecloud.Project;
import com.pulumi.eventstorecloud.Network;
import com.pulumi.eventstorecloud.NetworkArgs;
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 exampleProject = new Project("exampleProject");

        var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()        
            .projectId(exampleProject.id())
            .resourceProvider("aws")
            .region("us-west-2")
            .cidrBlock("172.21.0.0/16")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as eventstorecloud from "@eventstore/pulumi-eventstorecloud";

const exampleProject = new eventstorecloud.Project("exampleProject", {});
const exampleNetwork = new eventstorecloud.Network("exampleNetwork", {
    projectId: exampleProject.id,
    resourceProvider: "aws",
    region: "us-west-2",
    cidrBlock: "172.21.0.0/16",
});
Copy
import pulumi
import pulumi_eventstorecloud as eventstorecloud

example_project = eventstorecloud.Project("exampleProject")
example_network = eventstorecloud.Network("exampleNetwork",
    project_id=example_project.id,
    resource_provider="aws",
    region="us-west-2",
    cidr_block="172.21.0.0/16")
Copy
resources:
  exampleProject:
    type: eventstorecloud:Project
  exampleNetwork:
    type: eventstorecloud:Network
    properties:
      projectId: ${exampleProject.id}
      resourceProvider: aws
      region: us-west-2
      cidrBlock: 172.21.0.0/16
Copy

Create Network Resource

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

Constructor syntax

new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
            args: NetworkArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Network(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cidr_block: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_provider: Optional[str] = None,
            name: Optional[str] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: eventstorecloud:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NetworkArgs
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 networkResource = new EventStoreCloud.Network("networkResource", new()
{
    CidrBlock = "string",
    ProjectId = "string",
    Region = "string",
    ResourceProvider = "string",
    Name = "string",
});
Copy
example, err := eventstorecloud.NewNetwork(ctx, "networkResource", &eventstorecloud.NetworkArgs{
	CidrBlock:        pulumi.String("string"),
	ProjectId:        pulumi.String("string"),
	Region:           pulumi.String("string"),
	ResourceProvider: pulumi.String("string"),
	Name:             pulumi.String("string"),
})
Copy
var networkResource = new Network("networkResource", NetworkArgs.builder()
    .cidrBlock("string")
    .projectId("string")
    .region("string")
    .resourceProvider("string")
    .name("string")
    .build());
Copy
network_resource = eventstorecloud.Network("networkResource",
    cidr_block="string",
    project_id="string",
    region="string",
    resource_provider="string",
    name="string")
Copy
const networkResource = new eventstorecloud.Network("networkResource", {
    cidrBlock: "string",
    projectId: "string",
    region: "string",
    resourceProvider: "string",
    name: "string",
});
Copy
type: eventstorecloud:Network
properties:
    cidrBlock: string
    name: string
    projectId: string
    region: string
    resourceProvider: string
Copy

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

CidrBlock
This property is required.
Changes to this property will trigger replacement.
string
Address space of the network in CIDR block notation
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID
Region
This property is required.
Changes to this property will trigger replacement.
string
Provider region in which to provision the network
ResourceProvider
This property is required.
Changes to this property will trigger replacement.
string
Cloud Provider in which to provision the network.
Name string
Human-friendly name for the network
CidrBlock
This property is required.
Changes to this property will trigger replacement.
string
Address space of the network in CIDR block notation
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID
Region
This property is required.
Changes to this property will trigger replacement.
string
Provider region in which to provision the network
ResourceProvider
This property is required.
Changes to this property will trigger replacement.
string
Cloud Provider in which to provision the network.
Name string
Human-friendly name for the network
cidrBlock
This property is required.
Changes to this property will trigger replacement.
String
Address space of the network in CIDR block notation
projectId
This property is required.
Changes to this property will trigger replacement.
String
Project ID
region
This property is required.
Changes to this property will trigger replacement.
String
Provider region in which to provision the network
resourceProvider
This property is required.
Changes to this property will trigger replacement.
String
Cloud Provider in which to provision the network.
name String
Human-friendly name for the network
cidrBlock
This property is required.
Changes to this property will trigger replacement.
string
Address space of the network in CIDR block notation
projectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID
region
This property is required.
Changes to this property will trigger replacement.
string
Provider region in which to provision the network
resourceProvider
This property is required.
Changes to this property will trigger replacement.
string
Cloud Provider in which to provision the network.
name string
Human-friendly name for the network
cidr_block
This property is required.
Changes to this property will trigger replacement.
str
Address space of the network in CIDR block notation
project_id
This property is required.
Changes to this property will trigger replacement.
str
Project ID
region
This property is required.
Changes to this property will trigger replacement.
str
Provider region in which to provision the network
resource_provider
This property is required.
Changes to this property will trigger replacement.
str
Cloud Provider in which to provision the network.
name str
Human-friendly name for the network
cidrBlock
This property is required.
Changes to this property will trigger replacement.
String
Address space of the network in CIDR block notation
projectId
This property is required.
Changes to this property will trigger replacement.
String
Project ID
region
This property is required.
Changes to this property will trigger replacement.
String
Provider region in which to provision the network
resourceProvider
This property is required.
Changes to this property will trigger replacement.
String
Cloud Provider in which to provision the network.
name String
Human-friendly name for the network

Outputs

All input properties are implicitly available as output properties. Additionally, the Network 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 Network Resource

Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cidr_block: Optional[str] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        resource_provider: Optional[str] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
resources:  _:    type: eventstorecloud:Network    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CidrBlock Changes to this property will trigger replacement. string
Address space of the network in CIDR block notation
Name string
Human-friendly name for the network
ProjectId Changes to this property will trigger replacement. string
Project ID
Region Changes to this property will trigger replacement. string
Provider region in which to provision the network
ResourceProvider Changes to this property will trigger replacement. string
Cloud Provider in which to provision the network.
CidrBlock Changes to this property will trigger replacement. string
Address space of the network in CIDR block notation
Name string
Human-friendly name for the network
ProjectId Changes to this property will trigger replacement. string
Project ID
Region Changes to this property will trigger replacement. string
Provider region in which to provision the network
ResourceProvider Changes to this property will trigger replacement. string
Cloud Provider in which to provision the network.
cidrBlock Changes to this property will trigger replacement. String
Address space of the network in CIDR block notation
name String
Human-friendly name for the network
projectId Changes to this property will trigger replacement. String
Project ID
region Changes to this property will trigger replacement. String
Provider region in which to provision the network
resourceProvider Changes to this property will trigger replacement. String
Cloud Provider in which to provision the network.
cidrBlock Changes to this property will trigger replacement. string
Address space of the network in CIDR block notation
name string
Human-friendly name for the network
projectId Changes to this property will trigger replacement. string
Project ID
region Changes to this property will trigger replacement. string
Provider region in which to provision the network
resourceProvider Changes to this property will trigger replacement. string
Cloud Provider in which to provision the network.
cidr_block Changes to this property will trigger replacement. str
Address space of the network in CIDR block notation
name str
Human-friendly name for the network
project_id Changes to this property will trigger replacement. str
Project ID
region Changes to this property will trigger replacement. str
Provider region in which to provision the network
resource_provider Changes to this property will trigger replacement. str
Cloud Provider in which to provision the network.
cidrBlock Changes to this property will trigger replacement. String
Address space of the network in CIDR block notation
name String
Human-friendly name for the network
projectId Changes to this property will trigger replacement. String
Project ID
region Changes to this property will trigger replacement. String
Provider region in which to provision the network
resourceProvider Changes to this property will trigger replacement. String
Cloud Provider in which to provision the network.

Import

 $ pulumi import eventstorecloud:index/network:Network example project_id:network_id
Copy

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

Package Details

Repository
eventstorecloud EventStore/pulumi-eventstorecloud
License
Apache-2.0
Notes
This Pulumi package is based on the eventstorecloud Terraform Provider.