1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. Environment
Pulumi Cloud v0.26.1 published on Wednesday, Sep 25, 2024 by Pulumi

pulumiservice.Environment

Explore with Pulumi AI

pulumiservice logo
Pulumi Cloud v0.26.1 published on Wednesday, Sep 25, 2024 by Pulumi

    An ESC Environment.

    Create Environment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def Environment(resource_name: str,
                    args: EnvironmentArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Environment(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    name: Optional[str] = None,
                    organization: Optional[str] = None,
                    yaml: Optional[Union[pulumi.Asset, pulumi.Archive]] = None,
                    project: Optional[str] = None)
    func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
    public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
    public Environment(String name, EnvironmentArgs args)
    public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
    
    type: pulumiservice:Environment
    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 EnvironmentArgs
    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 EnvironmentArgs
    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 EnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentArgs
    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 environmentResource = new PulumiService.Environment("environmentResource", new()
    {
        Name = "string",
        Organization = "string",
        Yaml = new StringAsset("content"),
        Project = "string",
    });
    
    example, err := pulumiservice.NewEnvironment(ctx, "environmentResource", &pulumiservice.EnvironmentArgs{
    	Name:         pulumi.String("string"),
    	Organization: pulumi.String("string"),
    	Yaml:         pulumi.NewStringAsset("content"),
    	Project:      pulumi.String("string"),
    })
    
    var environmentResource = new Environment("environmentResource", EnvironmentArgs.builder()
        .name("string")
        .organization("string")
        .yaml(new StringAsset("content"))
        .project("string")
        .build());
    
    environment_resource = pulumiservice.Environment("environmentResource",
        name="string",
        organization="string",
        yaml=pulumi.StringAsset("content"),
        project="string")
    
    const environmentResource = new pulumiservice.Environment("environmentResource", {
        name: "string",
        organization: "string",
        yaml: new pulumi.asset.StringAsset("content"),
        project: "string",
    });
    
    type: pulumiservice:Environment
    properties:
        name: string
        organization: string
        project: string
        yaml:
            fn::StringAsset: content
    

    Environment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Environment resource accepts the following input properties:

    Name string
    Environment name.
    Organization string
    Organization name.
    Yaml AssetOrArchive
    Environment's yaml file.
    Project string
    Project name.
    Name string
    Environment name.
    Organization string
    Organization name.
    Yaml pulumi.AssetOrArchive
    Environment's yaml file.
    Project string
    Project name.
    name String
    Environment name.
    organization String
    Organization name.
    yaml AssetOrArchive
    Environment's yaml file.
    project String
    Project name.
    name string
    Environment name.
    organization string
    Organization name.
    yaml pulumi.asset.Asset | pulumi.asset.Archive
    Environment's yaml file.
    project string
    Project name.
    name str
    Environment name.
    organization str
    Organization name.
    yaml Union[pulumi.Asset, pulumi.Archive]
    Environment's yaml file.
    project str
    Project name.
    name String
    Environment name.
    organization String
    Organization name.
    yaml Asset
    Environment's yaml file.
    project String
    Project name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Revision int
    Revision number of the latest version.
    Id string
    The provider-assigned unique ID for this managed resource.
    Revision int
    Revision number of the latest version.
    id String
    The provider-assigned unique ID for this managed resource.
    revision Integer
    Revision number of the latest version.
    id string
    The provider-assigned unique ID for this managed resource.
    revision number
    Revision number of the latest version.
    id str
    The provider-assigned unique ID for this managed resource.
    revision int
    Revision number of the latest version.
    id String
    The provider-assigned unique ID for this managed resource.
    revision Number
    Revision number of the latest version.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo
    Pulumi Cloud v0.26.1 published on Wednesday, Sep 25, 2024 by Pulumi