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 ¶ 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
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutput ¶ added in v3.47.1
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (*AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutputWithContext ¶ added in v3.47.1
func (i *AssignmentDedicatedHost) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
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 AssignmentDedicatedHostArray ¶ added in v3.47.1
type AssignmentDedicatedHostArray []AssignmentDedicatedHostInput
func (AssignmentDedicatedHostArray) ElementType ¶ added in v3.47.1
func (AssignmentDedicatedHostArray) ElementType() reflect.Type
func (AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutput ¶ added in v3.47.1
func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
func (AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutputWithContext ¶ added in v3.47.1
func (i AssignmentDedicatedHostArray) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
type AssignmentDedicatedHostArrayInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type AssignmentDedicatedHostArrayOutput struct{ *pulumi.OutputState }
func (AssignmentDedicatedHostArrayOutput) ElementType ¶ added in v3.47.1
func (AssignmentDedicatedHostArrayOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostArrayOutput) Index ¶ added in v3.47.1
func (o AssignmentDedicatedHostArrayOutput) Index(i pulumi.IntInput) AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutput ¶ added in v3.47.1
func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutput() AssignmentDedicatedHostArrayOutput
func (AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutputWithContext ¶ added in v3.47.1
func (o AssignmentDedicatedHostArrayOutput) ToAssignmentDedicatedHostArrayOutputWithContext(ctx context.Context) AssignmentDedicatedHostArrayOutput
type AssignmentDedicatedHostInput ¶ added in v3.31.1
type AssignmentDedicatedHostInput interface { pulumi.Input ToAssignmentDedicatedHostOutput() AssignmentDedicatedHostOutput ToAssignmentDedicatedHostOutputWithContext(ctx context.Context) AssignmentDedicatedHostOutput }
type AssignmentDedicatedHostMap ¶ added in v3.47.1
type AssignmentDedicatedHostMap map[string]AssignmentDedicatedHostInput
func (AssignmentDedicatedHostMap) ElementType ¶ added in v3.47.1
func (AssignmentDedicatedHostMap) ElementType() reflect.Type
func (AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutput ¶ added in v3.47.1
func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
func (AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutputWithContext ¶ added in v3.47.1
func (i AssignmentDedicatedHostMap) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
type AssignmentDedicatedHostMapInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type AssignmentDedicatedHostMapOutput struct{ *pulumi.OutputState }
func (AssignmentDedicatedHostMapOutput) ElementType ¶ added in v3.47.1
func (AssignmentDedicatedHostMapOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostMapOutput) MapIndex ¶ added in v3.47.1
func (o AssignmentDedicatedHostMapOutput) MapIndex(k pulumi.StringInput) AssignmentDedicatedHostOutput
func (AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutput ¶ added in v3.47.1
func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutput() AssignmentDedicatedHostMapOutput
func (AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutputWithContext ¶ added in v3.47.1
func (o AssignmentDedicatedHostMapOutput) ToAssignmentDedicatedHostMapOutputWithContext(ctx context.Context) AssignmentDedicatedHostMapOutput
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
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutput ¶ added in v3.47.1
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutputWithContext ¶ added in v3.47.1
func (o AssignmentDedicatedHostOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
type AssignmentDedicatedHostPtrInput ¶ added in v3.47.1
type AssignmentDedicatedHostPtrInput interface { pulumi.Input ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput }
type AssignmentDedicatedHostPtrOutput ¶ added in v3.47.1
type AssignmentDedicatedHostPtrOutput struct {
*pulumi.OutputState
}
func (AssignmentDedicatedHostPtrOutput) ElementType ¶ added in v3.47.1
func (AssignmentDedicatedHostPtrOutput) ElementType() reflect.Type
func (AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutput ¶ added in v3.47.1
func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutput() AssignmentDedicatedHostPtrOutput
func (AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutputWithContext ¶ added in v3.47.1
func (o AssignmentDedicatedHostPtrOutput) ToAssignmentDedicatedHostPtrOutputWithContext(ctx context.Context) AssignmentDedicatedHostPtrOutput
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
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutput ¶ added in v3.47.1
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (*AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutputWithContext ¶ added in v3.47.1
func (i *AssignmentVirtualMachine) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
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 AssignmentVirtualMachineArray ¶ added in v3.47.1
type AssignmentVirtualMachineArray []AssignmentVirtualMachineInput
func (AssignmentVirtualMachineArray) ElementType ¶ added in v3.47.1
func (AssignmentVirtualMachineArray) ElementType() reflect.Type
func (AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutput ¶ added in v3.47.1
func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
func (AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutputWithContext ¶ added in v3.47.1
func (i AssignmentVirtualMachineArray) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
type AssignmentVirtualMachineArrayInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type AssignmentVirtualMachineArrayOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineArrayOutput) ElementType ¶ added in v3.47.1
func (AssignmentVirtualMachineArrayOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineArrayOutput) Index ¶ added in v3.47.1
func (o AssignmentVirtualMachineArrayOutput) Index(i pulumi.IntInput) AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutput ¶ added in v3.47.1
func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutput() AssignmentVirtualMachineArrayOutput
func (AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutputWithContext ¶ added in v3.47.1
func (o AssignmentVirtualMachineArrayOutput) ToAssignmentVirtualMachineArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineArrayOutput
type AssignmentVirtualMachineInput ¶ added in v3.31.1
type AssignmentVirtualMachineInput interface { pulumi.Input ToAssignmentVirtualMachineOutput() AssignmentVirtualMachineOutput ToAssignmentVirtualMachineOutputWithContext(ctx context.Context) AssignmentVirtualMachineOutput }
type AssignmentVirtualMachineMap ¶ added in v3.47.1
type AssignmentVirtualMachineMap map[string]AssignmentVirtualMachineInput
func (AssignmentVirtualMachineMap) ElementType ¶ added in v3.47.1
func (AssignmentVirtualMachineMap) ElementType() reflect.Type
func (AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutput ¶ added in v3.47.1
func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
func (AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutputWithContext ¶ added in v3.47.1
func (i AssignmentVirtualMachineMap) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
type AssignmentVirtualMachineMapInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type AssignmentVirtualMachineMapOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineMapOutput) ElementType ¶ added in v3.47.1
func (AssignmentVirtualMachineMapOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineMapOutput) MapIndex ¶ added in v3.47.1
func (o AssignmentVirtualMachineMapOutput) MapIndex(k pulumi.StringInput) AssignmentVirtualMachineOutput
func (AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutput ¶ added in v3.47.1
func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutput() AssignmentVirtualMachineMapOutput
func (AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutputWithContext ¶ added in v3.47.1
func (o AssignmentVirtualMachineMapOutput) ToAssignmentVirtualMachineMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineMapOutput
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
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutput ¶ added in v3.47.1
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutputWithContext ¶ added in v3.47.1
func (o AssignmentVirtualMachineOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
type AssignmentVirtualMachinePtrInput ¶ added in v3.47.1
type AssignmentVirtualMachinePtrInput interface { pulumi.Input ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput }
type AssignmentVirtualMachinePtrOutput ¶ added in v3.47.1
type AssignmentVirtualMachinePtrOutput struct {
*pulumi.OutputState
}
func (AssignmentVirtualMachinePtrOutput) ElementType ¶ added in v3.47.1
func (AssignmentVirtualMachinePtrOutput) ElementType() reflect.Type
func (AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutput ¶ added in v3.47.1
func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutput() AssignmentVirtualMachinePtrOutput
func (AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutputWithContext ¶ added in v3.47.1
func (o AssignmentVirtualMachinePtrOutput) ToAssignmentVirtualMachinePtrOutputWithContext(ctx context.Context) AssignmentVirtualMachinePtrOutput
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
func (*Configuration) ToConfigurationPtrOutput ¶ added in v3.47.1
func (i *Configuration) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (*Configuration) ToConfigurationPtrOutputWithContext ¶ added in v3.47.1
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 ¶ added in v3.47.1
type ConfigurationArray []ConfigurationInput
func (ConfigurationArray) ElementType ¶ added in v3.47.1
func (ConfigurationArray) ElementType() reflect.Type
func (ConfigurationArray) ToConfigurationArrayOutput ¶ added in v3.47.1
func (i ConfigurationArray) ToConfigurationArrayOutput() ConfigurationArrayOutput
func (ConfigurationArray) ToConfigurationArrayOutputWithContext ¶ added in v3.47.1
func (i ConfigurationArray) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput
type ConfigurationArrayInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type ConfigurationArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationArrayOutput) ElementType ¶ added in v3.47.1
func (ConfigurationArrayOutput) ElementType() reflect.Type
func (ConfigurationArrayOutput) Index ¶ added in v3.47.1
func (o ConfigurationArrayOutput) Index(i pulumi.IntInput) ConfigurationOutput
func (ConfigurationArrayOutput) ToConfigurationArrayOutput ¶ added in v3.47.1
func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput
func (ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext ¶ added in v3.47.1
func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput
type ConfigurationInput ¶ added in v3.31.1
type ConfigurationInput interface { pulumi.Input ToConfigurationOutput() ConfigurationOutput ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput }
type ConfigurationMap ¶ added in v3.47.1
type ConfigurationMap map[string]ConfigurationInput
func (ConfigurationMap) ElementType ¶ added in v3.47.1
func (ConfigurationMap) ElementType() reflect.Type
func (ConfigurationMap) ToConfigurationMapOutput ¶ added in v3.47.1
func (i ConfigurationMap) ToConfigurationMapOutput() ConfigurationMapOutput
func (ConfigurationMap) ToConfigurationMapOutputWithContext ¶ added in v3.47.1
func (i ConfigurationMap) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput
type ConfigurationMapInput ¶ added in v3.47.1
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 ¶ added in v3.47.1
type ConfigurationMapOutput struct{ *pulumi.OutputState }
func (ConfigurationMapOutput) ElementType ¶ added in v3.47.1
func (ConfigurationMapOutput) ElementType() reflect.Type
func (ConfigurationMapOutput) MapIndex ¶ added in v3.47.1
func (o ConfigurationMapOutput) MapIndex(k pulumi.StringInput) ConfigurationOutput
func (ConfigurationMapOutput) ToConfigurationMapOutput ¶ added in v3.47.1
func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput
func (ConfigurationMapOutput) ToConfigurationMapOutputWithContext ¶ added in v3.47.1
func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput
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
func (ConfigurationOutput) ToConfigurationPtrOutput ¶ added in v3.47.1
func (o ConfigurationOutput) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (ConfigurationOutput) ToConfigurationPtrOutputWithContext ¶ added in v3.47.1
func (o ConfigurationOutput) ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput
type ConfigurationPtrInput ¶ added in v3.47.1
type ConfigurationPtrInput interface { pulumi.Input ToConfigurationPtrOutput() ConfigurationPtrOutput ToConfigurationPtrOutputWithContext(ctx context.Context) ConfigurationPtrOutput }
type ConfigurationPtrOutput ¶ added in v3.47.1
type ConfigurationPtrOutput struct {
*pulumi.OutputState
}
func (ConfigurationPtrOutput) ElementType ¶ added in v3.47.1
func (ConfigurationPtrOutput) ElementType() reflect.Type
func (ConfigurationPtrOutput) ToConfigurationPtrOutput ¶ added in v3.47.1
func (o ConfigurationPtrOutput) ToConfigurationPtrOutput() ConfigurationPtrOutput
func (ConfigurationPtrOutput) ToConfigurationPtrOutputWithContext ¶ added in v3.47.1
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 ¶ 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 }) }
```