Class ProjectVpc
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myvpc = new Aiven.ProjectVpc("myvpc", new Aiven.ProjectVpcArgs
{
CloudName = "google-europe-west1",
NetworkCidr = "192.168.0.1/24",
Project = aiven_project.Myproject.Project,
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class ProjectVpc : CustomResource
Constructors
View SourceProjectVpc(String, ProjectVpcArgs, CustomResourceOptions)
Create a ProjectVpc resource with the given unique name, arguments, and options.
Declaration
public ProjectVpc(string name, ProjectVpcArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectVpcArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCloudName
Cloud the VPC is in
Declaration
public Output<string> CloudName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkCidr
Network address range used by the VPC like 192.168.0.0/24
Declaration
public Output<string> NetworkCidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The project the VPC belongs to
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
State of the VPC (APPROVED, ACTIVE, DELETING, DELETED)
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ProjectVpcState, CustomResourceOptions)
Get an existing ProjectVpc resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProjectVpc Get(string name, Input<string> id, ProjectVpcState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProjectVpcState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProjectVpc |