flexibleengine.EnterpriseProject
Explore with Pulumi AI
Use this resource to manage an enterprise project within FlexibleEngine.
Deleting enterprise projects is not support. If you destroy a resource of enterprise project, the project is only disabled and removed from the state, but it remains in the cloud. Please set
insecure = true
in provider block to ignore SSL certificate verification when you got an x509 error.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const test = new flexibleengine.EnterpriseProject("test", {description: "example project"});
import pulumi
import pulumi_flexibleengine as flexibleengine
test = flexibleengine.EnterpriseProject("test", description="example project")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewEnterpriseProject(ctx, "test", &flexibleengine.EnterpriseProjectArgs{
Description: pulumi.String("example project"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var test = new Flexibleengine.EnterpriseProject("test", new()
{
Description = "example project",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.EnterpriseProject;
import com.pulumi.flexibleengine.EnterpriseProjectArgs;
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 test = new EnterpriseProject("test", EnterpriseProjectArgs.builder()
.description("example project")
.build());
}
}
resources:
test:
type: flexibleengine:EnterpriseProject
properties:
description: example project
Create EnterpriseProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnterpriseProject(name: string, args?: EnterpriseProjectArgs, opts?: CustomResourceOptions);
@overload
def EnterpriseProject(resource_name: str,
args: Optional[EnterpriseProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def EnterpriseProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enable: Optional[bool] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
skip_disable_on_destroy: Optional[bool] = None,
timeouts: Optional[EnterpriseProjectTimeoutsArgs] = None,
type: Optional[str] = None)
func NewEnterpriseProject(ctx *Context, name string, args *EnterpriseProjectArgs, opts ...ResourceOption) (*EnterpriseProject, error)
public EnterpriseProject(string name, EnterpriseProjectArgs? args = null, CustomResourceOptions? opts = null)
public EnterpriseProject(String name, EnterpriseProjectArgs args)
public EnterpriseProject(String name, EnterpriseProjectArgs args, CustomResourceOptions options)
type: flexibleengine:EnterpriseProject
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 EnterpriseProjectArgs
- 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 EnterpriseProjectArgs
- 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 EnterpriseProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnterpriseProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnterpriseProjectArgs
- 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 enterpriseProjectResource = new Flexibleengine.EnterpriseProject("enterpriseProjectResource", new()
{
Description = "string",
Enable = false,
EnterpriseProjectId = "string",
Name = "string",
SkipDisableOnDestroy = false,
Timeouts = new Flexibleengine.Inputs.EnterpriseProjectTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Type = "string",
});
example, err := flexibleengine.NewEnterpriseProject(ctx, "enterpriseProjectResource", &flexibleengine.EnterpriseProjectArgs{
Description: pulumi.String("string"),
Enable: pulumi.Bool(false),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
SkipDisableOnDestroy: pulumi.Bool(false),
Timeouts: &flexibleengine.EnterpriseProjectTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var enterpriseProjectResource = new EnterpriseProject("enterpriseProjectResource", EnterpriseProjectArgs.builder()
.description("string")
.enable(false)
.enterpriseProjectId("string")
.name("string")
.skipDisableOnDestroy(false)
.timeouts(EnterpriseProjectTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.type("string")
.build());
enterprise_project_resource = flexibleengine.EnterpriseProject("enterpriseProjectResource",
description="string",
enable=False,
enterprise_project_id="string",
name="string",
skip_disable_on_destroy=False,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
type="string")
const enterpriseProjectResource = new flexibleengine.EnterpriseProject("enterpriseProjectResource", {
description: "string",
enable: false,
enterpriseProjectId: "string",
name: "string",
skipDisableOnDestroy: false,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
type: "string",
});
type: flexibleengine:EnterpriseProject
properties:
description: string
enable: false
enterpriseProjectId: string
name: string
skipDisableOnDestroy: false
timeouts:
create: string
delete: string
update: string
type: string
EnterpriseProject 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 EnterpriseProject resource accepts the following input properties:
- Description string
- Specifies the description of the enterprise project.
- Enable bool
- Specifies whether to enable the enterprise project. Default to true.
- Enterprise
Project stringId - Name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- Skip
Disable boolOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- Timeouts
Enterprise
Project Timeouts - Type string
- Indicates the type of the enterprise project.
- Description string
- Specifies the description of the enterprise project.
- Enable bool
- Specifies whether to enable the enterprise project. Default to true.
- Enterprise
Project stringId - Name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- Skip
Disable boolOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- Timeouts
Enterprise
Project Timeouts Args - Type string
- Indicates the type of the enterprise project.
- description String
- Specifies the description of the enterprise project.
- enable Boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project StringId - name String
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable BooleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- timeouts
Enterprise
Project Timeouts - type String
- Indicates the type of the enterprise project.
- description string
- Specifies the description of the enterprise project.
- enable boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project stringId - name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable booleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- timeouts
Enterprise
Project Timeouts - type string
- Indicates the type of the enterprise project.
- description str
- Specifies the description of the enterprise project.
- enable bool
- Specifies whether to enable the enterprise project. Default to true.
- enterprise_
project_ strid - name str
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip_
disable_ boolon_ destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- timeouts
Enterprise
Project Timeouts Args - type str
- Indicates the type of the enterprise project.
- description String
- Specifies the description of the enterprise project.
- enable Boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project StringId - name String
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable BooleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- timeouts Property Map
- type String
- Indicates the type of the enterprise project.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnterpriseProject resource produces the following output properties:
- Created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Status double
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- Updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- Created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Status float64
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- Updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At String - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- id String
- The provider-assigned unique ID for this managed resource.
- status Double
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- updated
At String - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- id string
- The provider-assigned unique ID for this managed resource.
- status number
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created_
at str - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- id str
- The provider-assigned unique ID for this managed resource.
- status float
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- updated_
at str - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At String - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- id String
- The provider-assigned unique ID for this managed resource.
- status Number
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- updated
At String - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
Look up Existing EnterpriseProject Resource
Get an existing EnterpriseProject 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?: EnterpriseProjectState, opts?: CustomResourceOptions): EnterpriseProject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[bool] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
skip_disable_on_destroy: Optional[bool] = None,
status: Optional[float] = None,
timeouts: Optional[EnterpriseProjectTimeoutsArgs] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> EnterpriseProject
func GetEnterpriseProject(ctx *Context, name string, id IDInput, state *EnterpriseProjectState, opts ...ResourceOption) (*EnterpriseProject, error)
public static EnterpriseProject Get(string name, Input<string> id, EnterpriseProjectState? state, CustomResourceOptions? opts = null)
public static EnterpriseProject get(String name, Output<String> id, EnterpriseProjectState state, CustomResourceOptions options)
resources: _: type: flexibleengine:EnterpriseProject 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.
- Created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- Description string
- Specifies the description of the enterprise project.
- Enable bool
- Specifies whether to enable the enterprise project. Default to true.
- Enterprise
Project stringId - Name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- Skip
Disable boolOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- Status double
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- Timeouts
Enterprise
Project Timeouts - Type string
- Indicates the type of the enterprise project.
- Updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- Created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- Description string
- Specifies the description of the enterprise project.
- Enable bool
- Specifies whether to enable the enterprise project. Default to true.
- Enterprise
Project stringId - Name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- Skip
Disable boolOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- Status float64
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- Timeouts
Enterprise
Project Timeouts Args - Type string
- Indicates the type of the enterprise project.
- Updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At String - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- description String
- Specifies the description of the enterprise project.
- enable Boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project StringId - name String
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable BooleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- status Double
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- timeouts
Enterprise
Project Timeouts - type String
- Indicates the type of the enterprise project.
- updated
At String - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At string - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- description string
- Specifies the description of the enterprise project.
- enable boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project stringId - name string
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable booleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- status number
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- timeouts
Enterprise
Project Timeouts - type string
- Indicates the type of the enterprise project.
- updated
At string - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created_
at str - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- description str
- Specifies the description of the enterprise project.
- enable bool
- Specifies whether to enable the enterprise project. Default to true.
- enterprise_
project_ strid - name str
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip_
disable_ boolon_ destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- status float
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- timeouts
Enterprise
Project Timeouts Args - type str
- Indicates the type of the enterprise project.
- updated_
at str - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
- created
At String - Indicates the UTC time when the enterprise project was created. Example: 2018-05-18T06:49:06Z
- description String
- Specifies the description of the enterprise project.
- enable Boolean
- Specifies whether to enable the enterprise project. Default to true.
- enterprise
Project StringId - name String
- Specifies the name of the enterprise project. This parameter can contain 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default" ("deFaulT", for instance).
- skip
Disable BooleanOn Destroy - Specifies whether to skip disable the enterprise project on destroy. Defaults to false.
- status Number
- Indicates the status of an enterprise project.
- 1 indicates Enabled.
- 2 indicates Disabled.
- timeouts Property Map
- type String
- Indicates the type of the enterprise project.
- updated
At String - Indicates the UTC time when the enterprise project was modified. Example: 2018-05-28T02:21:36Z
Supporting Types
EnterpriseProjectTimeouts, EnterpriseProjectTimeoutsArgs
Import
Enterprise projects can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/enterpriseProject:EnterpriseProject test 88f889c7-270e-4e77-8230-bf7db08d9b0e
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.