pgedge.Cluster
Explore with Pulumi AI
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_account_id: Optional[str] = None,
networks: Optional[Sequence[ClusterNetworkArgs]] = None,
node_location: Optional[str] = None,
nodes: Optional[Sequence[ClusterNodeArgs]] = None,
regions: Optional[Sequence[str]] = None,
backup_store_ids: Optional[Sequence[str]] = None,
capacity: Optional[int] = None,
firewall_rules: Optional[Sequence[ClusterFirewallRuleArgs]] = None,
name: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None,
ssh_key_id: Optional[str] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: pgedge:Cluster
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 ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- 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 clusterResource = new Pgedge.Cluster("clusterResource", new()
{
CloudAccountId = "string",
Networks = new[]
{
new Pgedge.Inputs.ClusterNetworkArgs
{
Cidr = "string",
PublicSubnets = new[]
{
"string",
},
Region = "string",
External = false,
ExternalId = "string",
Name = "string",
PrivateSubnets = new[]
{
"string",
},
},
},
NodeLocation = "string",
Nodes = new[]
{
new Pgedge.Inputs.ClusterNodeArgs
{
InstanceType = "string",
Name = "string",
Region = "string",
AvailabilityZone = "string",
VolumeIops = 0,
VolumeSize = 0,
VolumeType = "string",
},
},
Regions = new[]
{
"string",
},
BackupStoreIds = new[]
{
"string",
},
Capacity = 0,
FirewallRules = new[]
{
new Pgedge.Inputs.ClusterFirewallRuleArgs
{
Name = "string",
Port = 0,
Sources = new[]
{
"string",
},
},
},
Name = "string",
ResourceTags =
{
{ "string", "string" },
},
SshKeyId = "string",
});
example, err := pgedge.NewCluster(ctx, "clusterResource", &pgedge.ClusterArgs{
CloudAccountId: pulumi.String("string"),
Networks: pgedge.ClusterNetworkArray{
&pgedge.ClusterNetworkArgs{
Cidr: pulumi.String("string"),
PublicSubnets: pulumi.StringArray{
pulumi.String("string"),
},
Region: pulumi.String("string"),
External: pulumi.Bool(false),
ExternalId: pulumi.String("string"),
Name: pulumi.String("string"),
PrivateSubnets: pulumi.StringArray{
pulumi.String("string"),
},
},
},
NodeLocation: pulumi.String("string"),
Nodes: pgedge.ClusterNodeArray{
&pgedge.ClusterNodeArgs{
InstanceType: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
VolumeIops: pulumi.Int(0),
VolumeSize: pulumi.Int(0),
VolumeType: pulumi.String("string"),
},
},
Regions: pulumi.StringArray{
pulumi.String("string"),
},
BackupStoreIds: pulumi.StringArray{
pulumi.String("string"),
},
Capacity: pulumi.Int(0),
FirewallRules: pgedge.ClusterFirewallRuleArray{
&pgedge.ClusterFirewallRuleArgs{
Name: pulumi.String("string"),
Port: pulumi.Int(0),
Sources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
ResourceTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
SshKeyId: pulumi.String("string"),
})
var clusterResource = new Cluster("clusterResource", ClusterArgs.builder()
.cloudAccountId("string")
.networks(ClusterNetworkArgs.builder()
.cidr("string")
.publicSubnets("string")
.region("string")
.external(false)
.externalId("string")
.name("string")
.privateSubnets("string")
.build())
.nodeLocation("string")
.nodes(ClusterNodeArgs.builder()
.instanceType("string")
.name("string")
.region("string")
.availabilityZone("string")
.volumeIops(0)
.volumeSize(0)
.volumeType("string")
.build())
.regions("string")
.backupStoreIds("string")
.capacity(0)
.firewallRules(ClusterFirewallRuleArgs.builder()
.name("string")
.port(0)
.sources("string")
.build())
.name("string")
.resourceTags(Map.of("string", "string"))
.sshKeyId("string")
.build());
cluster_resource = pgedge.Cluster("clusterResource",
cloud_account_id="string",
networks=[{
"cidr": "string",
"public_subnets": ["string"],
"region": "string",
"external": False,
"external_id": "string",
"name": "string",
"private_subnets": ["string"],
}],
node_location="string",
nodes=[{
"instance_type": "string",
"name": "string",
"region": "string",
"availability_zone": "string",
"volume_iops": 0,
"volume_size": 0,
"volume_type": "string",
}],
regions=["string"],
backup_store_ids=["string"],
capacity=0,
firewall_rules=[{
"name": "string",
"port": 0,
"sources": ["string"],
}],
name="string",
resource_tags={
"string": "string",
},
ssh_key_id="string")
const clusterResource = new pgedge.Cluster("clusterResource", {
cloudAccountId: "string",
networks: [{
cidr: "string",
publicSubnets: ["string"],
region: "string",
external: false,
externalId: "string",
name: "string",
privateSubnets: ["string"],
}],
nodeLocation: "string",
nodes: [{
instanceType: "string",
name: "string",
region: "string",
availabilityZone: "string",
volumeIops: 0,
volumeSize: 0,
volumeType: "string",
}],
regions: ["string"],
backupStoreIds: ["string"],
capacity: 0,
firewallRules: [{
name: "string",
port: 0,
sources: ["string"],
}],
name: "string",
resourceTags: {
string: "string",
},
sshKeyId: "string",
});
type: pgedge:Cluster
properties:
backupStoreIds:
- string
capacity: 0
cloudAccountId: string
firewallRules:
- name: string
port: 0
sources:
- string
name: string
networks:
- cidr: string
external: false
externalId: string
name: string
privateSubnets:
- string
publicSubnets:
- string
region: string
nodeLocation: string
nodes:
- availabilityZone: string
instanceType: string
name: string
region: string
volumeIops: 0
volumeSize: 0
volumeType: string
regions:
- string
resourceTags:
string: string
sshKeyId: string
Cluster 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 Cluster resource accepts the following input properties:
- Cloud
Account stringId - Networks
List<Pgedge.
Pgedge. Inputs. Cluster Network> - Node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- Nodes
List<Pgedge.
Pgedge. Inputs. Cluster Node> - Regions List<string>
- Backup
Store List<string>Ids - List of backup store IDs to associate with the cluster
- Capacity int
- Firewall
Rules List<Pgedge.Pgedge. Inputs. Cluster Firewall Rule> - Name string
- Dictionary<string, string>
- A map of tags to assign to the cluster
- Ssh
Key stringId
- Cloud
Account stringId - Networks
[]Cluster
Network Args - Node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- Nodes
[]Cluster
Node Args - Regions []string
- Backup
Store []stringIds - List of backup store IDs to associate with the cluster
- Capacity int
- Firewall
Rules []ClusterFirewall Rule Args - Name string
- map[string]string
- A map of tags to assign to the cluster
- Ssh
Key stringId
- cloud
Account StringId - networks
List<Cluster
Network> - node
Location String - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
List<Cluster
Node> - regions List<String>
- backup
Store List<String>Ids - List of backup store IDs to associate with the cluster
- capacity Integer
- firewall
Rules List<ClusterFirewall Rule> - name String
- Map<String,String>
- A map of tags to assign to the cluster
- ssh
Key StringId
- cloud
Account stringId - networks
Cluster
Network[] - node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
Cluster
Node[] - regions string[]
- backup
Store string[]Ids - List of backup store IDs to associate with the cluster
- capacity number
- firewall
Rules ClusterFirewall Rule[] - name string
- {[key: string]: string}
- A map of tags to assign to the cluster
- ssh
Key stringId
- cloud_
account_ strid - networks
Sequence[Cluster
Network Args] - node_
location str - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
Sequence[Cluster
Node Args] - regions Sequence[str]
- backup_
store_ Sequence[str]ids - List of backup store IDs to associate with the cluster
- capacity int
- firewall_
rules Sequence[ClusterFirewall Rule Args] - name str
- Mapping[str, str]
- A map of tags to assign to the cluster
- ssh_
key_ strid
- cloud
Account StringId - networks List<Property Map>
- node
Location String - Node location of the cluster. Must be either 'public' or 'private'.
- nodes List<Property Map>
- regions List<String>
- backup
Store List<String>Ids - List of backup store IDs to associate with the cluster
- capacity Number
- firewall
Rules List<Property Map> - name String
- Map<String>
- A map of tags to assign to the cluster
- ssh
Key StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- status str
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_store_ids: Optional[Sequence[str]] = None,
capacity: Optional[int] = None,
cloud_account_id: Optional[str] = None,
created_at: Optional[str] = None,
firewall_rules: Optional[Sequence[ClusterFirewallRuleArgs]] = None,
name: Optional[str] = None,
networks: Optional[Sequence[ClusterNetworkArgs]] = None,
node_location: Optional[str] = None,
nodes: Optional[Sequence[ClusterNodeArgs]] = None,
regions: Optional[Sequence[str]] = None,
resource_tags: Optional[Mapping[str, str]] = None,
ssh_key_id: Optional[str] = None,
status: Optional[str] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState 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.
- Backup
Store List<string>Ids - List of backup store IDs to associate with the cluster
- Capacity int
- Cloud
Account stringId - Created
At string - Firewall
Rules List<Pgedge.Pgedge. Inputs. Cluster Firewall Rule> - Name string
- Networks
List<Pgedge.
Pgedge. Inputs. Cluster Network> - Node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- Nodes
List<Pgedge.
Pgedge. Inputs. Cluster Node> - Regions List<string>
- Dictionary<string, string>
- A map of tags to assign to the cluster
- Ssh
Key stringId - Status string
- Backup
Store []stringIds - List of backup store IDs to associate with the cluster
- Capacity int
- Cloud
Account stringId - Created
At string - Firewall
Rules []ClusterFirewall Rule Args - Name string
- Networks
[]Cluster
Network Args - Node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- Nodes
[]Cluster
Node Args - Regions []string
- map[string]string
- A map of tags to assign to the cluster
- Ssh
Key stringId - Status string
- backup
Store List<String>Ids - List of backup store IDs to associate with the cluster
- capacity Integer
- cloud
Account StringId - created
At String - firewall
Rules List<ClusterFirewall Rule> - name String
- networks
List<Cluster
Network> - node
Location String - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
List<Cluster
Node> - regions List<String>
- Map<String,String>
- A map of tags to assign to the cluster
- ssh
Key StringId - status String
- backup
Store string[]Ids - List of backup store IDs to associate with the cluster
- capacity number
- cloud
Account stringId - created
At string - firewall
Rules ClusterFirewall Rule[] - name string
- networks
Cluster
Network[] - node
Location string - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
Cluster
Node[] - regions string[]
- {[key: string]: string}
- A map of tags to assign to the cluster
- ssh
Key stringId - status string
- backup_
store_ Sequence[str]ids - List of backup store IDs to associate with the cluster
- capacity int
- cloud_
account_ strid - created_
at str - firewall_
rules Sequence[ClusterFirewall Rule Args] - name str
- networks
Sequence[Cluster
Network Args] - node_
location str - Node location of the cluster. Must be either 'public' or 'private'.
- nodes
Sequence[Cluster
Node Args] - regions Sequence[str]
- Mapping[str, str]
- A map of tags to assign to the cluster
- ssh_
key_ strid - status str
- backup
Store List<String>Ids - List of backup store IDs to associate with the cluster
- capacity Number
- cloud
Account StringId - created
At String - firewall
Rules List<Property Map> - name String
- networks List<Property Map>
- node
Location String - Node location of the cluster. Must be either 'public' or 'private'.
- nodes List<Property Map>
- regions List<String>
- Map<String>
- A map of tags to assign to the cluster
- ssh
Key StringId - status String
Supporting Types
ClusterFirewallRule, ClusterFirewallRuleArgs
ClusterNetwork, ClusterNetworkArgs
- Cidr string
- CIDR of the network
- Public
Subnets List<string> - List of public subnets
- Region string
- Region of the network
- External bool
- Whether the network is external
- External
Id string - External ID of the network
- Name string
- Name of the network
- Private
Subnets List<string> - List of private subnets
- Cidr string
- CIDR of the network
- Public
Subnets []string - List of public subnets
- Region string
- Region of the network
- External bool
- Whether the network is external
- External
Id string - External ID of the network
- Name string
- Name of the network
- Private
Subnets []string - List of private subnets
- cidr String
- CIDR of the network
- public
Subnets List<String> - List of public subnets
- region String
- Region of the network
- external Boolean
- Whether the network is external
- external
Id String - External ID of the network
- name String
- Name of the network
- private
Subnets List<String> - List of private subnets
- cidr string
- CIDR of the network
- public
Subnets string[] - List of public subnets
- region string
- Region of the network
- external boolean
- Whether the network is external
- external
Id string - External ID of the network
- name string
- Name of the network
- private
Subnets string[] - List of private subnets
- cidr str
- CIDR of the network
- public_
subnets Sequence[str] - List of public subnets
- region str
- Region of the network
- external bool
- Whether the network is external
- external_
id str - External ID of the network
- name str
- Name of the network
- private_
subnets Sequence[str] - List of private subnets
- cidr String
- CIDR of the network
- public
Subnets List<String> - List of public subnets
- region String
- Region of the network
- external Boolean
- Whether the network is external
- external
Id String - External ID of the network
- name String
- Name of the network
- private
Subnets List<String> - List of private subnets
ClusterNode, ClusterNodeArgs
- Instance
Type string - Name string
- Region string
- Availability
Zone string - Volume
Iops int - Volume
Size int - Volume
Type string
- Instance
Type string - Name string
- Region string
- Availability
Zone string - Volume
Iops int - Volume
Size int - Volume
Type string
- instance
Type String - name String
- region String
- availability
Zone String - volume
Iops Integer - volume
Size Integer - volume
Type String
- instance
Type string - name string
- region string
- availability
Zone string - volume
Iops number - volume
Size number - volume
Type string
- instance_
type str - name str
- region str
- availability_
zone str - volume_
iops int - volume_
size int - volume_
type str
- instance
Type String - name String
- region String
- availability
Zone String - volume
Iops Number - volume
Size Number - volume
Type String
Package Details
- Repository
- pgedge pgEdge/pulumi-pgedge
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pgedge
Terraform Provider.