heroku.space.Space
Explore with Pulumi AI
Create Space Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Space(name: string, args: SpaceArgs, opts?: CustomResourceOptions);
@overload
def Space(resource_name: str,
args: SpaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Space(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
cidr: Optional[str] = None,
data_cidr: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
shield: Optional[bool] = None)
func NewSpace(ctx *Context, name string, args SpaceArgs, opts ...ResourceOption) (*Space, error)
public Space(string name, SpaceArgs args, CustomResourceOptions? opts = null)
type: heroku:space:Space
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 SpaceArgs
- 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 SpaceArgs
- 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 SpaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpaceArgs
- 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 spaceResource = new Heroku.Space.Space("spaceResource", new()
{
Organization = "string",
Cidr = "string",
DataCidr = "string",
Name = "string",
Region = "string",
Shield = false,
});
example, err := space.NewSpace(ctx, "spaceResource", &space.SpaceArgs{
Organization: pulumi.String("string"),
Cidr: pulumi.String("string"),
DataCidr: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Shield: pulumi.Bool(false),
})
var spaceResource = new Space("spaceResource", SpaceArgs.builder()
.organization("string")
.cidr("string")
.dataCidr("string")
.name("string")
.region("string")
.shield(false)
.build());
space_resource = heroku.space.Space("spaceResource",
organization="string",
cidr="string",
data_cidr="string",
name="string",
region="string",
shield=False)
const spaceResource = new heroku.space.Space("spaceResource", {
organization: "string",
cidr: "string",
dataCidr: "string",
name: "string",
region: "string",
shield: false,
});
type: heroku:space:Space
properties:
cidr: string
dataCidr: string
name: string
organization: string
region: string
shield: false
Space 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 Space resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Space resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Outbound
Ips List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Outbound
Ips []string
- id String
- The provider-assigned unique ID for this managed resource.
- outbound
Ips List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- outbound
Ips string[]
- id str
- The provider-assigned unique ID for this managed resource.
- outbound_
ips Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- outbound
Ips List<String>
Look up Existing Space Resource
Get an existing Space 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?: SpaceState, opts?: CustomResourceOptions): Space
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
data_cidr: Optional[str] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
outbound_ips: Optional[Sequence[str]] = None,
region: Optional[str] = None,
shield: Optional[bool] = None) -> Space
func GetSpace(ctx *Context, name string, id IDInput, state *SpaceState, opts ...ResourceOption) (*Space, error)
public static Space Get(string name, Input<string> id, SpaceState? state, CustomResourceOptions? opts = null)
public static Space get(String name, Output<String> id, SpaceState 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.
- Cidr string
- Data
Cidr string - Name string
- Organization string
- Outbound
Ips List<string> - Region string
- Shield bool
- Cidr string
- Data
Cidr string - Name string
- Organization string
- Outbound
Ips []string - Region string
- Shield bool
- cidr String
- data
Cidr String - name String
- organization String
- outbound
Ips List<String> - region String
- shield Boolean
- cidr string
- data
Cidr string - name string
- organization string
- outbound
Ips string[] - region string
- shield boolean
- cidr str
- data_
cidr str - name str
- organization str
- outbound_
ips Sequence[str] - region str
- shield bool
- cidr String
- data
Cidr String - name String
- organization String
- outbound
Ips List<String> - region String
- shield Boolean
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.