1. Packages
  2. Harness Provider
  3. API Docs
  4. ChaosInfrastructure
Harness v0.5.3 published on Wednesday, Feb 5, 2025 by Pulumi

harness.ChaosInfrastructure

Explore with Pulumi AI

harness logo
Harness v0.5.3 published on Wednesday, Feb 5, 2025 by Pulumi

    Resource for creating a Chaos Infrastructure.

    Example to create Chaos Infrastructure

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.ChaosInfrastructure("example", {
        identifier: "identifier",
        name: "name",
        orgId: "org_id",
        projectId: "project_id",
        environmentId: "env_id",
        namespace: "namespace",
        serviceAccount: "service_acc_name",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.ChaosInfrastructure("example",
        identifier="identifier",
        name="name",
        org_id="org_id",
        project_id="project_id",
        environment_id="env_id",
        namespace="namespace",
        service_account="service_acc_name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := harness.NewChaosInfrastructure(ctx, "example", &harness.ChaosInfrastructureArgs{
    			Identifier:     pulumi.String("identifier"),
    			Name:           pulumi.String("name"),
    			OrgId:          pulumi.String("org_id"),
    			ProjectId:      pulumi.String("project_id"),
    			EnvironmentId:  pulumi.String("env_id"),
    			Namespace:      pulumi.String("namespace"),
    			ServiceAccount: pulumi.String("service_acc_name"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.ChaosInfrastructure("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            OrgId = "org_id",
            ProjectId = "project_id",
            EnvironmentId = "env_id",
            Namespace = "namespace",
            ServiceAccount = "service_acc_name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.ChaosInfrastructure;
    import com.pulumi.harness.ChaosInfrastructureArgs;
    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 example = new ChaosInfrastructure("example", ChaosInfrastructureArgs.builder()
                .identifier("identifier")
                .name("name")
                .orgId("org_id")
                .projectId("project_id")
                .environmentId("env_id")
                .namespace("namespace")
                .serviceAccount("service_acc_name")
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:ChaosInfrastructure
        properties:
          identifier: identifier
          name: name
          orgId: org_id
          projectId: project_id
          environmentId: env_id
          namespace: namespace
          serviceAccount: service_acc_name
    

    Create ChaosInfrastructure Resource

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

    Constructor syntax

    new ChaosInfrastructure(name: string, args: ChaosInfrastructureArgs, opts?: CustomResourceOptions);
    @overload
    def ChaosInfrastructure(resource_name: str,
                            args: ChaosInfrastructureArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ChaosInfrastructure(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            environment_id: Optional[str] = None,
                            identifier: Optional[str] = None,
                            namespace: Optional[str] = None,
                            service_account: Optional[str] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None,
                            org_id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            tags: Optional[Sequence[str]] = None)
    func NewChaosInfrastructure(ctx *Context, name string, args ChaosInfrastructureArgs, opts ...ResourceOption) (*ChaosInfrastructure, error)
    public ChaosInfrastructure(string name, ChaosInfrastructureArgs args, CustomResourceOptions? opts = null)
    public ChaosInfrastructure(String name, ChaosInfrastructureArgs args)
    public ChaosInfrastructure(String name, ChaosInfrastructureArgs args, CustomResourceOptions options)
    
    type: harness:ChaosInfrastructure
    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 ChaosInfrastructureArgs
    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 ChaosInfrastructureArgs
    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 ChaosInfrastructureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ChaosInfrastructureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ChaosInfrastructureArgs
    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 chaosInfrastructureResource = new Harness.ChaosInfrastructure("chaosInfrastructureResource", new()
    {
        EnvironmentId = "string",
        Identifier = "string",
        Namespace = "string",
        ServiceAccount = "string",
        Description = "string",
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := harness.NewChaosInfrastructure(ctx, "chaosInfrastructureResource", &harness.ChaosInfrastructureArgs{
    	EnvironmentId:  pulumi.String("string"),
    	Identifier:     pulumi.String("string"),
    	Namespace:      pulumi.String("string"),
    	ServiceAccount: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	OrgId:          pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var chaosInfrastructureResource = new ChaosInfrastructure("chaosInfrastructureResource", ChaosInfrastructureArgs.builder()
        .environmentId("string")
        .identifier("string")
        .namespace("string")
        .serviceAccount("string")
        .description("string")
        .name("string")
        .orgId("string")
        .projectId("string")
        .tags("string")
        .build());
    
    chaos_infrastructure_resource = harness.ChaosInfrastructure("chaosInfrastructureResource",
        environment_id="string",
        identifier="string",
        namespace="string",
        service_account="string",
        description="string",
        name="string",
        org_id="string",
        project_id="string",
        tags=["string"])
    
    const chaosInfrastructureResource = new harness.ChaosInfrastructure("chaosInfrastructureResource", {
        environmentId: "string",
        identifier: "string",
        namespace: "string",
        serviceAccount: "string",
        description: "string",
        name: "string",
        orgId: "string",
        projectId: "string",
        tags: ["string"],
    });
    
    type: harness:ChaosInfrastructure
    properties:
        description: string
        environmentId: string
        identifier: string
        name: string
        namespace: string
        orgId: string
        projectId: string
        serviceAccount: string
        tags:
            - string
    

    ChaosInfrastructure 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 ChaosInfrastructure resource accepts the following input properties:

    EnvironmentId string
    Environment ID of the chaos infrastructure.
    Identifier string
    Unique identifier of the resource.
    Namespace string
    Namespace of the chaos infrastructure.
    ServiceAccount string
    Service Account of the chaos infrastructure.
    Description string
    Description of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource.
    EnvironmentId string
    Environment ID of the chaos infrastructure.
    Identifier string
    Unique identifier of the resource.
    Namespace string
    Namespace of the chaos infrastructure.
    ServiceAccount string
    Service Account of the chaos infrastructure.
    Description string
    Description of the resource.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource.
    environmentId String
    Environment ID of the chaos infrastructure.
    identifier String
    Unique identifier of the resource.
    namespace String
    Namespace of the chaos infrastructure.
    serviceAccount String
    Service Account of the chaos infrastructure.
    description String
    Description of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.
    environmentId string
    Environment ID of the chaos infrastructure.
    identifier string
    Unique identifier of the resource.
    namespace string
    Namespace of the chaos infrastructure.
    serviceAccount string
    Service Account of the chaos infrastructure.
    description string
    Description of the resource.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource.
    environment_id str
    Environment ID of the chaos infrastructure.
    identifier str
    Unique identifier of the resource.
    namespace str
    Namespace of the chaos infrastructure.
    service_account str
    Service Account of the chaos infrastructure.
    description str
    Description of the resource.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource.
    environmentId String
    Environment ID of the chaos infrastructure.
    identifier String
    Unique identifier of the resource.
    namespace String
    Namespace of the chaos infrastructure.
    serviceAccount String
    Service Account of the chaos infrastructure.
    description String
    Description of the resource.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ChaosInfrastructure Resource

    Get an existing ChaosInfrastructure 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?: ChaosInfrastructureState, opts?: CustomResourceOptions): ChaosInfrastructure
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            environment_id: Optional[str] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            service_account: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> ChaosInfrastructure
    func GetChaosInfrastructure(ctx *Context, name string, id IDInput, state *ChaosInfrastructureState, opts ...ResourceOption) (*ChaosInfrastructure, error)
    public static ChaosInfrastructure Get(string name, Input<string> id, ChaosInfrastructureState? state, CustomResourceOptions? opts = null)
    public static ChaosInfrastructure get(String name, Output<String> id, ChaosInfrastructureState state, CustomResourceOptions options)
    resources:  _:    type: harness:ChaosInfrastructure    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.
    The following state arguments are supported:
    Description string
    Description of the resource.
    EnvironmentId string
    Environment ID of the chaos infrastructure.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    Namespace string
    Namespace of the chaos infrastructure.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceAccount string
    Service Account of the chaos infrastructure.
    Tags List<string>
    Tags to associate with the resource.
    Description string
    Description of the resource.
    EnvironmentId string
    Environment ID of the chaos infrastructure.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the resource.
    Namespace string
    Namespace of the chaos infrastructure.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceAccount string
    Service Account of the chaos infrastructure.
    Tags []string
    Tags to associate with the resource.
    description String
    Description of the resource.
    environmentId String
    Environment ID of the chaos infrastructure.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    namespace String
    Namespace of the chaos infrastructure.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceAccount String
    Service Account of the chaos infrastructure.
    tags List<String>
    Tags to associate with the resource.
    description string
    Description of the resource.
    environmentId string
    Environment ID of the chaos infrastructure.
    identifier string
    Unique identifier of the resource.
    name string
    Name of the resource.
    namespace string
    Namespace of the chaos infrastructure.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    serviceAccount string
    Service Account of the chaos infrastructure.
    tags string[]
    Tags to associate with the resource.
    description str
    Description of the resource.
    environment_id str
    Environment ID of the chaos infrastructure.
    identifier str
    Unique identifier of the resource.
    name str
    Name of the resource.
    namespace str
    Namespace of the chaos infrastructure.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    service_account str
    Service Account of the chaos infrastructure.
    tags Sequence[str]
    Tags to associate with the resource.
    description String
    Description of the resource.
    environmentId String
    Environment ID of the chaos infrastructure.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the resource.
    namespace String
    Namespace of the chaos infrastructure.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceAccount String
    Service Account of the chaos infrastructure.
    tags List<String>
    Tags to associate with the resource.

    Import

    Import using the Chaos Infra ID.

    $ pulumi import harness:index/chaosInfrastructure:ChaosInfrastructure example <chaos_infra_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.5.3 published on Wednesday, Feb 5, 2025 by Pulumi