Documentation ¶
Index ¶
- 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 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, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "exampleKubernetesCluster", &containerservice.KubernetesClusterArgs{ 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 } _, err = chaosstudio.NewTarget(ctx, "exampleTarget", &chaosstudio.TargetArgs{ Location: exampleResourceGroup.Location, TargetResourceId: exampleKubernetesCluster.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