Documentation ¶
Index ¶
- type LookupPlacementGroupArgs
- type LookupPlacementGroupResult
- type PlacementGroup
- func (*PlacementGroup) ElementType() reflect.Type
- func (i *PlacementGroup) ToPlacementGroupOutput() PlacementGroupOutput
- func (i *PlacementGroup) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput
- func (i *PlacementGroup) ToPlacementGroupPtrOutput() PlacementGroupPtrOutput
- func (i *PlacementGroup) ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput
- type PlacementGroupArgs
- type PlacementGroupArray
- type PlacementGroupArrayInput
- type PlacementGroupArrayOutput
- func (PlacementGroupArrayOutput) ElementType() reflect.Type
- func (o PlacementGroupArrayOutput) Index(i pulumi.IntInput) PlacementGroupOutput
- func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutput() PlacementGroupArrayOutput
- func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutputWithContext(ctx context.Context) PlacementGroupArrayOutput
- type PlacementGroupInput
- type PlacementGroupMap
- type PlacementGroupMapInput
- type PlacementGroupMapOutput
- func (PlacementGroupMapOutput) ElementType() reflect.Type
- func (o PlacementGroupMapOutput) MapIndex(k pulumi.StringInput) PlacementGroupOutput
- func (o PlacementGroupMapOutput) ToPlacementGroupMapOutput() PlacementGroupMapOutput
- func (o PlacementGroupMapOutput) ToPlacementGroupMapOutputWithContext(ctx context.Context) PlacementGroupMapOutput
- type PlacementGroupOutput
- func (PlacementGroupOutput) ElementType() reflect.Type
- func (o PlacementGroupOutput) ToPlacementGroupOutput() PlacementGroupOutput
- func (o PlacementGroupOutput) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput
- func (o PlacementGroupOutput) ToPlacementGroupPtrOutput() PlacementGroupPtrOutput
- func (o PlacementGroupOutput) ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput
- type PlacementGroupPtrInput
- type PlacementGroupPtrOutput
- type PlacementGroupState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupPlacementGroupArgs ¶
type LookupPlacementGroupArgs struct { // The name of the Proximity Placement Group. Name string `pulumi:"name"` // The name of the resource group in which the Proximity Placement Group exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getPlacementGroup.
type LookupPlacementGroupResult ¶
type LookupPlacementGroupResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getPlacementGroup.
func LookupPlacementGroup ¶
func LookupPlacementGroup(ctx *pulumi.Context, args *LookupPlacementGroupArgs, opts ...pulumi.InvokeOption) (*LookupPlacementGroupResult, error)
Use this data source to access information about an existing Proximity Placement Group.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/proximity" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := proximity.LookupPlacementGroup(ctx, &proximity.LookupPlacementGroupArgs{ Name: "tf-appsecuritygroup", ResourceGroupName: "my-resource-group", }, nil) if err != nil { return err } ctx.Export("proximityPlacementGroupId", example.Id) return nil }) }
```
type PlacementGroup ¶
type PlacementGroup struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the availability set. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a proximity placement group for virtual machines, virtual machine scale sets and availability sets.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/proximity" "github.com/pulumi/pulumi/sdk/v2/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 } _, err = proximity.NewPlacementGroup(ctx, "examplePlacementGroup", &proximity.PlacementGroupArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Tags: pulumi.StringMap{ "environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
## Import
Proximity Placement Groups can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:proximity/placementGroup:PlacementGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/proximityPlacementGroups/example-ppg
```
func GetPlacementGroup ¶
func GetPlacementGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PlacementGroupState, opts ...pulumi.ResourceOption) (*PlacementGroup, error)
GetPlacementGroup gets an existing PlacementGroup 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 NewPlacementGroup ¶
func NewPlacementGroup(ctx *pulumi.Context, name string, args *PlacementGroupArgs, opts ...pulumi.ResourceOption) (*PlacementGroup, error)
NewPlacementGroup registers a new resource with the given unique name, arguments, and options.
func (*PlacementGroup) ElementType ¶ added in v3.31.1
func (*PlacementGroup) ElementType() reflect.Type
func (*PlacementGroup) ToPlacementGroupOutput ¶ added in v3.31.1
func (i *PlacementGroup) ToPlacementGroupOutput() PlacementGroupOutput
func (*PlacementGroup) ToPlacementGroupOutputWithContext ¶ added in v3.31.1
func (i *PlacementGroup) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput
func (*PlacementGroup) ToPlacementGroupPtrOutput ¶ added in v3.47.1
func (i *PlacementGroup) ToPlacementGroupPtrOutput() PlacementGroupPtrOutput
func (*PlacementGroup) ToPlacementGroupPtrOutputWithContext ¶ added in v3.47.1
func (i *PlacementGroup) ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput
type PlacementGroupArgs ¶
type PlacementGroupArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the availability set. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a PlacementGroup resource.
func (PlacementGroupArgs) ElementType ¶
func (PlacementGroupArgs) ElementType() reflect.Type
type PlacementGroupArray ¶ added in v3.47.1
type PlacementGroupArray []PlacementGroupInput
func (PlacementGroupArray) ElementType ¶ added in v3.47.1
func (PlacementGroupArray) ElementType() reflect.Type
func (PlacementGroupArray) ToPlacementGroupArrayOutput ¶ added in v3.47.1
func (i PlacementGroupArray) ToPlacementGroupArrayOutput() PlacementGroupArrayOutput
func (PlacementGroupArray) ToPlacementGroupArrayOutputWithContext ¶ added in v3.47.1
func (i PlacementGroupArray) ToPlacementGroupArrayOutputWithContext(ctx context.Context) PlacementGroupArrayOutput
type PlacementGroupArrayInput ¶ added in v3.47.1
type PlacementGroupArrayInput interface { pulumi.Input ToPlacementGroupArrayOutput() PlacementGroupArrayOutput ToPlacementGroupArrayOutputWithContext(context.Context) PlacementGroupArrayOutput }
PlacementGroupArrayInput is an input type that accepts PlacementGroupArray and PlacementGroupArrayOutput values. You can construct a concrete instance of `PlacementGroupArrayInput` via:
PlacementGroupArray{ PlacementGroupArgs{...} }
type PlacementGroupArrayOutput ¶ added in v3.47.1
type PlacementGroupArrayOutput struct{ *pulumi.OutputState }
func (PlacementGroupArrayOutput) ElementType ¶ added in v3.47.1
func (PlacementGroupArrayOutput) ElementType() reflect.Type
func (PlacementGroupArrayOutput) Index ¶ added in v3.47.1
func (o PlacementGroupArrayOutput) Index(i pulumi.IntInput) PlacementGroupOutput
func (PlacementGroupArrayOutput) ToPlacementGroupArrayOutput ¶ added in v3.47.1
func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutput() PlacementGroupArrayOutput
func (PlacementGroupArrayOutput) ToPlacementGroupArrayOutputWithContext ¶ added in v3.47.1
func (o PlacementGroupArrayOutput) ToPlacementGroupArrayOutputWithContext(ctx context.Context) PlacementGroupArrayOutput
type PlacementGroupInput ¶ added in v3.31.1
type PlacementGroupInput interface { pulumi.Input ToPlacementGroupOutput() PlacementGroupOutput ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput }
type PlacementGroupMap ¶ added in v3.47.1
type PlacementGroupMap map[string]PlacementGroupInput
func (PlacementGroupMap) ElementType ¶ added in v3.47.1
func (PlacementGroupMap) ElementType() reflect.Type
func (PlacementGroupMap) ToPlacementGroupMapOutput ¶ added in v3.47.1
func (i PlacementGroupMap) ToPlacementGroupMapOutput() PlacementGroupMapOutput
func (PlacementGroupMap) ToPlacementGroupMapOutputWithContext ¶ added in v3.47.1
func (i PlacementGroupMap) ToPlacementGroupMapOutputWithContext(ctx context.Context) PlacementGroupMapOutput
type PlacementGroupMapInput ¶ added in v3.47.1
type PlacementGroupMapInput interface { pulumi.Input ToPlacementGroupMapOutput() PlacementGroupMapOutput ToPlacementGroupMapOutputWithContext(context.Context) PlacementGroupMapOutput }
PlacementGroupMapInput is an input type that accepts PlacementGroupMap and PlacementGroupMapOutput values. You can construct a concrete instance of `PlacementGroupMapInput` via:
PlacementGroupMap{ "key": PlacementGroupArgs{...} }
type PlacementGroupMapOutput ¶ added in v3.47.1
type PlacementGroupMapOutput struct{ *pulumi.OutputState }
func (PlacementGroupMapOutput) ElementType ¶ added in v3.47.1
func (PlacementGroupMapOutput) ElementType() reflect.Type
func (PlacementGroupMapOutput) MapIndex ¶ added in v3.47.1
func (o PlacementGroupMapOutput) MapIndex(k pulumi.StringInput) PlacementGroupOutput
func (PlacementGroupMapOutput) ToPlacementGroupMapOutput ¶ added in v3.47.1
func (o PlacementGroupMapOutput) ToPlacementGroupMapOutput() PlacementGroupMapOutput
func (PlacementGroupMapOutput) ToPlacementGroupMapOutputWithContext ¶ added in v3.47.1
func (o PlacementGroupMapOutput) ToPlacementGroupMapOutputWithContext(ctx context.Context) PlacementGroupMapOutput
type PlacementGroupOutput ¶ added in v3.31.1
type PlacementGroupOutput struct {
*pulumi.OutputState
}
func (PlacementGroupOutput) ElementType ¶ added in v3.31.1
func (PlacementGroupOutput) ElementType() reflect.Type
func (PlacementGroupOutput) ToPlacementGroupOutput ¶ added in v3.31.1
func (o PlacementGroupOutput) ToPlacementGroupOutput() PlacementGroupOutput
func (PlacementGroupOutput) ToPlacementGroupOutputWithContext ¶ added in v3.31.1
func (o PlacementGroupOutput) ToPlacementGroupOutputWithContext(ctx context.Context) PlacementGroupOutput
func (PlacementGroupOutput) ToPlacementGroupPtrOutput ¶ added in v3.47.1
func (o PlacementGroupOutput) ToPlacementGroupPtrOutput() PlacementGroupPtrOutput
func (PlacementGroupOutput) ToPlacementGroupPtrOutputWithContext ¶ added in v3.47.1
func (o PlacementGroupOutput) ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput
type PlacementGroupPtrInput ¶ added in v3.47.1
type PlacementGroupPtrInput interface { pulumi.Input ToPlacementGroupPtrOutput() PlacementGroupPtrOutput ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput }
type PlacementGroupPtrOutput ¶ added in v3.47.1
type PlacementGroupPtrOutput struct {
*pulumi.OutputState
}
func (PlacementGroupPtrOutput) ElementType ¶ added in v3.47.1
func (PlacementGroupPtrOutput) ElementType() reflect.Type
func (PlacementGroupPtrOutput) ToPlacementGroupPtrOutput ¶ added in v3.47.1
func (o PlacementGroupPtrOutput) ToPlacementGroupPtrOutput() PlacementGroupPtrOutput
func (PlacementGroupPtrOutput) ToPlacementGroupPtrOutputWithContext ¶ added in v3.47.1
func (o PlacementGroupPtrOutput) ToPlacementGroupPtrOutputWithContext(ctx context.Context) PlacementGroupPtrOutput
type PlacementGroupState ¶
type PlacementGroupState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the availability set. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (PlacementGroupState) ElementType ¶
func (PlacementGroupState) ElementType() reflect.Type