chaosstudio

package
v6.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability struct {
	pulumi.CustomResourceState

	// The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created.
	CapabilityType pulumi.StringOutput `pulumi:"capabilityType"`
	// The Unique Resource Name of the Capability.
	CapabilityUrn pulumi.StringOutput `pulumi:"capabilityUrn"`
	// The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created.
	ChaosStudioTargetId pulumi.StringOutput `pulumi:"chaosStudioTargetId"`
}

Manages a Chaos Studio Capability.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		example, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{
			Name:              pulumi.String("example"),
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			DnsPrefix:         pulumi.String("acctestaksexample"),
			DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{
				Name:      pulumi.String("example-value"),
				NodeCount: pulumi.Int("example-value"),
				VmSize:    pulumi.String("example-value"),
			},
			Identity: &containerservice.KubernetesClusterIdentityArgs{
				Type: pulumi.String("example-value"),
			},
		})
		if err != nil {
			return err
		}
		exampleTarget, err := chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{
			Location:         exampleResourceGroup.Location,
			TargetResourceId: example.ID(),
			TargetType:       pulumi.String("example-value"),
		})
		if err != nil {
			return err
		}
		_, err = chaosstudio.NewCapability(ctx, "example", &chaosstudio.CapabilityArgs{
			CapabilityType:      pulumi.String("example-value"),
			ChaosStudioTargetId: exampleTarget.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g.

```sh $ pulumi import azure:chaosstudio/capability:Capability example /{scope}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName} ```

* Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`.

* Where `{targetName}` is the name of the Target. For example `targetValue`.

* Where `{capabilityName}` is the name of the Capability. For example `capabilityName`.

func GetCapability

func GetCapability(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CapabilityState, opts ...pulumi.ResourceOption) (*Capability, error)

GetCapability gets an existing Capability resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCapability

func NewCapability(ctx *pulumi.Context,
	name string, args *CapabilityArgs, opts ...pulumi.ResourceOption) (*Capability, error)

NewCapability registers a new resource with the given unique name, arguments, and options.

func (*Capability) ElementType

func (*Capability) ElementType() reflect.Type

func (*Capability) ToCapabilityOutput

func (i *Capability) ToCapabilityOutput() CapabilityOutput

func (*Capability) ToCapabilityOutputWithContext

func (i *Capability) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput

type CapabilityArgs

type CapabilityArgs struct {
	// The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created.
	CapabilityType pulumi.StringInput
	// The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created.
	ChaosStudioTargetId pulumi.StringInput
}

The set of arguments for constructing a Capability resource.

func (CapabilityArgs) ElementType

func (CapabilityArgs) ElementType() reflect.Type

type CapabilityArray

type CapabilityArray []CapabilityInput

func (CapabilityArray) ElementType

func (CapabilityArray) ElementType() reflect.Type

func (CapabilityArray) ToCapabilityArrayOutput

func (i CapabilityArray) ToCapabilityArrayOutput() CapabilityArrayOutput

func (CapabilityArray) ToCapabilityArrayOutputWithContext

func (i CapabilityArray) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput

type CapabilityArrayInput

type CapabilityArrayInput interface {
	pulumi.Input

	ToCapabilityArrayOutput() CapabilityArrayOutput
	ToCapabilityArrayOutputWithContext(context.Context) CapabilityArrayOutput
}

CapabilityArrayInput is an input type that accepts CapabilityArray and CapabilityArrayOutput values. You can construct a concrete instance of `CapabilityArrayInput` via:

CapabilityArray{ CapabilityArgs{...} }

type CapabilityArrayOutput

type CapabilityArrayOutput struct{ *pulumi.OutputState }

func (CapabilityArrayOutput) ElementType

func (CapabilityArrayOutput) ElementType() reflect.Type

func (CapabilityArrayOutput) Index

func (CapabilityArrayOutput) ToCapabilityArrayOutput

func (o CapabilityArrayOutput) ToCapabilityArrayOutput() CapabilityArrayOutput

func (CapabilityArrayOutput) ToCapabilityArrayOutputWithContext

func (o CapabilityArrayOutput) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput

type CapabilityInput

type CapabilityInput interface {
	pulumi.Input

	ToCapabilityOutput() CapabilityOutput
	ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput
}

type CapabilityMap

type CapabilityMap map[string]CapabilityInput

func (CapabilityMap) ElementType

func (CapabilityMap) ElementType() reflect.Type

func (CapabilityMap) ToCapabilityMapOutput

func (i CapabilityMap) ToCapabilityMapOutput() CapabilityMapOutput

func (CapabilityMap) ToCapabilityMapOutputWithContext

func (i CapabilityMap) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput

type CapabilityMapInput

type CapabilityMapInput interface {
	pulumi.Input

	ToCapabilityMapOutput() CapabilityMapOutput
	ToCapabilityMapOutputWithContext(context.Context) CapabilityMapOutput
}

CapabilityMapInput is an input type that accepts CapabilityMap and CapabilityMapOutput values. You can construct a concrete instance of `CapabilityMapInput` via:

CapabilityMap{ "key": CapabilityArgs{...} }

type CapabilityMapOutput

type CapabilityMapOutput struct{ *pulumi.OutputState }

func (CapabilityMapOutput) ElementType

func (CapabilityMapOutput) ElementType() reflect.Type

func (CapabilityMapOutput) MapIndex

func (CapabilityMapOutput) ToCapabilityMapOutput

func (o CapabilityMapOutput) ToCapabilityMapOutput() CapabilityMapOutput

func (CapabilityMapOutput) ToCapabilityMapOutputWithContext

func (o CapabilityMapOutput) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput

type CapabilityOutput

type CapabilityOutput struct{ *pulumi.OutputState }

func (CapabilityOutput) CapabilityType

func (o CapabilityOutput) CapabilityType() pulumi.StringOutput

The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created.

func (CapabilityOutput) CapabilityUrn

func (o CapabilityOutput) CapabilityUrn() pulumi.StringOutput

The Unique Resource Name of the Capability.

func (CapabilityOutput) ChaosStudioTargetId

func (o CapabilityOutput) ChaosStudioTargetId() pulumi.StringOutput

The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created.

func (CapabilityOutput) ElementType

func (CapabilityOutput) ElementType() reflect.Type

func (CapabilityOutput) ToCapabilityOutput

func (o CapabilityOutput) ToCapabilityOutput() CapabilityOutput

func (CapabilityOutput) ToCapabilityOutputWithContext

func (o CapabilityOutput) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput

type CapabilityState

type CapabilityState struct {
	// The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created.
	CapabilityType pulumi.StringPtrInput
	// The Unique Resource Name of the Capability.
	CapabilityUrn pulumi.StringPtrInput
	// The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created.
	ChaosStudioTargetId pulumi.StringPtrInput
}

func (CapabilityState) ElementType

func (CapabilityState) ElementType() reflect.Type

type Experiment

type Experiment struct {
	pulumi.CustomResourceState

	// A `identity` block as defined below.
	Identity ExperimentIdentityPtrOutput `pulumi:"identity"`
	// The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// One or more `selectors` blocks as defined below.
	Selectors ExperimentSelectorArrayOutput `pulumi:"selectors"`
	// One or more `steps` blocks as defined below.
	Steps ExperimentStepArrayOutput `pulumi:"steps"`
}

Manages a Chaos Studio Experiment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example"),
			Location: pulumi.String("westeurope"),
		})
		if err != nil {
			return err
		}
		_, err = authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Name:              pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name: pulumi.String("example"),
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
			Name:               pulumi.String("internal"),
			ResourceGroupName:  example.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
		})
		if err != nil {
			return err
		}
		exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{
			Name:              pulumi.String("example"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
				&network.NetworkInterfaceIpConfigurationArgs{
					Name:                       pulumi.String("example"),
					SubnetId:                   exampleSubnet.ID(),
					PrivateIpAddressAllocation: pulumi.String("Dynamic"),
				},
			},
		})
		if err != nil {
			return err
		}
		exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{
			Name:                          pulumi.String("example"),
			ResourceGroupName:             example.Name,
			Location:                      example.Location,
			Size:                          pulumi.String("Standard_F2"),
			AdminUsername:                 pulumi.String("adminuser"),
			AdminPassword:                 pulumi.String("example"),
			DisablePasswordAuthentication: pulumi.Bool(false),
			NetworkInterfaceIds: pulumi.StringArray{
				exampleNetworkInterface.ID(),
			},
			OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{
				Caching:            pulumi.String("ReadWrite"),
				StorageAccountType: pulumi.String("Standard_LRS"),
			},
			SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{
				Publisher: pulumi.String("Canonical"),
				Offer:     pulumi.String("0001-com-ubuntu-server-jammy"),
				Sku:       pulumi.String("22_04-lts"),
				Version:   pulumi.String("latest"),
			},
		})
		if err != nil {
			return err
		}
		exampleTarget, err := chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{
			Location:         example.Location,
			TargetResourceId: exampleLinuxVirtualMachine.ID(),
			TargetType:       pulumi.String("Microsoft-VirtualMachine"),
		})
		if err != nil {
			return err
		}
		exampleCapability, err := chaosstudio.NewCapability(ctx, "example", &chaosstudio.CapabilityArgs{
			ChaosStudioTargetId: exampleTarget.ID(),
			CapabilityType:      pulumi.String("Shutdown-1.0"),
		})
		if err != nil {
			return err
		}
		_, err = chaosstudio.NewExperiment(ctx, "example", &chaosstudio.ExperimentArgs{
			Location:          example.Location,
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
			Identity: &chaosstudio.ExperimentIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
			Selectors: chaosstudio.ExperimentSelectorArray{
				&chaosstudio.ExperimentSelectorArgs{
					Name: pulumi.String("Selector1"),
					ChaosStudioTargetIds: pulumi.StringArray{
						exampleTarget.ID(),
					},
				},
			},
			Steps: chaosstudio.ExperimentStepArray{
				&chaosstudio.ExperimentStepArgs{
					Name: pulumi.String("example"),
					Branches: chaosstudio.ExperimentStepBranchArray{
						&chaosstudio.ExperimentStepBranchArgs{
							Name: pulumi.String("example"),
							Actions: chaosstudio.ExperimentStepBranchActionArray{
								&chaosstudio.ExperimentStepBranchActionArgs{
									Urn:          exampleCapability.CapabilityUrn,
									SelectorName: pulumi.String("Selector1"),
									Parameters: pulumi.StringMap{
										"abruptShutdown": pulumi.String("false"),
									},
									ActionType: pulumi.String("continuous"),
									Duration:   pulumi.String("PT10M"),
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Chaos Studio Experiments can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:chaosstudio/experiment:Experiment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Chaos/experiments/experiment1 ```

func GetExperiment

func GetExperiment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExperimentState, opts ...pulumi.ResourceOption) (*Experiment, error)

GetExperiment gets an existing Experiment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExperiment

func NewExperiment(ctx *pulumi.Context,
	name string, args *ExperimentArgs, opts ...pulumi.ResourceOption) (*Experiment, error)

NewExperiment registers a new resource with the given unique name, arguments, and options.

func (*Experiment) ElementType

func (*Experiment) ElementType() reflect.Type

func (*Experiment) ToExperimentOutput

func (i *Experiment) ToExperimentOutput() ExperimentOutput

func (*Experiment) ToExperimentOutputWithContext

func (i *Experiment) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput

type ExperimentArgs

type ExperimentArgs struct {
	// A `identity` block as defined below.
	Identity ExperimentIdentityPtrInput
	// The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	ResourceGroupName pulumi.StringInput
	// One or more `selectors` blocks as defined below.
	Selectors ExperimentSelectorArrayInput
	// One or more `steps` blocks as defined below.
	Steps ExperimentStepArrayInput
}

The set of arguments for constructing a Experiment resource.

func (ExperimentArgs) ElementType

func (ExperimentArgs) ElementType() reflect.Type

type ExperimentArray

type ExperimentArray []ExperimentInput

func (ExperimentArray) ElementType

func (ExperimentArray) ElementType() reflect.Type

func (ExperimentArray) ToExperimentArrayOutput

func (i ExperimentArray) ToExperimentArrayOutput() ExperimentArrayOutput

func (ExperimentArray) ToExperimentArrayOutputWithContext

func (i ExperimentArray) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput

type ExperimentArrayInput

type ExperimentArrayInput interface {
	pulumi.Input

	ToExperimentArrayOutput() ExperimentArrayOutput
	ToExperimentArrayOutputWithContext(context.Context) ExperimentArrayOutput
}

ExperimentArrayInput is an input type that accepts ExperimentArray and ExperimentArrayOutput values. You can construct a concrete instance of `ExperimentArrayInput` via:

ExperimentArray{ ExperimentArgs{...} }

type ExperimentArrayOutput

type ExperimentArrayOutput struct{ *pulumi.OutputState }

func (ExperimentArrayOutput) ElementType

func (ExperimentArrayOutput) ElementType() reflect.Type

func (ExperimentArrayOutput) Index

func (ExperimentArrayOutput) ToExperimentArrayOutput

func (o ExperimentArrayOutput) ToExperimentArrayOutput() ExperimentArrayOutput

func (ExperimentArrayOutput) ToExperimentArrayOutputWithContext

func (o ExperimentArrayOutput) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput

type ExperimentIdentity

type ExperimentIdentity struct {
	// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
	//
	// > **NOTE:** This is required when `type` is set to `UserAssigned`.
	IdentityIds []string `pulumi:"identityIds"`
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId *string `pulumi:"tenantId"`
	// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
	Type string `pulumi:"type"`
}

type ExperimentIdentityArgs

type ExperimentIdentityArgs struct {
	// A list of User Managed Identity IDs which should be assigned to the Policy Definition.
	//
	// > **NOTE:** This is required when `type` is set to `UserAssigned`.
	IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (ExperimentIdentityArgs) ElementType

func (ExperimentIdentityArgs) ElementType() reflect.Type

func (ExperimentIdentityArgs) ToExperimentIdentityOutput

func (i ExperimentIdentityArgs) ToExperimentIdentityOutput() ExperimentIdentityOutput

func (ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext

func (i ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput

func (ExperimentIdentityArgs) ToExperimentIdentityPtrOutput

func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput

func (ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext

func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput

type ExperimentIdentityInput

type ExperimentIdentityInput interface {
	pulumi.Input

	ToExperimentIdentityOutput() ExperimentIdentityOutput
	ToExperimentIdentityOutputWithContext(context.Context) ExperimentIdentityOutput
}

ExperimentIdentityInput is an input type that accepts ExperimentIdentityArgs and ExperimentIdentityOutput values. You can construct a concrete instance of `ExperimentIdentityInput` via:

ExperimentIdentityArgs{...}

type ExperimentIdentityOutput

type ExperimentIdentityOutput struct{ *pulumi.OutputState }

func (ExperimentIdentityOutput) ElementType

func (ExperimentIdentityOutput) ElementType() reflect.Type

func (ExperimentIdentityOutput) IdentityIds

A list of User Managed Identity IDs which should be assigned to the Policy Definition.

> **NOTE:** This is required when `type` is set to `UserAssigned`.

func (ExperimentIdentityOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (ExperimentIdentityOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (ExperimentIdentityOutput) ToExperimentIdentityOutput

func (o ExperimentIdentityOutput) ToExperimentIdentityOutput() ExperimentIdentityOutput

func (ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext

func (o ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput

func (ExperimentIdentityOutput) ToExperimentIdentityPtrOutput

func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput

func (ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext

func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput

func (ExperimentIdentityOutput) Type

The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.

type ExperimentIdentityPtrInput

type ExperimentIdentityPtrInput interface {
	pulumi.Input

	ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
	ToExperimentIdentityPtrOutputWithContext(context.Context) ExperimentIdentityPtrOutput
}

ExperimentIdentityPtrInput is an input type that accepts ExperimentIdentityArgs, ExperimentIdentityPtr and ExperimentIdentityPtrOutput values. You can construct a concrete instance of `ExperimentIdentityPtrInput` via:

        ExperimentIdentityArgs{...}

or:

        nil

type ExperimentIdentityPtrOutput

type ExperimentIdentityPtrOutput struct{ *pulumi.OutputState }

func (ExperimentIdentityPtrOutput) Elem

func (ExperimentIdentityPtrOutput) ElementType

func (ExperimentIdentityPtrOutput) IdentityIds

A list of User Managed Identity IDs which should be assigned to the Policy Definition.

> **NOTE:** This is required when `type` is set to `UserAssigned`.

func (ExperimentIdentityPtrOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (ExperimentIdentityPtrOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput

func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput

func (ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext

func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput

func (ExperimentIdentityPtrOutput) Type

The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.

type ExperimentInput

type ExperimentInput interface {
	pulumi.Input

	ToExperimentOutput() ExperimentOutput
	ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput
}

type ExperimentMap

type ExperimentMap map[string]ExperimentInput

func (ExperimentMap) ElementType

func (ExperimentMap) ElementType() reflect.Type

func (ExperimentMap) ToExperimentMapOutput

func (i ExperimentMap) ToExperimentMapOutput() ExperimentMapOutput

func (ExperimentMap) ToExperimentMapOutputWithContext

func (i ExperimentMap) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput

type ExperimentMapInput

type ExperimentMapInput interface {
	pulumi.Input

	ToExperimentMapOutput() ExperimentMapOutput
	ToExperimentMapOutputWithContext(context.Context) ExperimentMapOutput
}

ExperimentMapInput is an input type that accepts ExperimentMap and ExperimentMapOutput values. You can construct a concrete instance of `ExperimentMapInput` via:

ExperimentMap{ "key": ExperimentArgs{...} }

type ExperimentMapOutput

type ExperimentMapOutput struct{ *pulumi.OutputState }

func (ExperimentMapOutput) ElementType

func (ExperimentMapOutput) ElementType() reflect.Type

func (ExperimentMapOutput) MapIndex

func (ExperimentMapOutput) ToExperimentMapOutput

func (o ExperimentMapOutput) ToExperimentMapOutput() ExperimentMapOutput

func (ExperimentMapOutput) ToExperimentMapOutputWithContext

func (o ExperimentMapOutput) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput

type ExperimentOutput

type ExperimentOutput struct{ *pulumi.OutputState }

func (ExperimentOutput) ElementType

func (ExperimentOutput) ElementType() reflect.Type

func (ExperimentOutput) Identity

A `identity` block as defined below.

func (ExperimentOutput) Location

func (o ExperimentOutput) Location() pulumi.StringOutput

The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.

func (ExperimentOutput) Name

The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created.

func (ExperimentOutput) ResourceGroupName

func (o ExperimentOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.

func (ExperimentOutput) Selectors

One or more `selectors` blocks as defined below.

func (ExperimentOutput) Steps

One or more `steps` blocks as defined below.

func (ExperimentOutput) ToExperimentOutput

func (o ExperimentOutput) ToExperimentOutput() ExperimentOutput

func (ExperimentOutput) ToExperimentOutputWithContext

func (o ExperimentOutput) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput

type ExperimentSelector

type ExperimentSelector struct {
	// A list of Chaos Studio Target IDs that should be part of this Selector.
	ChaosStudioTargetIds []string `pulumi:"chaosStudioTargetIds"`
	// The name of this Selector.
	Name string `pulumi:"name"`
}

type ExperimentSelectorArgs

type ExperimentSelectorArgs struct {
	// A list of Chaos Studio Target IDs that should be part of this Selector.
	ChaosStudioTargetIds pulumi.StringArrayInput `pulumi:"chaosStudioTargetIds"`
	// The name of this Selector.
	Name pulumi.StringInput `pulumi:"name"`
}

func (ExperimentSelectorArgs) ElementType

func (ExperimentSelectorArgs) ElementType() reflect.Type

func (ExperimentSelectorArgs) ToExperimentSelectorOutput

func (i ExperimentSelectorArgs) ToExperimentSelectorOutput() ExperimentSelectorOutput

func (ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext

func (i ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput

type ExperimentSelectorArray

type ExperimentSelectorArray []ExperimentSelectorInput

func (ExperimentSelectorArray) ElementType

func (ExperimentSelectorArray) ElementType() reflect.Type

func (ExperimentSelectorArray) ToExperimentSelectorArrayOutput

func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput

func (ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext

func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput

type ExperimentSelectorArrayInput

type ExperimentSelectorArrayInput interface {
	pulumi.Input

	ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput
	ToExperimentSelectorArrayOutputWithContext(context.Context) ExperimentSelectorArrayOutput
}

ExperimentSelectorArrayInput is an input type that accepts ExperimentSelectorArray and ExperimentSelectorArrayOutput values. You can construct a concrete instance of `ExperimentSelectorArrayInput` via:

ExperimentSelectorArray{ ExperimentSelectorArgs{...} }

type ExperimentSelectorArrayOutput

type ExperimentSelectorArrayOutput struct{ *pulumi.OutputState }

func (ExperimentSelectorArrayOutput) ElementType

func (ExperimentSelectorArrayOutput) Index

func (ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput

func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput

func (ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext

func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput

type ExperimentSelectorInput

type ExperimentSelectorInput interface {
	pulumi.Input

	ToExperimentSelectorOutput() ExperimentSelectorOutput
	ToExperimentSelectorOutputWithContext(context.Context) ExperimentSelectorOutput
}

ExperimentSelectorInput is an input type that accepts ExperimentSelectorArgs and ExperimentSelectorOutput values. You can construct a concrete instance of `ExperimentSelectorInput` via:

ExperimentSelectorArgs{...}

type ExperimentSelectorOutput

type ExperimentSelectorOutput struct{ *pulumi.OutputState }

func (ExperimentSelectorOutput) ChaosStudioTargetIds

func (o ExperimentSelectorOutput) ChaosStudioTargetIds() pulumi.StringArrayOutput

A list of Chaos Studio Target IDs that should be part of this Selector.

func (ExperimentSelectorOutput) ElementType

func (ExperimentSelectorOutput) ElementType() reflect.Type

func (ExperimentSelectorOutput) Name

The name of this Selector.

func (ExperimentSelectorOutput) ToExperimentSelectorOutput

func (o ExperimentSelectorOutput) ToExperimentSelectorOutput() ExperimentSelectorOutput

func (ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext

func (o ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput

type ExperimentState

type ExperimentState struct {
	// A `identity` block as defined below.
	Identity ExperimentIdentityPtrInput
	// The Azure Region where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Chaos Studio Experiment. Changing this forces a new Chaos Studio Experiment to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Chaos Studio Experiment should exist. Changing this forces a new Chaos Studio Experiment to be created.
	ResourceGroupName pulumi.StringPtrInput
	// One or more `selectors` blocks as defined below.
	Selectors ExperimentSelectorArrayInput
	// One or more `steps` blocks as defined below.
	Steps ExperimentStepArrayInput
}

func (ExperimentState) ElementType

func (ExperimentState) ElementType() reflect.Type

type ExperimentStep

type ExperimentStep struct {
	// One or more `branch` blocks as defined above.
	Branches []ExperimentStepBranch `pulumi:"branches"`
	// The name of the Step.
	Name string `pulumi:"name"`
}

type ExperimentStepArgs

type ExperimentStepArgs struct {
	// One or more `branch` blocks as defined above.
	Branches ExperimentStepBranchArrayInput `pulumi:"branches"`
	// The name of the Step.
	Name pulumi.StringInput `pulumi:"name"`
}

func (ExperimentStepArgs) ElementType

func (ExperimentStepArgs) ElementType() reflect.Type

func (ExperimentStepArgs) ToExperimentStepOutput

func (i ExperimentStepArgs) ToExperimentStepOutput() ExperimentStepOutput

func (ExperimentStepArgs) ToExperimentStepOutputWithContext

func (i ExperimentStepArgs) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput

type ExperimentStepArray

type ExperimentStepArray []ExperimentStepInput

func (ExperimentStepArray) ElementType

func (ExperimentStepArray) ElementType() reflect.Type

func (ExperimentStepArray) ToExperimentStepArrayOutput

func (i ExperimentStepArray) ToExperimentStepArrayOutput() ExperimentStepArrayOutput

func (ExperimentStepArray) ToExperimentStepArrayOutputWithContext

func (i ExperimentStepArray) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput

type ExperimentStepArrayInput

type ExperimentStepArrayInput interface {
	pulumi.Input

	ToExperimentStepArrayOutput() ExperimentStepArrayOutput
	ToExperimentStepArrayOutputWithContext(context.Context) ExperimentStepArrayOutput
}

ExperimentStepArrayInput is an input type that accepts ExperimentStepArray and ExperimentStepArrayOutput values. You can construct a concrete instance of `ExperimentStepArrayInput` via:

ExperimentStepArray{ ExperimentStepArgs{...} }

type ExperimentStepArrayOutput

type ExperimentStepArrayOutput struct{ *pulumi.OutputState }

func (ExperimentStepArrayOutput) ElementType

func (ExperimentStepArrayOutput) ElementType() reflect.Type

func (ExperimentStepArrayOutput) Index

func (ExperimentStepArrayOutput) ToExperimentStepArrayOutput

func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutput() ExperimentStepArrayOutput

func (ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext

func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput

type ExperimentStepBranch

type ExperimentStepBranch struct {
	// One or more `actions` blocks as defined above.
	Actions []ExperimentStepBranchAction `pulumi:"actions"`
	// The name of the branch.
	Name string `pulumi:"name"`
}

type ExperimentStepBranchAction

type ExperimentStepBranchAction struct {
	// The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
	ActionType string `pulumi:"actionType"`
	// An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
	Duration *string `pulumi:"duration"`
	// A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)
	Parameters map[string]string `pulumi:"parameters"`
	// The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.
	SelectorName *string `pulumi:"selectorName"`
	// The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.
	Urn *string `pulumi:"urn"`
}

type ExperimentStepBranchActionArgs

type ExperimentStepBranchActionArgs struct {
	// The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
	ActionType pulumi.StringInput `pulumi:"actionType"`
	// An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
	Duration pulumi.StringPtrInput `pulumi:"duration"`
	// A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)
	Parameters pulumi.StringMapInput `pulumi:"parameters"`
	// The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.
	SelectorName pulumi.StringPtrInput `pulumi:"selectorName"`
	// The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.
	Urn pulumi.StringPtrInput `pulumi:"urn"`
}

func (ExperimentStepBranchActionArgs) ElementType

func (ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput

func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput

func (ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext

func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput

type ExperimentStepBranchActionArray

type ExperimentStepBranchActionArray []ExperimentStepBranchActionInput

func (ExperimentStepBranchActionArray) ElementType

func (ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput

func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput

func (ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext

func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput

type ExperimentStepBranchActionArrayInput

type ExperimentStepBranchActionArrayInput interface {
	pulumi.Input

	ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
	ToExperimentStepBranchActionArrayOutputWithContext(context.Context) ExperimentStepBranchActionArrayOutput
}

ExperimentStepBranchActionArrayInput is an input type that accepts ExperimentStepBranchActionArray and ExperimentStepBranchActionArrayOutput values. You can construct a concrete instance of `ExperimentStepBranchActionArrayInput` via:

ExperimentStepBranchActionArray{ ExperimentStepBranchActionArgs{...} }

type ExperimentStepBranchActionArrayOutput

type ExperimentStepBranchActionArrayOutput struct{ *pulumi.OutputState }

func (ExperimentStepBranchActionArrayOutput) ElementType

func (ExperimentStepBranchActionArrayOutput) Index

func (ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput

func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput

func (ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext

func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput

type ExperimentStepBranchActionInput

type ExperimentStepBranchActionInput interface {
	pulumi.Input

	ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
	ToExperimentStepBranchActionOutputWithContext(context.Context) ExperimentStepBranchActionOutput
}

ExperimentStepBranchActionInput is an input type that accepts ExperimentStepBranchActionArgs and ExperimentStepBranchActionOutput values. You can construct a concrete instance of `ExperimentStepBranchActionInput` via:

ExperimentStepBranchActionArgs{...}

type ExperimentStepBranchActionOutput

type ExperimentStepBranchActionOutput struct{ *pulumi.OutputState }

func (ExperimentStepBranchActionOutput) ActionType

The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.

func (ExperimentStepBranchActionOutput) Duration

An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.

func (ExperimentStepBranchActionOutput) ElementType

func (ExperimentStepBranchActionOutput) Parameters

A key-value map of additional parameters to configure the action. The values that are accepted by this depend on the `urn` i.e. the capability/fault that is applied. Possible parameter values can be found in this [documentation](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library)

func (ExperimentStepBranchActionOutput) SelectorName

The name of the Selector to which this action should apply to. This must be specified if the `actionType` is `continuous` or `discrete`.

func (ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput

func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput

func (ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext

func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput

func (ExperimentStepBranchActionOutput) Urn

The Unique Resource Name of the action, this value is provided by the `chaosstudio.Capability` resource e.g. `azurerm_chaos_studio_capability.example.urn`. This must be specified if the `actionType` is `continuous` or `discrete`.

type ExperimentStepBranchArgs

type ExperimentStepBranchArgs struct {
	// One or more `actions` blocks as defined above.
	Actions ExperimentStepBranchActionArrayInput `pulumi:"actions"`
	// The name of the branch.
	Name pulumi.StringInput `pulumi:"name"`
}

func (ExperimentStepBranchArgs) ElementType

func (ExperimentStepBranchArgs) ElementType() reflect.Type

func (ExperimentStepBranchArgs) ToExperimentStepBranchOutput

func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutput() ExperimentStepBranchOutput

func (ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext

func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput

type ExperimentStepBranchArray

type ExperimentStepBranchArray []ExperimentStepBranchInput

func (ExperimentStepBranchArray) ElementType

func (ExperimentStepBranchArray) ElementType() reflect.Type

func (ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput

func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput

func (ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext

func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput

type ExperimentStepBranchArrayInput

type ExperimentStepBranchArrayInput interface {
	pulumi.Input

	ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput
	ToExperimentStepBranchArrayOutputWithContext(context.Context) ExperimentStepBranchArrayOutput
}

ExperimentStepBranchArrayInput is an input type that accepts ExperimentStepBranchArray and ExperimentStepBranchArrayOutput values. You can construct a concrete instance of `ExperimentStepBranchArrayInput` via:

ExperimentStepBranchArray{ ExperimentStepBranchArgs{...} }

type ExperimentStepBranchArrayOutput

type ExperimentStepBranchArrayOutput struct{ *pulumi.OutputState }

func (ExperimentStepBranchArrayOutput) ElementType

func (ExperimentStepBranchArrayOutput) Index

func (ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput

func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput

func (ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext

func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput

type ExperimentStepBranchInput

type ExperimentStepBranchInput interface {
	pulumi.Input

	ToExperimentStepBranchOutput() ExperimentStepBranchOutput
	ToExperimentStepBranchOutputWithContext(context.Context) ExperimentStepBranchOutput
}

ExperimentStepBranchInput is an input type that accepts ExperimentStepBranchArgs and ExperimentStepBranchOutput values. You can construct a concrete instance of `ExperimentStepBranchInput` via:

ExperimentStepBranchArgs{...}

type ExperimentStepBranchOutput

type ExperimentStepBranchOutput struct{ *pulumi.OutputState }

func (ExperimentStepBranchOutput) Actions

One or more `actions` blocks as defined above.

func (ExperimentStepBranchOutput) ElementType

func (ExperimentStepBranchOutput) ElementType() reflect.Type

func (ExperimentStepBranchOutput) Name

The name of the branch.

func (ExperimentStepBranchOutput) ToExperimentStepBranchOutput

func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutput() ExperimentStepBranchOutput

func (ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext

func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput

type ExperimentStepInput

type ExperimentStepInput interface {
	pulumi.Input

	ToExperimentStepOutput() ExperimentStepOutput
	ToExperimentStepOutputWithContext(context.Context) ExperimentStepOutput
}

ExperimentStepInput is an input type that accepts ExperimentStepArgs and ExperimentStepOutput values. You can construct a concrete instance of `ExperimentStepInput` via:

ExperimentStepArgs{...}

type ExperimentStepOutput

type ExperimentStepOutput struct{ *pulumi.OutputState }

func (ExperimentStepOutput) Branches

One or more `branch` blocks as defined above.

func (ExperimentStepOutput) ElementType

func (ExperimentStepOutput) ElementType() reflect.Type

func (ExperimentStepOutput) Name

The name of the Step.

func (ExperimentStepOutput) ToExperimentStepOutput

func (o ExperimentStepOutput) ToExperimentStepOutput() ExperimentStepOutput

func (ExperimentStepOutput) ToExperimentStepOutputWithContext

func (o ExperimentStepOutput) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput

type Target

type Target struct {
	pulumi.CustomResourceState

	// The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	TargetResourceId pulumi.StringOutput `pulumi:"targetResourceId"`
	// The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created.
	TargetType pulumi.StringOutput `pulumi:"targetType"`
}

<!-- Note: This documentation is generated. Any manual changes will be overwritten -->

Manages a Chaos Studio Target.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/chaosstudio"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		example, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{
			Name:              pulumi.String("example"),
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			DnsPrefix:         pulumi.String("acctestaksexample"),
			DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{
				Name:      pulumi.String("example-value"),
				NodeCount: pulumi.Int("example-value"),
				VmSize:    pulumi.String("example-value"),
				UpgradeSettings: &containerservice.KubernetesClusterDefaultNodePoolUpgradeSettingsArgs{
					MaxSurge: pulumi.String("example-value"),
				},
			},
			Identity: &containerservice.KubernetesClusterIdentityArgs{
				Type: pulumi.String("example-value"),
			},
		})
		if err != nil {
			return err
		}
		_, err = chaosstudio.NewTarget(ctx, "example", &chaosstudio.TargetArgs{
			Location:         exampleResourceGroup.Location,
			TargetResourceId: example.ID(),
			TargetType:       pulumi.String("example-value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g.

```sh $ pulumi import azure:chaosstudio/target:Target example /{scope}/providers/Microsoft.Chaos/targets/{targetName} ```

* Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`.

* Where `{targetName}` is the name of the Target. For example `targetValue`.

func GetTarget

func GetTarget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TargetState, opts ...pulumi.ResourceOption) (*Target, error)

GetTarget gets an existing Target resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTarget

func NewTarget(ctx *pulumi.Context,
	name string, args *TargetArgs, opts ...pulumi.ResourceOption) (*Target, error)

NewTarget registers a new resource with the given unique name, arguments, and options.

func (*Target) ElementType

func (*Target) ElementType() reflect.Type

func (*Target) ToTargetOutput

func (i *Target) ToTargetOutput() TargetOutput

func (*Target) ToTargetOutputWithContext

func (i *Target) ToTargetOutputWithContext(ctx context.Context) TargetOutput

type TargetArgs

type TargetArgs struct {
	// The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	Location pulumi.StringPtrInput
	// Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	TargetResourceId pulumi.StringInput
	// The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created.
	TargetType pulumi.StringInput
}

The set of arguments for constructing a Target resource.

func (TargetArgs) ElementType

func (TargetArgs) ElementType() reflect.Type

type TargetArray

type TargetArray []TargetInput

func (TargetArray) ElementType

func (TargetArray) ElementType() reflect.Type

func (TargetArray) ToTargetArrayOutput

func (i TargetArray) ToTargetArrayOutput() TargetArrayOutput

func (TargetArray) ToTargetArrayOutputWithContext

func (i TargetArray) ToTargetArrayOutputWithContext(ctx context.Context) TargetArrayOutput

type TargetArrayInput

type TargetArrayInput interface {
	pulumi.Input

	ToTargetArrayOutput() TargetArrayOutput
	ToTargetArrayOutputWithContext(context.Context) TargetArrayOutput
}

TargetArrayInput is an input type that accepts TargetArray and TargetArrayOutput values. You can construct a concrete instance of `TargetArrayInput` via:

TargetArray{ TargetArgs{...} }

type TargetArrayOutput

type TargetArrayOutput struct{ *pulumi.OutputState }

func (TargetArrayOutput) ElementType

func (TargetArrayOutput) ElementType() reflect.Type

func (TargetArrayOutput) Index

func (TargetArrayOutput) ToTargetArrayOutput

func (o TargetArrayOutput) ToTargetArrayOutput() TargetArrayOutput

func (TargetArrayOutput) ToTargetArrayOutputWithContext

func (o TargetArrayOutput) ToTargetArrayOutputWithContext(ctx context.Context) TargetArrayOutput

type TargetInput

type TargetInput interface {
	pulumi.Input

	ToTargetOutput() TargetOutput
	ToTargetOutputWithContext(ctx context.Context) TargetOutput
}

type TargetMap

type TargetMap map[string]TargetInput

func (TargetMap) ElementType

func (TargetMap) ElementType() reflect.Type

func (TargetMap) ToTargetMapOutput

func (i TargetMap) ToTargetMapOutput() TargetMapOutput

func (TargetMap) ToTargetMapOutputWithContext

func (i TargetMap) ToTargetMapOutputWithContext(ctx context.Context) TargetMapOutput

type TargetMapInput

type TargetMapInput interface {
	pulumi.Input

	ToTargetMapOutput() TargetMapOutput
	ToTargetMapOutputWithContext(context.Context) TargetMapOutput
}

TargetMapInput is an input type that accepts TargetMap and TargetMapOutput values. You can construct a concrete instance of `TargetMapInput` via:

TargetMap{ "key": TargetArgs{...} }

type TargetMapOutput

type TargetMapOutput struct{ *pulumi.OutputState }

func (TargetMapOutput) ElementType

func (TargetMapOutput) ElementType() reflect.Type

func (TargetMapOutput) MapIndex

func (TargetMapOutput) ToTargetMapOutput

func (o TargetMapOutput) ToTargetMapOutput() TargetMapOutput

func (TargetMapOutput) ToTargetMapOutputWithContext

func (o TargetMapOutput) ToTargetMapOutputWithContext(ctx context.Context) TargetMapOutput

type TargetOutput

type TargetOutput struct{ *pulumi.OutputState }

func (TargetOutput) ElementType

func (TargetOutput) ElementType() reflect.Type

func (TargetOutput) Location

func (o TargetOutput) Location() pulumi.StringOutput

The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.

func (TargetOutput) TargetResourceId

func (o TargetOutput) TargetResourceId() pulumi.StringOutput

Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.

func (TargetOutput) TargetType

func (o TargetOutput) TargetType() pulumi.StringOutput

The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created.

func (TargetOutput) ToTargetOutput

func (o TargetOutput) ToTargetOutput() TargetOutput

func (TargetOutput) ToTargetOutputWithContext

func (o TargetOutput) ToTargetOutputWithContext(ctx context.Context) TargetOutput

type TargetState

type TargetState struct {
	// The Azure Region where the Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	Location pulumi.StringPtrInput
	// Specifies the Target Resource Id within which this Chaos Studio Target should exist. Changing this forces a new Chaos Studio Target to be created.
	TargetResourceId pulumi.StringPtrInput
	// The name of the Chaos Studio Target. This has the format of [publisher]-[targetType] e.g. `Microsoft-StorageAccount`. For supported values please see this Target Type column in [this table](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-providers). Changing this forces a new Chaos Studio Target to be created.
	TargetType pulumi.StringPtrInput
}

func (TargetState) ElementType

func (TargetState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL