outscale.OksProject
Manages a project.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const project01 = new outscale.OksProject("project01", {
cidr: "10.50.0.0/18",
region: "eu-west-2",
tags: {
tagkey: "tagvalue",
},
});
import pulumi
import pulumi_outscale as outscale
project01 = outscale.OksProject("project01",
cidr="10.50.0.0/18",
region="eu-west-2",
tags={
"tagkey": "tagvalue",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.NewOksProject(ctx, "project01", &outscale.OksProjectArgs{
Cidr: pulumi.String("10.50.0.0/18"),
Region: pulumi.String("eu-west-2"),
Tags: pulumi.StringMap{
"tagkey": pulumi.String("tagvalue"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var project01 = new Outscale.OksProject("project01", new()
{
Cidr = "10.50.0.0/18",
Region = "eu-west-2",
Tags =
{
{ "tagkey", "tagvalue" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OksProject;
import com.pulumi.outscale.OksProjectArgs;
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 project01 = new OksProject("project01", OksProjectArgs.builder()
.cidr("10.50.0.0/18")
.region("eu-west-2")
.tags(Map.of("tagkey", "tagvalue"))
.build());
}
}
resources:
project01:
type: outscale:OksProject
properties:
cidr: 10.50.0.0/18
region: eu-west-2
tags:
tagkey: tagvalue
Create OksProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OksProject(name: string, args: OksProjectArgs, opts?: CustomResourceOptions);
@overload
def OksProject(resource_name: str,
args: OksProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OksProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
region: Optional[str] = None,
description: Optional[str] = None,
disable_api_termination: Optional[bool] = None,
name: Optional[str] = None,
quirks: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[OksProjectTimeoutsArgs] = None)
func NewOksProject(ctx *Context, name string, args OksProjectArgs, opts ...ResourceOption) (*OksProject, error)
public OksProject(string name, OksProjectArgs args, CustomResourceOptions? opts = null)
public OksProject(String name, OksProjectArgs args)
public OksProject(String name, OksProjectArgs args, CustomResourceOptions options)
type: outscale:OksProject
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 OksProjectArgs
- 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 OksProjectArgs
- 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 OksProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OksProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OksProjectArgs
- 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 oksProjectResource = new Outscale.OksProject("oksProjectResource", new()
{
Cidr = "string",
Region = "string",
Description = "string",
DisableApiTermination = false,
Name = "string",
Quirks = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Outscale.Inputs.OksProjectTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := outscale.NewOksProject(ctx, "oksProjectResource", &outscale.OksProjectArgs{
Cidr: pulumi.String("string"),
Region: pulumi.String("string"),
Description: pulumi.String("string"),
DisableApiTermination: pulumi.Bool(false),
Name: pulumi.String("string"),
Quirks: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &outscale.OksProjectTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var oksProjectResource = new OksProject("oksProjectResource", OksProjectArgs.builder()
.cidr("string")
.region("string")
.description("string")
.disableApiTermination(false)
.name("string")
.quirks("string")
.tags(Map.of("string", "string"))
.timeouts(OksProjectTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
oks_project_resource = outscale.OksProject("oksProjectResource",
cidr="string",
region="string",
description="string",
disable_api_termination=False,
name="string",
quirks=["string"],
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const oksProjectResource = new outscale.OksProject("oksProjectResource", {
cidr: "string",
region: "string",
description: "string",
disableApiTermination: false,
name: "string",
quirks: ["string"],
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: outscale:OksProject
properties:
cidr: string
description: string
disableApiTermination: false
name: string
quirks:
- string
region: string
tags:
string: string
timeouts:
create: string
delete: string
read: string
update: string
OksProject 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 OksProject resource accepts the following input properties:
- Cidr string
- The CIDR block to associate with the Net of the project.
- Region string
- The Region on which the project is deployed.
- Description string
- A description for the project.
- Disable
Api boolTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- Name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- Quirks List<string>
- A list of special configurations or behaviors for the project.
- Dictionary<string, string>
- The key/value combinations of the tags associated with the resource.
- Timeouts
Oks
Project Timeouts
- Cidr string
- The CIDR block to associate with the Net of the project.
- Region string
- The Region on which the project is deployed.
- Description string
- A description for the project.
- Disable
Api boolTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- Name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- Quirks []string
- A list of special configurations or behaviors for the project.
- map[string]string
- The key/value combinations of the tags associated with the resource.
- Timeouts
Oks
Project Timeouts Args
- cidr String
- The CIDR block to associate with the Net of the project.
- region String
- The Region on which the project is deployed.
- description String
- A description for the project.
- disable
Api BooleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name String
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks List<String>
- A list of special configurations or behaviors for the project.
- Map<String,String>
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts
- cidr string
- The CIDR block to associate with the Net of the project.
- region string
- The Region on which the project is deployed.
- description string
- A description for the project.
- disable
Api booleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks string[]
- A list of special configurations or behaviors for the project.
- {[key: string]: string}
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts
- cidr str
- The CIDR block to associate with the Net of the project.
- region str
- The Region on which the project is deployed.
- description str
- A description for the project.
- disable_
api_ booltermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name str
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks Sequence[str]
- A list of special configurations or behaviors for the project.
- Mapping[str, str]
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts Args
- cidr String
- The CIDR block to associate with the Net of the project.
- region String
- The Region on which the project is deployed.
- description String
- A description for the project.
- disable
Api BooleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name String
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks List<String>
- A list of special configurations or behaviors for the project.
- Map<String>
- The key/value combinations of the tags associated with the resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the OksProject resource produces the following output properties:
- created_
at str - The timestamp when the project was created (date-time).
- id str
- The provider-assigned unique ID for this managed resource.
- request_
id str - status str
- The status of the project.
- updated_
at str - The timestamp when the project was last updated (date-time).
Look up Existing OksProject Resource
Get an existing OksProject 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?: OksProjectState, opts?: CustomResourceOptions): OksProject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
disable_api_termination: Optional[bool] = None,
name: Optional[str] = None,
quirks: Optional[Sequence[str]] = None,
region: Optional[str] = None,
request_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[OksProjectTimeoutsArgs] = None,
updated_at: Optional[str] = None) -> OksProject
func GetOksProject(ctx *Context, name string, id IDInput, state *OksProjectState, opts ...ResourceOption) (*OksProject, error)
public static OksProject Get(string name, Input<string> id, OksProjectState? state, CustomResourceOptions? opts = null)
public static OksProject get(String name, Output<String> id, OksProjectState state, CustomResourceOptions options)
resources: _: type: outscale:OksProject get: id: ${id}
- 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
- The CIDR block to associate with the Net of the project.
- Created
At string - The timestamp when the project was created (date-time).
- Description string
- A description for the project.
- Disable
Api boolTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- Name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- Quirks List<string>
- A list of special configurations or behaviors for the project.
- Region string
- The Region on which the project is deployed.
- Request
Id string - Status string
- The status of the project.
- Dictionary<string, string>
- The key/value combinations of the tags associated with the resource.
- Timeouts
Oks
Project Timeouts - Updated
At string - The timestamp when the project was last updated (date-time).
- Cidr string
- The CIDR block to associate with the Net of the project.
- Created
At string - The timestamp when the project was created (date-time).
- Description string
- A description for the project.
- Disable
Api boolTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- Name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- Quirks []string
- A list of special configurations or behaviors for the project.
- Region string
- The Region on which the project is deployed.
- Request
Id string - Status string
- The status of the project.
- map[string]string
- The key/value combinations of the tags associated with the resource.
- Timeouts
Oks
Project Timeouts Args - Updated
At string - The timestamp when the project was last updated (date-time).
- cidr String
- The CIDR block to associate with the Net of the project.
- created
At String - The timestamp when the project was created (date-time).
- description String
- A description for the project.
- disable
Api BooleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name String
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks List<String>
- A list of special configurations or behaviors for the project.
- region String
- The Region on which the project is deployed.
- request
Id String - status String
- The status of the project.
- Map<String,String>
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts - updated
At String - The timestamp when the project was last updated (date-time).
- cidr string
- The CIDR block to associate with the Net of the project.
- created
At string - The timestamp when the project was created (date-time).
- description string
- A description for the project.
- disable
Api booleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name string
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks string[]
- A list of special configurations or behaviors for the project.
- region string
- The Region on which the project is deployed.
- request
Id string - status string
- The status of the project.
- {[key: string]: string}
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts - updated
At string - The timestamp when the project was last updated (date-time).
- cidr str
- The CIDR block to associate with the Net of the project.
- created_
at str - The timestamp when the project was created (date-time).
- description str
- A description for the project.
- disable_
api_ booltermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name str
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks Sequence[str]
- A list of special configurations or behaviors for the project.
- region str
- The Region on which the project is deployed.
- request_
id str - status str
- The status of the project.
- Mapping[str, str]
- The key/value combinations of the tags associated with the resource.
- timeouts
Oks
Project Timeouts Args - updated_
at str - The timestamp when the project was last updated (date-time).
- cidr String
- The CIDR block to associate with the Net of the project.
- created
At String - The timestamp when the project was created (date-time).
- description String
- A description for the project.
- disable
Api BooleanTermination - If true, project deletion through the API is disabled. If false, it is enabled. By default, false.
- name String
- A unique name for the project, between 1 and 40 characters. This name must start with a letter and contain only lowercase letters, numbers, or hyphens.
- quirks List<String>
- A list of special configurations or behaviors for the project.
- region String
- The Region on which the project is deployed.
- request
Id String - status String
- The status of the project.
- Map<String>
- The key/value combinations of the tags associated with the resource.
- timeouts Property Map
- updated
At String - The timestamp when the project was last updated (date-time).
Supporting Types
OksProjectTimeouts, OksProjectTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
An OKS project can be imported using its ID. For example:
console
$ pulumi import outscale:index/oksProject:OksProject project id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.