Documentation ¶
Index ¶
- type Capability
- type CapabilityArgs
- type CapabilityArray
- type CapabilityArrayInput
- type CapabilityArrayOutput
- func (CapabilityArrayOutput) ElementType() reflect.Type
- func (o CapabilityArrayOutput) Index(i pulumi.IntInput) CapabilityOutput
- func (o CapabilityArrayOutput) ToCapabilityArrayOutput() CapabilityArrayOutput
- func (o CapabilityArrayOutput) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput
- type CapabilityInput
- type CapabilityMap
- type CapabilityMapInput
- type CapabilityMapOutput
- func (CapabilityMapOutput) ElementType() reflect.Type
- func (o CapabilityMapOutput) MapIndex(k pulumi.StringInput) CapabilityOutput
- func (o CapabilityMapOutput) ToCapabilityMapOutput() CapabilityMapOutput
- func (o CapabilityMapOutput) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput
- type CapabilityOutput
- func (o CapabilityOutput) CapabilityType() pulumi.StringOutput
- func (o CapabilityOutput) CapabilityUrn() pulumi.StringOutput
- func (o CapabilityOutput) ChaosStudioTargetId() pulumi.StringOutput
- func (CapabilityOutput) ElementType() reflect.Type
- func (o CapabilityOutput) ToCapabilityOutput() CapabilityOutput
- func (o CapabilityOutput) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput
- type CapabilityState
- type Experiment
- type ExperimentArgs
- type ExperimentArray
- type ExperimentArrayInput
- type ExperimentArrayOutput
- func (ExperimentArrayOutput) ElementType() reflect.Type
- func (o ExperimentArrayOutput) Index(i pulumi.IntInput) ExperimentOutput
- func (o ExperimentArrayOutput) ToExperimentArrayOutput() ExperimentArrayOutput
- func (o ExperimentArrayOutput) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput
- type ExperimentIdentity
- type ExperimentIdentityArgs
- func (ExperimentIdentityArgs) ElementType() reflect.Type
- func (i ExperimentIdentityArgs) ToExperimentIdentityOutput() ExperimentIdentityOutput
- func (i ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput
- func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
- func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
- type ExperimentIdentityInput
- type ExperimentIdentityOutput
- func (ExperimentIdentityOutput) ElementType() reflect.Type
- func (o ExperimentIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o ExperimentIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o ExperimentIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o ExperimentIdentityOutput) ToExperimentIdentityOutput() ExperimentIdentityOutput
- func (o ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput
- func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
- func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
- func (o ExperimentIdentityOutput) Type() pulumi.StringOutput
- type ExperimentIdentityPtrInput
- type ExperimentIdentityPtrOutput
- func (o ExperimentIdentityPtrOutput) Elem() ExperimentIdentityOutput
- func (ExperimentIdentityPtrOutput) ElementType() reflect.Type
- func (o ExperimentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o ExperimentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o ExperimentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
- func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
- func (o ExperimentIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type ExperimentInput
- type ExperimentMap
- type ExperimentMapInput
- type ExperimentMapOutput
- func (ExperimentMapOutput) ElementType() reflect.Type
- func (o ExperimentMapOutput) MapIndex(k pulumi.StringInput) ExperimentOutput
- func (o ExperimentMapOutput) ToExperimentMapOutput() ExperimentMapOutput
- func (o ExperimentMapOutput) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput
- type ExperimentOutput
- func (ExperimentOutput) ElementType() reflect.Type
- func (o ExperimentOutput) Identity() ExperimentIdentityPtrOutput
- func (o ExperimentOutput) Location() pulumi.StringOutput
- func (o ExperimentOutput) Name() pulumi.StringOutput
- func (o ExperimentOutput) ResourceGroupName() pulumi.StringOutput
- func (o ExperimentOutput) Selectors() ExperimentSelectorArrayOutput
- func (o ExperimentOutput) Steps() ExperimentStepArrayOutput
- func (o ExperimentOutput) ToExperimentOutput() ExperimentOutput
- func (o ExperimentOutput) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput
- type ExperimentSelector
- type ExperimentSelectorArgs
- type ExperimentSelectorArray
- type ExperimentSelectorArrayInput
- type ExperimentSelectorArrayOutput
- func (ExperimentSelectorArrayOutput) ElementType() reflect.Type
- func (o ExperimentSelectorArrayOutput) Index(i pulumi.IntInput) ExperimentSelectorOutput
- func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput
- func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput
- type ExperimentSelectorInput
- type ExperimentSelectorOutput
- func (o ExperimentSelectorOutput) ChaosStudioTargetIds() pulumi.StringArrayOutput
- func (ExperimentSelectorOutput) ElementType() reflect.Type
- func (o ExperimentSelectorOutput) Name() pulumi.StringOutput
- func (o ExperimentSelectorOutput) ToExperimentSelectorOutput() ExperimentSelectorOutput
- func (o ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput
- type ExperimentState
- type ExperimentStep
- type ExperimentStepArgs
- type ExperimentStepArray
- type ExperimentStepArrayInput
- type ExperimentStepArrayOutput
- func (ExperimentStepArrayOutput) ElementType() reflect.Type
- func (o ExperimentStepArrayOutput) Index(i pulumi.IntInput) ExperimentStepOutput
- func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutput() ExperimentStepArrayOutput
- func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput
- type ExperimentStepBranch
- type ExperimentStepBranchAction
- type ExperimentStepBranchActionArgs
- func (ExperimentStepBranchActionArgs) ElementType() reflect.Type
- func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
- func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput
- type ExperimentStepBranchActionArray
- func (ExperimentStepBranchActionArray) ElementType() reflect.Type
- func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
- func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput
- type ExperimentStepBranchActionArrayInput
- type ExperimentStepBranchActionArrayOutput
- func (ExperimentStepBranchActionArrayOutput) ElementType() reflect.Type
- func (o ExperimentStepBranchActionArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchActionOutput
- func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
- func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput
- type ExperimentStepBranchActionInput
- type ExperimentStepBranchActionOutput
- func (o ExperimentStepBranchActionOutput) ActionType() pulumi.StringOutput
- func (o ExperimentStepBranchActionOutput) Duration() pulumi.StringPtrOutput
- func (ExperimentStepBranchActionOutput) ElementType() reflect.Type
- func (o ExperimentStepBranchActionOutput) Parameters() pulumi.StringMapOutput
- func (o ExperimentStepBranchActionOutput) SelectorName() pulumi.StringPtrOutput
- func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
- func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput
- func (o ExperimentStepBranchActionOutput) Urn() pulumi.StringPtrOutput
- type ExperimentStepBranchArgs
- type ExperimentStepBranchArray
- type ExperimentStepBranchArrayInput
- type ExperimentStepBranchArrayOutput
- func (ExperimentStepBranchArrayOutput) ElementType() reflect.Type
- func (o ExperimentStepBranchArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchOutput
- func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput
- func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput
- type ExperimentStepBranchInput
- type ExperimentStepBranchOutput
- func (o ExperimentStepBranchOutput) Actions() ExperimentStepBranchActionArrayOutput
- func (ExperimentStepBranchOutput) ElementType() reflect.Type
- func (o ExperimentStepBranchOutput) Name() pulumi.StringOutput
- func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutput() ExperimentStepBranchOutput
- func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput
- type ExperimentStepInput
- type ExperimentStepOutput
- func (o ExperimentStepOutput) Branches() ExperimentStepBranchArrayOutput
- func (ExperimentStepOutput) ElementType() reflect.Type
- func (o ExperimentStepOutput) Name() pulumi.StringOutput
- func (o ExperimentStepOutput) ToExperimentStepOutput() ExperimentStepOutput
- func (o ExperimentStepOutput) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput
- type Target
- type TargetArgs
- type TargetArray
- type TargetArrayInput
- type TargetArrayOutput
- type TargetInput
- type TargetMap
- type TargetMapInput
- type TargetMapOutput
- type TargetOutput
- func (TargetOutput) ElementType() reflect.Type
- func (o TargetOutput) Location() pulumi.StringOutput
- func (o TargetOutput) TargetResourceId() pulumi.StringOutput
- func (o TargetOutput) TargetType() pulumi.StringOutput
- func (o TargetOutput) ToTargetOutput() TargetOutput
- func (o TargetOutput) ToTargetOutputWithContext(ctx context.Context) TargetOutput
- type TargetState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶ added in v5.66.1
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/v5/go/azure/chaosstudio" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice" "github.com/pulumi/pulumi-azure/sdk/v5/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 Terraform 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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (*Capability) ElementType() reflect.Type
func (*Capability) ToCapabilityOutput ¶ added in v5.66.1
func (i *Capability) ToCapabilityOutput() CapabilityOutput
func (*Capability) ToCapabilityOutputWithContext ¶ added in v5.66.1
func (i *Capability) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput
type CapabilityArgs ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (CapabilityArgs) ElementType() reflect.Type
type CapabilityArray ¶ added in v5.66.1
type CapabilityArray []CapabilityInput
func (CapabilityArray) ElementType ¶ added in v5.66.1
func (CapabilityArray) ElementType() reflect.Type
func (CapabilityArray) ToCapabilityArrayOutput ¶ added in v5.66.1
func (i CapabilityArray) ToCapabilityArrayOutput() CapabilityArrayOutput
func (CapabilityArray) ToCapabilityArrayOutputWithContext ¶ added in v5.66.1
func (i CapabilityArray) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput
type CapabilityArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type CapabilityArrayOutput struct{ *pulumi.OutputState }
func (CapabilityArrayOutput) ElementType ¶ added in v5.66.1
func (CapabilityArrayOutput) ElementType() reflect.Type
func (CapabilityArrayOutput) Index ¶ added in v5.66.1
func (o CapabilityArrayOutput) Index(i pulumi.IntInput) CapabilityOutput
func (CapabilityArrayOutput) ToCapabilityArrayOutput ¶ added in v5.66.1
func (o CapabilityArrayOutput) ToCapabilityArrayOutput() CapabilityArrayOutput
func (CapabilityArrayOutput) ToCapabilityArrayOutputWithContext ¶ added in v5.66.1
func (o CapabilityArrayOutput) ToCapabilityArrayOutputWithContext(ctx context.Context) CapabilityArrayOutput
type CapabilityInput ¶ added in v5.66.1
type CapabilityInput interface { pulumi.Input ToCapabilityOutput() CapabilityOutput ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput }
type CapabilityMap ¶ added in v5.66.1
type CapabilityMap map[string]CapabilityInput
func (CapabilityMap) ElementType ¶ added in v5.66.1
func (CapabilityMap) ElementType() reflect.Type
func (CapabilityMap) ToCapabilityMapOutput ¶ added in v5.66.1
func (i CapabilityMap) ToCapabilityMapOutput() CapabilityMapOutput
func (CapabilityMap) ToCapabilityMapOutputWithContext ¶ added in v5.66.1
func (i CapabilityMap) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput
type CapabilityMapInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type CapabilityMapOutput struct{ *pulumi.OutputState }
func (CapabilityMapOutput) ElementType ¶ added in v5.66.1
func (CapabilityMapOutput) ElementType() reflect.Type
func (CapabilityMapOutput) MapIndex ¶ added in v5.66.1
func (o CapabilityMapOutput) MapIndex(k pulumi.StringInput) CapabilityOutput
func (CapabilityMapOutput) ToCapabilityMapOutput ¶ added in v5.66.1
func (o CapabilityMapOutput) ToCapabilityMapOutput() CapabilityMapOutput
func (CapabilityMapOutput) ToCapabilityMapOutputWithContext ¶ added in v5.66.1
func (o CapabilityMapOutput) ToCapabilityMapOutputWithContext(ctx context.Context) CapabilityMapOutput
type CapabilityOutput ¶ added in v5.66.1
type CapabilityOutput struct{ *pulumi.OutputState }
func (CapabilityOutput) CapabilityType ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (o CapabilityOutput) CapabilityUrn() pulumi.StringOutput
The Unique Resource Name of the Capability.
func (CapabilityOutput) ChaosStudioTargetId ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (CapabilityOutput) ElementType() reflect.Type
func (CapabilityOutput) ToCapabilityOutput ¶ added in v5.66.1
func (o CapabilityOutput) ToCapabilityOutput() CapabilityOutput
func (CapabilityOutput) ToCapabilityOutputWithContext ¶ added in v5.66.1
func (o CapabilityOutput) ToCapabilityOutputWithContext(ctx context.Context) CapabilityOutput
type CapabilityState ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (CapabilityState) ElementType() reflect.Type
type Experiment ¶ added in v5.66.1
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/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/chaosstudio" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (*Experiment) ElementType() reflect.Type
func (*Experiment) ToExperimentOutput ¶ added in v5.66.1
func (i *Experiment) ToExperimentOutput() ExperimentOutput
func (*Experiment) ToExperimentOutputWithContext ¶ added in v5.66.1
func (i *Experiment) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput
type ExperimentArgs ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentArgs) ElementType() reflect.Type
type ExperimentArray ¶ added in v5.66.1
type ExperimentArray []ExperimentInput
func (ExperimentArray) ElementType ¶ added in v5.66.1
func (ExperimentArray) ElementType() reflect.Type
func (ExperimentArray) ToExperimentArrayOutput ¶ added in v5.66.1
func (i ExperimentArray) ToExperimentArrayOutput() ExperimentArrayOutput
func (ExperimentArray) ToExperimentArrayOutputWithContext ¶ added in v5.66.1
func (i ExperimentArray) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput
type ExperimentArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentArrayOutput struct{ *pulumi.OutputState }
func (ExperimentArrayOutput) ElementType ¶ added in v5.66.1
func (ExperimentArrayOutput) ElementType() reflect.Type
func (ExperimentArrayOutput) Index ¶ added in v5.66.1
func (o ExperimentArrayOutput) Index(i pulumi.IntInput) ExperimentOutput
func (ExperimentArrayOutput) ToExperimentArrayOutput ¶ added in v5.66.1
func (o ExperimentArrayOutput) ToExperimentArrayOutput() ExperimentArrayOutput
func (ExperimentArrayOutput) ToExperimentArrayOutputWithContext ¶ added in v5.66.1
func (o ExperimentArrayOutput) ToExperimentArrayOutputWithContext(ctx context.Context) ExperimentArrayOutput
type ExperimentIdentity ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentIdentityArgs) ElementType() reflect.Type
func (ExperimentIdentityArgs) ToExperimentIdentityOutput ¶ added in v5.66.1
func (i ExperimentIdentityArgs) ToExperimentIdentityOutput() ExperimentIdentityOutput
func (ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext ¶ added in v5.66.1
func (i ExperimentIdentityArgs) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput
func (ExperimentIdentityArgs) ToExperimentIdentityPtrOutput ¶ added in v5.66.1
func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
func (ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext ¶ added in v5.66.1
func (i ExperimentIdentityArgs) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
type ExperimentIdentityInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentIdentityOutput struct{ *pulumi.OutputState }
func (ExperimentIdentityOutput) ElementType ¶ added in v5.66.1
func (ExperimentIdentityOutput) ElementType() reflect.Type
func (ExperimentIdentityOutput) IdentityIds ¶ added in v5.66.1
func (o ExperimentIdentityOutput) IdentityIds() pulumi.StringArrayOutput
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 ¶ added in v5.66.1
func (o ExperimentIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID associated with this Managed Service Identity.
func (ExperimentIdentityOutput) TenantId ¶ added in v5.66.1
func (o ExperimentIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID associated with this Managed Service Identity.
func (ExperimentIdentityOutput) ToExperimentIdentityOutput ¶ added in v5.66.1
func (o ExperimentIdentityOutput) ToExperimentIdentityOutput() ExperimentIdentityOutput
func (ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext ¶ added in v5.66.1
func (o ExperimentIdentityOutput) ToExperimentIdentityOutputWithContext(ctx context.Context) ExperimentIdentityOutput
func (ExperimentIdentityOutput) ToExperimentIdentityPtrOutput ¶ added in v5.66.1
func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
func (ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext ¶ added in v5.66.1
func (o ExperimentIdentityOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
func (ExperimentIdentityOutput) Type ¶ added in v5.66.1
func (o ExperimentIdentityOutput) Type() pulumi.StringOutput
The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
type ExperimentIdentityPtrInput ¶ added in v5.66.1
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
func ExperimentIdentityPtr ¶ added in v5.66.1
func ExperimentIdentityPtr(v *ExperimentIdentityArgs) ExperimentIdentityPtrInput
type ExperimentIdentityPtrOutput ¶ added in v5.66.1
type ExperimentIdentityPtrOutput struct{ *pulumi.OutputState }
func (ExperimentIdentityPtrOutput) Elem ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) Elem() ExperimentIdentityOutput
func (ExperimentIdentityPtrOutput) ElementType ¶ added in v5.66.1
func (ExperimentIdentityPtrOutput) ElementType() reflect.Type
func (ExperimentIdentityPtrOutput) IdentityIds ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
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 ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID associated with this Managed Service Identity.
func (ExperimentIdentityPtrOutput) TenantId ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID associated with this Managed Service Identity.
func (ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutput() ExperimentIdentityPtrOutput
func (ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) ToExperimentIdentityPtrOutputWithContext(ctx context.Context) ExperimentIdentityPtrOutput
func (ExperimentIdentityPtrOutput) Type ¶ added in v5.66.1
func (o ExperimentIdentityPtrOutput) Type() pulumi.StringPtrOutput
The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
type ExperimentInput ¶ added in v5.66.1
type ExperimentInput interface { pulumi.Input ToExperimentOutput() ExperimentOutput ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput }
type ExperimentMap ¶ added in v5.66.1
type ExperimentMap map[string]ExperimentInput
func (ExperimentMap) ElementType ¶ added in v5.66.1
func (ExperimentMap) ElementType() reflect.Type
func (ExperimentMap) ToExperimentMapOutput ¶ added in v5.66.1
func (i ExperimentMap) ToExperimentMapOutput() ExperimentMapOutput
func (ExperimentMap) ToExperimentMapOutputWithContext ¶ added in v5.66.1
func (i ExperimentMap) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput
type ExperimentMapInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentMapOutput struct{ *pulumi.OutputState }
func (ExperimentMapOutput) ElementType ¶ added in v5.66.1
func (ExperimentMapOutput) ElementType() reflect.Type
func (ExperimentMapOutput) MapIndex ¶ added in v5.66.1
func (o ExperimentMapOutput) MapIndex(k pulumi.StringInput) ExperimentOutput
func (ExperimentMapOutput) ToExperimentMapOutput ¶ added in v5.66.1
func (o ExperimentMapOutput) ToExperimentMapOutput() ExperimentMapOutput
func (ExperimentMapOutput) ToExperimentMapOutputWithContext ¶ added in v5.66.1
func (o ExperimentMapOutput) ToExperimentMapOutputWithContext(ctx context.Context) ExperimentMapOutput
type ExperimentOutput ¶ added in v5.66.1
type ExperimentOutput struct{ *pulumi.OutputState }
func (ExperimentOutput) ElementType ¶ added in v5.66.1
func (ExperimentOutput) ElementType() reflect.Type
func (ExperimentOutput) Identity ¶ added in v5.66.1
func (o ExperimentOutput) Identity() ExperimentIdentityPtrOutput
A `identity` block as defined below.
func (ExperimentOutput) Location ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (o ExperimentOutput) Name() pulumi.StringOutput
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (o ExperimentOutput) Selectors() ExperimentSelectorArrayOutput
One or more `selectors` blocks as defined below.
func (ExperimentOutput) Steps ¶ added in v5.66.1
func (o ExperimentOutput) Steps() ExperimentStepArrayOutput
One or more `steps` blocks as defined below.
func (ExperimentOutput) ToExperimentOutput ¶ added in v5.66.1
func (o ExperimentOutput) ToExperimentOutput() ExperimentOutput
func (ExperimentOutput) ToExperimentOutputWithContext ¶ added in v5.66.1
func (o ExperimentOutput) ToExperimentOutputWithContext(ctx context.Context) ExperimentOutput
type ExperimentSelector ¶ added in v5.66.1
type ExperimentSelectorArgs ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentSelectorArgs) ElementType() reflect.Type
func (ExperimentSelectorArgs) ToExperimentSelectorOutput ¶ added in v5.66.1
func (i ExperimentSelectorArgs) ToExperimentSelectorOutput() ExperimentSelectorOutput
func (ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext ¶ added in v5.66.1
func (i ExperimentSelectorArgs) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput
type ExperimentSelectorArray ¶ added in v5.66.1
type ExperimentSelectorArray []ExperimentSelectorInput
func (ExperimentSelectorArray) ElementType ¶ added in v5.66.1
func (ExperimentSelectorArray) ElementType() reflect.Type
func (ExperimentSelectorArray) ToExperimentSelectorArrayOutput ¶ added in v5.66.1
func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput
func (ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext ¶ added in v5.66.1
func (i ExperimentSelectorArray) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput
type ExperimentSelectorArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentSelectorArrayOutput struct{ *pulumi.OutputState }
func (ExperimentSelectorArrayOutput) ElementType ¶ added in v5.66.1
func (ExperimentSelectorArrayOutput) ElementType() reflect.Type
func (ExperimentSelectorArrayOutput) Index ¶ added in v5.66.1
func (o ExperimentSelectorArrayOutput) Index(i pulumi.IntInput) ExperimentSelectorOutput
func (ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput ¶ added in v5.66.1
func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutput() ExperimentSelectorArrayOutput
func (ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext ¶ added in v5.66.1
func (o ExperimentSelectorArrayOutput) ToExperimentSelectorArrayOutputWithContext(ctx context.Context) ExperimentSelectorArrayOutput
type ExperimentSelectorInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentSelectorOutput struct{ *pulumi.OutputState }
func (ExperimentSelectorOutput) ChaosStudioTargetIds ¶ added in v5.66.1
func (o ExperimentSelectorOutput) ChaosStudioTargetIds() pulumi.StringArrayOutput
A list of Chaos Studio Target IDs that should be part of this Selector.
func (ExperimentSelectorOutput) ElementType ¶ added in v5.66.1
func (ExperimentSelectorOutput) ElementType() reflect.Type
func (ExperimentSelectorOutput) Name ¶ added in v5.66.1
func (o ExperimentSelectorOutput) Name() pulumi.StringOutput
The name of this Selector.
func (ExperimentSelectorOutput) ToExperimentSelectorOutput ¶ added in v5.66.1
func (o ExperimentSelectorOutput) ToExperimentSelectorOutput() ExperimentSelectorOutput
func (ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext ¶ added in v5.66.1
func (o ExperimentSelectorOutput) ToExperimentSelectorOutputWithContext(ctx context.Context) ExperimentSelectorOutput
type ExperimentState ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentState) ElementType() reflect.Type
type ExperimentStep ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentStepArgs) ElementType() reflect.Type
func (ExperimentStepArgs) ToExperimentStepOutput ¶ added in v5.66.1
func (i ExperimentStepArgs) ToExperimentStepOutput() ExperimentStepOutput
func (ExperimentStepArgs) ToExperimentStepOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepArgs) ToExperimentStepOutputWithContext(ctx context.Context) ExperimentStepOutput
type ExperimentStepArray ¶ added in v5.66.1
type ExperimentStepArray []ExperimentStepInput
func (ExperimentStepArray) ElementType ¶ added in v5.66.1
func (ExperimentStepArray) ElementType() reflect.Type
func (ExperimentStepArray) ToExperimentStepArrayOutput ¶ added in v5.66.1
func (i ExperimentStepArray) ToExperimentStepArrayOutput() ExperimentStepArrayOutput
func (ExperimentStepArray) ToExperimentStepArrayOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepArray) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput
type ExperimentStepArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepArrayOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepArrayOutput) ElementType() reflect.Type
func (ExperimentStepArrayOutput) Index ¶ added in v5.66.1
func (o ExperimentStepArrayOutput) Index(i pulumi.IntInput) ExperimentStepOutput
func (ExperimentStepArrayOutput) ToExperimentStepArrayOutput ¶ added in v5.66.1
func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutput() ExperimentStepArrayOutput
func (ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext ¶ added in v5.66.1
func (o ExperimentStepArrayOutput) ToExperimentStepArrayOutputWithContext(ctx context.Context) ExperimentStepArrayOutput
type ExperimentStepBranch ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentStepBranchActionArgs) ElementType() reflect.Type
func (ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput ¶ added in v5.66.1
func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
func (ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepBranchActionArgs) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput
type ExperimentStepBranchActionArray ¶ added in v5.66.1
type ExperimentStepBranchActionArray []ExperimentStepBranchActionInput
func (ExperimentStepBranchActionArray) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchActionArray) ElementType() reflect.Type
func (ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput ¶ added in v5.66.1
func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
func (ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepBranchActionArray) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput
type ExperimentStepBranchActionArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepBranchActionArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchActionArrayOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchActionArrayOutput) ElementType() reflect.Type
func (ExperimentStepBranchActionArrayOutput) Index ¶ added in v5.66.1
func (o ExperimentStepBranchActionArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchActionOutput
func (ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput ¶ added in v5.66.1
func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutput() ExperimentStepBranchActionArrayOutput
func (ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext ¶ added in v5.66.1
func (o ExperimentStepBranchActionArrayOutput) ToExperimentStepBranchActionArrayOutputWithContext(ctx context.Context) ExperimentStepBranchActionArrayOutput
type ExperimentStepBranchActionInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepBranchActionOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchActionOutput) ActionType ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) ActionType() pulumi.StringOutput
The type of action that should be added to the experiment. Possible values are `continuous`, `delay` and `discrete`.
func (ExperimentStepBranchActionOutput) Duration ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) Duration() pulumi.StringPtrOutput
An ISO8601 formatted string specifying the duration for a `delay` or `continuous` action.
func (ExperimentStepBranchActionOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchActionOutput) ElementType() reflect.Type
func (ExperimentStepBranchActionOutput) Parameters ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) Parameters() pulumi.StringMapOutput
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 ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) SelectorName() pulumi.StringPtrOutput
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 ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutput() ExperimentStepBranchActionOutput
func (ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) ToExperimentStepBranchActionOutputWithContext(ctx context.Context) ExperimentStepBranchActionOutput
func (ExperimentStepBranchActionOutput) Urn ¶ added in v5.66.1
func (o ExperimentStepBranchActionOutput) Urn() pulumi.StringPtrOutput
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 ¶ added in v5.66.1
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 ¶ added in v5.66.1
func (ExperimentStepBranchArgs) ElementType() reflect.Type
func (ExperimentStepBranchArgs) ToExperimentStepBranchOutput ¶ added in v5.66.1
func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutput() ExperimentStepBranchOutput
func (ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepBranchArgs) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput
type ExperimentStepBranchArray ¶ added in v5.66.1
type ExperimentStepBranchArray []ExperimentStepBranchInput
func (ExperimentStepBranchArray) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchArray) ElementType() reflect.Type
func (ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput ¶ added in v5.66.1
func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput
func (ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext ¶ added in v5.66.1
func (i ExperimentStepBranchArray) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput
type ExperimentStepBranchArrayInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepBranchArrayOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchArrayOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchArrayOutput) ElementType() reflect.Type
func (ExperimentStepBranchArrayOutput) Index ¶ added in v5.66.1
func (o ExperimentStepBranchArrayOutput) Index(i pulumi.IntInput) ExperimentStepBranchOutput
func (ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput ¶ added in v5.66.1
func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutput() ExperimentStepBranchArrayOutput
func (ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext ¶ added in v5.66.1
func (o ExperimentStepBranchArrayOutput) ToExperimentStepBranchArrayOutputWithContext(ctx context.Context) ExperimentStepBranchArrayOutput
type ExperimentStepBranchInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepBranchOutput struct{ *pulumi.OutputState }
func (ExperimentStepBranchOutput) Actions ¶ added in v5.66.1
func (o ExperimentStepBranchOutput) Actions() ExperimentStepBranchActionArrayOutput
One or more `actions` blocks as defined above.
func (ExperimentStepBranchOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepBranchOutput) ElementType() reflect.Type
func (ExperimentStepBranchOutput) Name ¶ added in v5.66.1
func (o ExperimentStepBranchOutput) Name() pulumi.StringOutput
The name of the branch.
func (ExperimentStepBranchOutput) ToExperimentStepBranchOutput ¶ added in v5.66.1
func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutput() ExperimentStepBranchOutput
func (ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext ¶ added in v5.66.1
func (o ExperimentStepBranchOutput) ToExperimentStepBranchOutputWithContext(ctx context.Context) ExperimentStepBranchOutput
type ExperimentStepInput ¶ added in v5.66.1
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 ¶ added in v5.66.1
type ExperimentStepOutput struct{ *pulumi.OutputState }
func (ExperimentStepOutput) Branches ¶ added in v5.66.1
func (o ExperimentStepOutput) Branches() ExperimentStepBranchArrayOutput
One or more `branch` blocks as defined above.
func (ExperimentStepOutput) ElementType ¶ added in v5.66.1
func (ExperimentStepOutput) ElementType() reflect.Type
func (ExperimentStepOutput) Name ¶ added in v5.66.1
func (o ExperimentStepOutput) Name() pulumi.StringOutput
The name of the Step.
func (ExperimentStepOutput) ToExperimentStepOutput ¶ added in v5.66.1
func (o ExperimentStepOutput) ToExperimentStepOutput() ExperimentStepOutput
func (ExperimentStepOutput) ToExperimentStepOutputWithContext ¶ added in v5.66.1
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/v5/go/azure/chaosstudio" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerservice" "github.com/pulumi/pulumi-azure/sdk/v5/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 Terraform 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) 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 (o TargetArrayOutput) Index(i pulumi.IntInput) TargetOutput
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) 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 (o TargetMapOutput) MapIndex(k pulumi.StringInput) TargetOutput
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