Documentation ¶
Index ¶
- type AssignmentDedicatedHost
- func (*AssignmentDedicatedHost) ElementType() reflect.Type
- func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
- func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
- func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
- func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
- type AssignmentDedicatedHostArgs
- type AssignmentDedicatedHostArray
- func (AssignmentDedicatedHostArray) ElementType() reflect.Type
- func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
- func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
- type AssignmentDedicatedHostArrayInput
- type AssignmentDedicatedHostArrayOutput
- func (AssignmentDedicatedHostArrayOutput) ElementType() reflect.Type
- func (o AssignmentDedicatedHostArrayOutput) Index(i pulumi.IntInput) AssignmentDedicatedHostOutput
- func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
- func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
- type AssignmentDedicatedHostInput
- type AssignmentDedicatedHostMap
- func (AssignmentDedicatedHostMap) ElementType() reflect.Type
- func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
- func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
- type AssignmentDedicatedHostMapInput
- type AssignmentDedicatedHostMapOutput
- func (AssignmentDedicatedHostMapOutput) ElementType() reflect.Type
- func (o AssignmentDedicatedHostMapOutput) MapIndex(k pulumi.StringInput) AssignmentDedicatedHostOutput
- func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
- func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
- type AssignmentDedicatedHostOutput
- func (AssignmentDedicatedHostOutput) ElementType() reflect.Type
- func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
- func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
- func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
- func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
- type AssignmentDedicatedHostPtrInput
- type AssignmentDedicatedHostPtrOutput
- func (AssignmentDedicatedHostPtrOutput) ElementType() reflect.Type
- func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
- func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
- type AssignmentDedicatedHostState
- type AssignmentVirtualMachine
- func (*AssignmentVirtualMachine) ElementType() reflect.Type
- func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
- func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
- func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
- func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
- type AssignmentVirtualMachineArgs
- type AssignmentVirtualMachineArray
- func (AssignmentVirtualMachineArray) ElementType() reflect.Type
- func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
- func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
- type AssignmentVirtualMachineArrayInput
- type AssignmentVirtualMachineArrayOutput
- func (AssignmentVirtualMachineArrayOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineArrayOutput) Index(i pulumi.IntInput) AssignmentVirtualMachineOutput
- func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
- func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
- type AssignmentVirtualMachineInput
- type AssignmentVirtualMachineMap
- func (AssignmentVirtualMachineMap) ElementType() reflect.Type
- func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
- func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
- type AssignmentVirtualMachineMapInput
- type AssignmentVirtualMachineMapOutput
- func (AssignmentVirtualMachineMapOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineMapOutput) MapIndex(k pulumi.StringInput) AssignmentVirtualMachineOutput
- func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
- func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
- type AssignmentVirtualMachineOutput
- func (AssignmentVirtualMachineOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
- type AssignmentVirtualMachinePtrInput
- type AssignmentVirtualMachinePtrOutput
- func (AssignmentVirtualMachinePtrOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
- func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
- type AssignmentVirtualMachineState
- type Configuration
- func (*Configuration) ElementType() reflect.Type
- func (i *Configuration) ToConfigurationOutput() ConfigurationOutput
- func (i *Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
- func (i *Configuration) ToConfigurationPtrOutput() ConfigurationPtrOutput
- func (i *Configuration) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
- type ConfigurationArgs
- type ConfigurationArray
- type ConfigurationArrayInput
- type ConfigurationArrayOutput
- func (ConfigurationArrayOutput) ElementType() reflect.Type
- func (o ConfigurationArrayOutput) Index(i pulumi.IntInput) ConfigurationOutput
- func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput
- func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput
- type ConfigurationInput
- type ConfigurationMap
- type ConfigurationMapInput
- type ConfigurationMapOutput
- func (ConfigurationMapOutput) ElementType() reflect.Type
- func (o ConfigurationMapOutput) MapIndex(k pulumi.StringInput) ConfigurationOutput
- func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput
- func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput
- type ConfigurationOutput
- func (ConfigurationOutput) ElementType() reflect.Type
- func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput
- func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
- func (o ConfigurationOutput) ToConfigurationPtrOutput() ConfigurationPtrOutput
- func (o ConfigurationOutput) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
- type ConfigurationPtrInput
- type ConfigurationPtrOutput
- type ConfigurationState
- type LookupConfigurationArgs
- type LookupConfigurationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentDedicatedHost ¶
type AssignmentDedicatedHost struct { pulumi.CustomResourceState // Specifies the Dedicated Host ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. DedicatedHostId pulumi.StringOutput `pulumi:"dedicatedHostId"` // 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 ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringOutput `pulumi:"maintenanceConfigurationId"` }
Manages a maintenance assignment to Dedicated Host.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/maintenance" "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 } exampleDedicatedHostGroup, err := compute.NewDedicatedHostGroup(ctx, "exampleDedicatedHostGroup", &compute.DedicatedHostGroupArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, PlatformFaultDomainCount: pulumi.Int(2), }) if err != nil { return err } exampleDedicatedHost, err := compute.NewDedicatedHost(ctx, "exampleDedicatedHost", &compute.DedicatedHostArgs{ Location: exampleResourceGroup.Location, DedicatedHostGroupId: exampleDedicatedHostGroup.ID(), SkuName: pulumi.String("DSv3-Type1"), PlatformFaultDomain: pulumi.Int(1), }) if err != nil { return err } exampleConfiguration, err := maintenance.NewConfiguration(ctx, "exampleConfiguration", &maintenance.ConfigurationArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Scope: pulumi.String("All"), }) if err != nil { return err } _, err = maintenance.NewAssignmentDedicatedHost(ctx, "exampleAssignmentDedicatedHost", &maintenance.AssignmentDedicatedHostArgs{ Location: exampleResourceGroup.Location, MaintenanceConfigurationId: exampleConfiguration.ID(), DedicatedHostId: exampleDedicatedHost.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Maintenance Assignment can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/assignmentDedicatedHost:AssignmentDedicatedHost example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resGroup1/providers/microsoft.compute/hostGroups/group1/hosts/host1/providers/Microsoft.Maintenance/configurationAssignments/assign1
```
func GetAssignmentDedicatedHost ¶
func GetAssignmentDedicatedHost(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssignmentDedicatedHostState, opts ...pulumi.ResourceOption) (*AssignmentDedicatedHost, error)
GetAssignmentDedicatedHost gets an existing AssignmentDedicatedHost 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 NewAssignmentDedicatedHost ¶
func NewAssignmentDedicatedHost(ctx *pulumi.Context, name string, args *AssignmentDedicatedHostArgs, opts ...pulumi.ResourceOption) (*AssignmentDedicatedHost, error)
NewAssignmentDedicatedHost registers a new resource with the given unique name, arguments, and options.
func (*AssignmentDedicatedHost) ElementType ¶
func (*AssignmentDedicatedHost) ElementType() reflect.Type
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostOutput ¶
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostOutputWithContext ¶
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutput ¶
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutputWithContext ¶
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
type AssignmentDedicatedHostArgs ¶
type AssignmentDedicatedHostArgs struct { // Specifies the Dedicated Host ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. DedicatedHostId pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringInput }
The set of arguments for constructing a AssignmentDedicatedHost resource.
func (AssignmentDedicatedHostArgs) ElementType ¶
func (AssignmentDedicatedHostArgs) ElementType() reflect.Type
type AssignmentDedicatedHostArray ¶
type AssignmentDedicatedHostArray []AssignmentDedicatedHostInput
func (AssignmentDedicatedHostArray) ElementType ¶
func (AssignmentDedicatedHostArray) ElementType() reflect.Type
func (AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutput ¶
func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
func (AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutputWithContext ¶
func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
type AssignmentDedicatedHostArrayInput ¶
type AssignmentDedicatedHostArrayInput interface { pulumi.Input ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput ToAssignmentDedicatedHostArrayOutputWithContext(context.Context) AssignmentDedicatedHostArrayOutput }
AssignmentDedicatedHostArrayInput is an input type that accepts AssignmentDedicatedHostArray and AssignmentDedicatedHostArrayOutput values. You can construct a concrete instance of `AssignmentDedicatedHostArrayInput` via:
AssignmentDedicatedHostArray{ AssignmentDedicatedHostArgs{...} }
type AssignmentDedicatedHostArrayOutput ¶
type AssignmentDedicatedHostArrayOutput struct{ *pulumi.OutputState }
func (AssignmentDedicatedHostArrayOutput) ElementType ¶
func (AssignmentDedicatedHostArrayOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostArrayOutput) Index ¶
func (o AssignmentDedicatedHostArrayOutput) Index(i pulumi.IntInput) AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutput ¶
func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
func (AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutputWithContext ¶
func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
type AssignmentDedicatedHostInput ¶
type AssignmentDedicatedHostInput interface { pulumi.Input ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput }
type AssignmentDedicatedHostMap ¶
type AssignmentDedicatedHostMap map[string]AssignmentDedicatedHostInput
func (AssignmentDedicatedHostMap) ElementType ¶
func (AssignmentDedicatedHostMap) ElementType() reflect.Type
func (AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutput ¶
func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
func (AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutputWithContext ¶
func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
type AssignmentDedicatedHostMapInput ¶
type AssignmentDedicatedHostMapInput interface { pulumi.Input ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput ToAssignmentDedicatedHostMapOutputWithContext(context.Context) AssignmentDedicatedHostMapOutput }
AssignmentDedicatedHostMapInput is an input type that accepts AssignmentDedicatedHostMap and AssignmentDedicatedHostMapOutput values. You can construct a concrete instance of `AssignmentDedicatedHostMapInput` via:
AssignmentDedicatedHostMap{ "key": AssignmentDedicatedHostArgs{...} }
type AssignmentDedicatedHostMapOutput ¶
type AssignmentDedicatedHostMapOutput struct{ *pulumi.OutputState }
func (AssignmentDedicatedHostMapOutput) ElementType ¶
func (AssignmentDedicatedHostMapOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostMapOutput) MapIndex ¶
func (o AssignmentDedicatedHostMapOutput) MapIndex(k pulumi.StringInput) AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutput ¶
func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
func (AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutputWithContext ¶
func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
type AssignmentDedicatedHostOutput ¶
type AssignmentDedicatedHostOutput struct {
*pulumi.OutputState
}
func (AssignmentDedicatedHostOutput) ElementType ¶
func (AssignmentDedicatedHostOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutput ¶
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutputWithContext ¶
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutput ¶
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutputWithContext ¶
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
type AssignmentDedicatedHostPtrInput ¶
type AssignmentDedicatedHostPtrInput interface { pulumi.Input ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput }
type AssignmentDedicatedHostPtrOutput ¶
type AssignmentDedicatedHostPtrOutput struct {
*pulumi.OutputState
}
func (AssignmentDedicatedHostPtrOutput) ElementType ¶
func (AssignmentDedicatedHostPtrOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutput ¶
func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutputWithContext ¶
func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
type AssignmentDedicatedHostState ¶
type AssignmentDedicatedHostState struct { // Specifies the Dedicated Host ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. DedicatedHostId pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringPtrInput }
func (AssignmentDedicatedHostState) ElementType ¶
func (AssignmentDedicatedHostState) ElementType() reflect.Type
type AssignmentVirtualMachine ¶
type AssignmentVirtualMachine 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 ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringOutput `pulumi:"maintenanceConfigurationId"` // Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineId pulumi.StringOutput `pulumi:"virtualMachineId"` }
Manages a maintenance assignment to virtual machine.
## Import
Maintenance Assignment can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/assignmentVirtualMachine:AssignmentVirtualMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resGroup1/providers/microsoft.compute/virtualMachines/vm1/providers/Microsoft.Maintenance/configurationAssignments/assign1
```
func GetAssignmentVirtualMachine ¶
func GetAssignmentVirtualMachine(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssignmentVirtualMachineState, opts ...pulumi.ResourceOption) (*AssignmentVirtualMachine, error)
GetAssignmentVirtualMachine gets an existing AssignmentVirtualMachine 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 NewAssignmentVirtualMachine ¶
func NewAssignmentVirtualMachine(ctx *pulumi.Context, name string, args *AssignmentVirtualMachineArgs, opts ...pulumi.ResourceOption) (*AssignmentVirtualMachine, error)
NewAssignmentVirtualMachine registers a new resource with the given unique name, arguments, and options.
func (*AssignmentVirtualMachine) ElementType ¶
func (*AssignmentVirtualMachine) ElementType() reflect.Type
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachineOutput ¶
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachineOutputWithContext ¶
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutput ¶
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutputWithContext ¶
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
type AssignmentVirtualMachineArgs ¶
type AssignmentVirtualMachineArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringInput // Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineId pulumi.StringInput }
The set of arguments for constructing a AssignmentVirtualMachine resource.
func (AssignmentVirtualMachineArgs) ElementType ¶
func (AssignmentVirtualMachineArgs) ElementType() reflect.Type
type AssignmentVirtualMachineArray ¶
type AssignmentVirtualMachineArray []AssignmentVirtualMachineInput
func (AssignmentVirtualMachineArray) ElementType ¶
func (AssignmentVirtualMachineArray) ElementType() reflect.Type
func (AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutput ¶
func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
func (AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutputWithContext ¶
func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
type AssignmentVirtualMachineArrayInput ¶
type AssignmentVirtualMachineArrayInput interface { pulumi.Input ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput ToAssignmentVirtualMachineArrayOutputWithContext(context.Context) AssignmentVirtualMachineArrayOutput }
AssignmentVirtualMachineArrayInput is an input type that accepts AssignmentVirtualMachineArray and AssignmentVirtualMachineArrayOutput values. You can construct a concrete instance of `AssignmentVirtualMachineArrayInput` via:
AssignmentVirtualMachineArray{ AssignmentVirtualMachineArgs{...} }
type AssignmentVirtualMachineArrayOutput ¶
type AssignmentVirtualMachineArrayOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineArrayOutput) ElementType ¶
func (AssignmentVirtualMachineArrayOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineArrayOutput) Index ¶
func (o AssignmentVirtualMachineArrayOutput) Index(i pulumi.IntInput) AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutput ¶
func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
func (AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutputWithContext ¶
func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
type AssignmentVirtualMachineInput ¶
type AssignmentVirtualMachineInput interface { pulumi.Input ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput }
type AssignmentVirtualMachineMap ¶
type AssignmentVirtualMachineMap map[string]AssignmentVirtualMachineInput
func (AssignmentVirtualMachineMap) ElementType ¶
func (AssignmentVirtualMachineMap) ElementType() reflect.Type
func (AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutput ¶
func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
func (AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutputWithContext ¶
func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
type AssignmentVirtualMachineMapInput ¶
type AssignmentVirtualMachineMapInput interface { pulumi.Input ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput ToAssignmentVirtualMachineMapOutputWithContext(context.Context) AssignmentVirtualMachineMapOutput }
AssignmentVirtualMachineMapInput is an input type that accepts AssignmentVirtualMachineMap and AssignmentVirtualMachineMapOutput values. You can construct a concrete instance of `AssignmentVirtualMachineMapInput` via:
AssignmentVirtualMachineMap{ "key": AssignmentVirtualMachineArgs{...} }
type AssignmentVirtualMachineMapOutput ¶
type AssignmentVirtualMachineMapOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineMapOutput) ElementType ¶
func (AssignmentVirtualMachineMapOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineMapOutput) MapIndex ¶
func (o AssignmentVirtualMachineMapOutput) MapIndex(k pulumi.StringInput) AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutput ¶
func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
func (AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutputWithContext ¶
func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
type AssignmentVirtualMachineOutput ¶
type AssignmentVirtualMachineOutput struct {
*pulumi.OutputState
}
func (AssignmentVirtualMachineOutput) ElementType ¶
func (AssignmentVirtualMachineOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput ¶
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext ¶
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutput ¶
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutputWithContext ¶
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
type AssignmentVirtualMachinePtrInput ¶
type AssignmentVirtualMachinePtrInput interface { pulumi.Input ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput }
type AssignmentVirtualMachinePtrOutput ¶
type AssignmentVirtualMachinePtrOutput struct {
*pulumi.OutputState
}
func (AssignmentVirtualMachinePtrOutput) ElementType ¶
func (AssignmentVirtualMachinePtrOutput) ElementType() reflect.Type
func (AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutput ¶
func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutputWithContext ¶
func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
type AssignmentVirtualMachineState ¶
type AssignmentVirtualMachineState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the ID of the Maintenance Configuration Resource. Changing this forces a new resource to be created. MaintenanceConfigurationId pulumi.StringPtrInput // Specifies the Virtual Machine ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineId pulumi.StringPtrInput }
func (AssignmentVirtualMachineState) ElementType ¶
func (AssignmentVirtualMachineState) ElementType() reflect.Type
type Configuration ¶
type Configuration struct { pulumi.CustomResourceState // Specified 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 Maintenance Configuration. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The scope of the Maintenance Configuration. Possible values are `All`, `Host`, `Resource` or `InResource`. Default to `All`. Scope pulumi.StringPtrOutput `pulumi:"scope"` // A mapping of tags to assign to the resource. The key could not contain upper case letter. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a maintenance configuration.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/maintenance" "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 } _, err = maintenance.NewConfiguration(ctx, "exampleConfiguration", &maintenance.ConfigurationArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Scope: pulumi.String("All"), Tags: pulumi.StringMap{ "Env": pulumi.String("prod"), }, }) if err != nil { return err } return nil }) }
```
## Import
Maintenance Configuration can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.maintenance/maintenanceconfigurations/example-mc
```
func GetConfiguration ¶
func GetConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConfigurationState, opts ...pulumi.ResourceOption) (*Configuration, error)
GetConfiguration gets an existing Configuration 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 NewConfiguration ¶
func NewConfiguration(ctx *pulumi.Context, name string, args *ConfigurationArgs, opts ...pulumi.ResourceOption) (*Configuration, error)
NewConfiguration registers a new resource with the given unique name, arguments, and options.
func (*Configuration) ElementType ¶
func (*Configuration) ElementType() reflect.Type
func (*Configuration) ToConfigurationOutput ¶
func (i *Configuration) ToConfigurationOutput() ConfigurationOutput
func (*Configuration) ToConfigurationOutputWithContext ¶
func (i *Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
func (*Configuration) ToConfigurationPtrOutput ¶
func (i *Configuration) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (*Configuration) ToConfigurationPtrOutputWithContext ¶
func (i *Configuration) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
type ConfigurationArgs ¶
type ConfigurationArgs struct { // Specified 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 Maintenance Configuration. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The scope of the Maintenance Configuration. Possible values are `All`, `Host`, `Resource` or `InResource`. Default to `All`. Scope pulumi.StringPtrInput // A mapping of tags to assign to the resource. The key could not contain upper case letter. Tags pulumi.StringMapInput }
The set of arguments for constructing a Configuration resource.
func (ConfigurationArgs) ElementType ¶
func (ConfigurationArgs) ElementType() reflect.Type
type ConfigurationArray ¶
type ConfigurationArray []ConfigurationInput
func (ConfigurationArray) ElementType ¶
func (ConfigurationArray) ElementType() reflect.Type
func (ConfigurationArray) ToConfigurationArrayOutput ¶
func (i ConfigurationArray) ToConfigurationArrayOutput() ConfigurationArrayOutput
func (ConfigurationArray) ToConfigurationArrayOutputWithContext ¶
func (i ConfigurationArray) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput
type ConfigurationArrayInput ¶
type ConfigurationArrayInput interface { pulumi.Input ToConfigurationArrayOutput() ConfigurationArrayOutput ToConfigurationArrayOutputWithContext(context.Context) ConfigurationArrayOutput }
ConfigurationArrayInput is an input type that accepts ConfigurationArray and ConfigurationArrayOutput values. You can construct a concrete instance of `ConfigurationArrayInput` via:
ConfigurationArray{ ConfigurationArgs{...} }
type ConfigurationArrayOutput ¶
type ConfigurationArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationArrayOutput) ElementType ¶
func (ConfigurationArrayOutput) ElementType() reflect.Type
func (ConfigurationArrayOutput) Index ¶
func (o ConfigurationArrayOutput) Index(i pulumi.IntInput) ConfigurationOutput
func (ConfigurationArrayOutput) ToConfigurationArrayOutput ¶
func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput
func (ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext ¶
func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput
type ConfigurationInput ¶
type ConfigurationInput interface { pulumi.Input ToConfigurationOutput() ConfigurationOutput ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput }
type ConfigurationMap ¶
type ConfigurationMap map[string]ConfigurationInput
func (ConfigurationMap) ElementType ¶
func (ConfigurationMap) ElementType() reflect.Type
func (ConfigurationMap) ToConfigurationMapOutput ¶
func (i ConfigurationMap) ToConfigurationMapOutput() ConfigurationMapOutput
func (ConfigurationMap) ToConfigurationMapOutputWithContext ¶
func (i ConfigurationMap) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput
type ConfigurationMapInput ¶
type ConfigurationMapInput interface { pulumi.Input ToConfigurationMapOutput() ConfigurationMapOutput ToConfigurationMapOutputWithContext(context.Context) ConfigurationMapOutput }
ConfigurationMapInput is an input type that accepts ConfigurationMap and ConfigurationMapOutput values. You can construct a concrete instance of `ConfigurationMapInput` via:
ConfigurationMap{ "key": ConfigurationArgs{...} }
type ConfigurationMapOutput ¶
type ConfigurationMapOutput struct{ *pulumi.OutputState }
func (ConfigurationMapOutput) ElementType ¶
func (ConfigurationMapOutput) ElementType() reflect.Type
func (ConfigurationMapOutput) MapIndex ¶
func (o ConfigurationMapOutput) MapIndex(k pulumi.StringInput) ConfigurationOutput
func (ConfigurationMapOutput) ToConfigurationMapOutput ¶
func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput
func (ConfigurationMapOutput) ToConfigurationMapOutputWithContext ¶
func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput
type ConfigurationOutput ¶
type ConfigurationOutput struct {
*pulumi.OutputState
}
func (ConfigurationOutput) ElementType ¶
func (ConfigurationOutput) ElementType() reflect.Type
func (ConfigurationOutput) ToConfigurationOutput ¶
func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput
func (ConfigurationOutput) ToConfigurationOutputWithContext ¶
func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
func (ConfigurationOutput) ToConfigurationPtrOutput ¶
func (o ConfigurationOutput) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (ConfigurationOutput) ToConfigurationPtrOutputWithContext ¶
func (o ConfigurationOutput) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
type ConfigurationPtrInput ¶
type ConfigurationPtrInput interface { pulumi.Input ToConfigurationPtrOutput() ConfigurationPtrOutput ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput }
type ConfigurationPtrOutput ¶
type ConfigurationPtrOutput struct {
*pulumi.OutputState
}
func (ConfigurationPtrOutput) ElementType ¶
func (ConfigurationPtrOutput) ElementType() reflect.Type
func (ConfigurationPtrOutput) ToConfigurationPtrOutput ¶
func (o ConfigurationPtrOutput) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (ConfigurationPtrOutput) ToConfigurationPtrOutputWithContext ¶
func (o ConfigurationPtrOutput) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
type ConfigurationState ¶
type ConfigurationState struct { // Specified 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 Maintenance Configuration. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The scope of the Maintenance Configuration. Possible values are `All`, `Host`, `Resource` or `InResource`. Default to `All`. Scope pulumi.StringPtrInput // A mapping of tags to assign to the resource. The key could not contain upper case letter. Tags pulumi.StringMapInput }
func (ConfigurationState) ElementType ¶
func (ConfigurationState) ElementType() reflect.Type
type LookupConfigurationArgs ¶
type LookupConfigurationArgs struct { // Specifies the name of the Maintenance Configuration. Name string `pulumi:"name"` // Specifies the name of the Resource Group where this Maintenance Configuration exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getConfiguration.
type LookupConfigurationResult ¶
type LookupConfigurationResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure location where the resource exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The scope of the Maintenance Configuration. Scope string `pulumi:"scope"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getConfiguration.
func LookupConfiguration ¶
func LookupConfiguration(ctx *pulumi.Context, args *LookupConfigurationArgs, opts ...pulumi.InvokeOption) (*LookupConfigurationResult, error)
Use this data source to access information about an existing Maintenance Configuration.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/maintenance" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := maintenance.LookupConfiguration(ctx, &maintenance.LookupConfigurationArgs{ Name: "example-mc", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("id", azurerm_maintenance_configuration.Existing.Id) return nil }) }
```