1. Packages
  2. Event Store Cloud
  3. API Docs
  4. Network
Event Store Cloud v0.2.15 published on Wednesday, Apr 3, 2024 by EventStore

eventstorecloud.Network

Explore with Pulumi AI

eventstorecloud logo
Event Store Cloud v0.2.15 published on Wednesday, Apr 3, 2024 by EventStore

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    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")
    
    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",
    });
    
    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
    

    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 string
    The unique name of the resource.
    args NetworkArgs
    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 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 string
    The unique name of the resource.
    args NetworkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkArgs
    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 networkResource = new EventStoreCloud.Network("networkResource", new()
    {
        CidrBlock = "string",
        ProjectId = "string",
        Region = "string",
        ResourceProvider = "string",
        Name = "string",
    });
    
    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"),
    })
    
    var networkResource = new Network("networkResource", NetworkArgs.builder()        
        .cidrBlock("string")
        .projectId("string")
        .region("string")
        .resourceProvider("string")
        .name("string")
        .build());
    
    network_resource = eventstorecloud.Network("networkResource",
        cidr_block="string",
        project_id="string",
        region="string",
        resource_provider="string",
        name="string")
    
    const networkResource = new eventstorecloud.Network("networkResource", {
        cidrBlock: "string",
        projectId: "string",
        region: "string",
        resourceProvider: "string",
        name: "string",
    });
    
    type: eventstorecloud:Network
    properties:
        cidrBlock: string
        name: string
        projectId: string
        region: string
        resourceProvider: string
    

    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

    The Network resource accepts the following input properties:

    CidrBlock string
    Address space of the network in CIDR block notation
    ProjectId string
    Project ID
    Region string
    Provider region in which to provision the network
    ResourceProvider string
    Cloud Provider in which to provision the network.
    Name string
    Human-friendly name for the network
    CidrBlock string
    Address space of the network in CIDR block notation
    ProjectId string
    Project ID
    Region string
    Provider region in which to provision the network
    ResourceProvider string
    Cloud Provider in which to provision the network.
    Name string
    Human-friendly name for the network
    cidrBlock String
    Address space of the network in CIDR block notation
    projectId String
    Project ID
    region String
    Provider region in which to provision the network
    resourceProvider String
    Cloud Provider in which to provision the network.
    name String
    Human-friendly name for the network
    cidrBlock string
    Address space of the network in CIDR block notation
    projectId string
    Project ID
    region string
    Provider region in which to provision the network
    resourceProvider string
    Cloud Provider in which to provision the network.
    name string
    Human-friendly name for the network
    cidr_block str
    Address space of the network in CIDR block notation
    project_id str
    Project ID
    region str
    Provider region in which to provision the network
    resource_provider str
    Cloud Provider in which to provision the network.
    name str
    Human-friendly name for the network
    cidrBlock String
    Address space of the network in CIDR block notation
    projectId String
    Project ID
    region String
    Provider region in which to provision the network
    resourceProvider 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)
    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:
    CidrBlock string
    Address space of the network in CIDR block notation
    Name string
    Human-friendly name for the network
    ProjectId string
    Project ID
    Region string
    Provider region in which to provision the network
    ResourceProvider string
    Cloud Provider in which to provision the network.
    CidrBlock string
    Address space of the network in CIDR block notation
    Name string
    Human-friendly name for the network
    ProjectId string
    Project ID
    Region string
    Provider region in which to provision the network
    ResourceProvider string
    Cloud Provider in which to provision the network.
    cidrBlock String
    Address space of the network in CIDR block notation
    name String
    Human-friendly name for the network
    projectId String
    Project ID
    region String
    Provider region in which to provision the network
    resourceProvider String
    Cloud Provider in which to provision the network.
    cidrBlock string
    Address space of the network in CIDR block notation
    name string
    Human-friendly name for the network
    projectId string
    Project ID
    region string
    Provider region in which to provision the network
    resourceProvider string
    Cloud Provider in which to provision the network.
    cidr_block str
    Address space of the network in CIDR block notation
    name str
    Human-friendly name for the network
    project_id str
    Project ID
    region str
    Provider region in which to provision the network
    resource_provider str
    Cloud Provider in which to provision the network.
    cidrBlock String
    Address space of the network in CIDR block notation
    name String
    Human-friendly name for the network
    projectId String
    Project ID
    region String
    Provider region in which to provision the network
    resourceProvider String
    Cloud Provider in which to provision the network.

    Import

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

    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.
    eventstorecloud logo
    Event Store Cloud v0.2.15 published on Wednesday, Apr 3, 2024 by EventStore