Documentation
¶
Index ¶
- type AssignmentDedicatedHost
- type AssignmentDedicatedHostArgs
- type AssignmentDedicatedHostInput
- type AssignmentDedicatedHostOutput
- type AssignmentDedicatedHostState
- type AssignmentVirtualMachine
- type AssignmentVirtualMachineArgs
- type AssignmentVirtualMachineInput
- type AssignmentVirtualMachineOutput
- func (AssignmentVirtualMachineOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
- func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
- type AssignmentVirtualMachineState
- type Configuration
- type ConfigurationArgs
- type ConfigurationInput
- type ConfigurationOutput
- type ConfigurationState
- type LookupConfigurationArgs
- type LookupConfigurationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentDedicatedHost ¶ added in v3.10.0
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/v3/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/maintenance" "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 } 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 ¶ added in v3.10.0
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 ¶ added in v3.10.0
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 ¶ added in v3.31.1
func (AssignmentDedicatedHost) ElementType() reflect.Type
func (AssignmentDedicatedHost) ToAssignmentDedicatedHostOutput ¶ added in v3.31.1
func (i AssignmentDedicatedHost) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
func (AssignmentDedicatedHost) ToAssignmentDedicatedHostOutputWithContext ¶ added in v3.31.1
func (i AssignmentDedicatedHost) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
type AssignmentDedicatedHostArgs ¶ added in v3.10.0
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 ¶ added in v3.10.0
func (AssignmentDedicatedHostArgs) ElementType() reflect.Type
type AssignmentDedicatedHostInput ¶ added in v3.31.1
type AssignmentDedicatedHostInput interface { pulumi.Input ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput }
type AssignmentDedicatedHostOutput ¶ added in v3.31.1
type AssignmentDedicatedHostOutput struct {
*pulumi.OutputState
}
func (AssignmentDedicatedHostOutput) ElementType ¶ added in v3.31.1
func (AssignmentDedicatedHostOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutput ¶ added in v3.31.1
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutputWithContext ¶ added in v3.31.1
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput
type AssignmentDedicatedHostState ¶ added in v3.10.0
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 ¶ added in v3.10.0
func (AssignmentDedicatedHostState) ElementType() reflect.Type
type AssignmentVirtualMachine ¶ added in v3.10.0
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 ¶ added in v3.10.0
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 ¶ added in v3.10.0
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 ¶ added in v3.31.1
func (AssignmentVirtualMachine) ElementType() reflect.Type
func (AssignmentVirtualMachine) ToAssignmentVirtualMachineOutput ¶ added in v3.31.1
func (i AssignmentVirtualMachine) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
func (AssignmentVirtualMachine) ToAssignmentVirtualMachineOutputWithContext ¶ added in v3.31.1
func (i AssignmentVirtualMachine) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
type AssignmentVirtualMachineArgs ¶ added in v3.10.0
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 ¶ added in v3.10.0
func (AssignmentVirtualMachineArgs) ElementType() reflect.Type
type AssignmentVirtualMachineInput ¶ added in v3.31.1
type AssignmentVirtualMachineInput interface { pulumi.Input ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput }
type AssignmentVirtualMachineOutput ¶ added in v3.31.1
type AssignmentVirtualMachineOutput struct {
*pulumi.OutputState
}
func (AssignmentVirtualMachineOutput) ElementType ¶ added in v3.31.1
func (AssignmentVirtualMachineOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput ¶ added in v3.31.1
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext ¶ added in v3.31.1
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput
type AssignmentVirtualMachineState ¶ added in v3.10.0
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 ¶ added in v3.10.0
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/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/maintenance" "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 = 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 ¶ added in v3.31.1
func (Configuration) ElementType() reflect.Type
func (Configuration) ToConfigurationOutput ¶ added in v3.31.1
func (i Configuration) ToConfigurationOutput() ConfigurationOutput
func (Configuration) ToConfigurationOutputWithContext ¶ added in v3.31.1
func (i Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
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 ConfigurationInput ¶ added in v3.31.1
type ConfigurationInput interface { pulumi.Input ToConfigurationOutput() ConfigurationOutput ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput }
type ConfigurationOutput ¶ added in v3.31.1
type ConfigurationOutput struct {
*pulumi.OutputState
}
func (ConfigurationOutput) ElementType ¶ added in v3.31.1
func (ConfigurationOutput) ElementType() reflect.Type
func (ConfigurationOutput) ToConfigurationOutput ¶ added in v3.31.1
func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput
func (ConfigurationOutput) ToConfigurationOutputWithContext ¶ added in v3.31.1
func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
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 ¶ added in v3.4.0
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 ¶ added in v3.4.0
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 ¶ added in v3.4.0
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/v3/go/azure/maintenance" "github.com/pulumi/pulumi/sdk/v2/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 }) }
```