Documentation
¶
Index ¶
- type AssignmentDedicatedHost
- 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
- type AssignmentDedicatedHostState
- type AssignmentVirtualMachine
- 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
- type AssignmentVirtualMachineScaleSet
- func GetAssignmentVirtualMachineScaleSet(ctx *pulumi.Context, name string, id pulumi.IDInput, ...) (*AssignmentVirtualMachineScaleSet, error)
- func NewAssignmentVirtualMachineScaleSet(ctx *pulumi.Context, name string, args *AssignmentVirtualMachineScaleSetArgs, ...) (*AssignmentVirtualMachineScaleSet, error)
- func (*AssignmentVirtualMachineScaleSet) ElementType() reflect.Type
- func (i *AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutput() AssignmentVirtualMachineScaleSetOutput
- func (i *AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetOutput
- type AssignmentVirtualMachineScaleSetArgs
- type AssignmentVirtualMachineScaleSetArray
- func (AssignmentVirtualMachineScaleSetArray) ElementType() reflect.Type
- func (i AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutput() AssignmentVirtualMachineScaleSetArrayOutput
- func (i AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetArrayOutput
- type AssignmentVirtualMachineScaleSetArrayInput
- type AssignmentVirtualMachineScaleSetArrayOutput
- func (AssignmentVirtualMachineScaleSetArrayOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineScaleSetArrayOutput) Index(i pulumi.IntInput) AssignmentVirtualMachineScaleSetOutput
- func (o AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutput() AssignmentVirtualMachineScaleSetArrayOutput
- func (o AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetArrayOutput
- type AssignmentVirtualMachineScaleSetInput
- type AssignmentVirtualMachineScaleSetMap
- func (AssignmentVirtualMachineScaleSetMap) ElementType() reflect.Type
- func (i AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutput() AssignmentVirtualMachineScaleSetMapOutput
- func (i AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetMapOutput
- type AssignmentVirtualMachineScaleSetMapInput
- type AssignmentVirtualMachineScaleSetMapOutput
- func (AssignmentVirtualMachineScaleSetMapOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineScaleSetMapOutput) MapIndex(k pulumi.StringInput) AssignmentVirtualMachineScaleSetOutput
- func (o AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutput() AssignmentVirtualMachineScaleSetMapOutput
- func (o AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetMapOutput
- type AssignmentVirtualMachineScaleSetOutput
- func (AssignmentVirtualMachineScaleSetOutput) ElementType() reflect.Type
- func (o AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutput() AssignmentVirtualMachineScaleSetOutput
- func (o AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetOutput
- type AssignmentVirtualMachineScaleSetState
- type AssignmentVirtualMachineState
- type Configuration
- 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
- type ConfigurationState
- type ConfigurationWindow
- type ConfigurationWindowArgs
- func (ConfigurationWindowArgs) ElementType() reflect.Type
- func (i ConfigurationWindowArgs) ToConfigurationWindowOutput() ConfigurationWindowOutput
- func (i ConfigurationWindowArgs) ToConfigurationWindowOutputWithContext(ctx context.Context) ConfigurationWindowOutput
- func (i ConfigurationWindowArgs) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
- func (i ConfigurationWindowArgs) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
- type ConfigurationWindowInput
- type ConfigurationWindowOutput
- func (o ConfigurationWindowOutput) Duration() pulumi.StringPtrOutput
- func (ConfigurationWindowOutput) ElementType() reflect.Type
- func (o ConfigurationWindowOutput) ExpirationDateTime() pulumi.StringPtrOutput
- func (o ConfigurationWindowOutput) RecurEvery() pulumi.StringPtrOutput
- func (o ConfigurationWindowOutput) StartDateTime() pulumi.StringOutput
- func (o ConfigurationWindowOutput) TimeZone() pulumi.StringOutput
- func (o ConfigurationWindowOutput) ToConfigurationWindowOutput() ConfigurationWindowOutput
- func (o ConfigurationWindowOutput) ToConfigurationWindowOutputWithContext(ctx context.Context) ConfigurationWindowOutput
- func (o ConfigurationWindowOutput) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
- func (o ConfigurationWindowOutput) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
- type ConfigurationWindowPtrInput
- type ConfigurationWindowPtrOutput
- func (o ConfigurationWindowPtrOutput) Duration() pulumi.StringPtrOutput
- func (o ConfigurationWindowPtrOutput) Elem() ConfigurationWindowOutput
- func (ConfigurationWindowPtrOutput) ElementType() reflect.Type
- func (o ConfigurationWindowPtrOutput) ExpirationDateTime() pulumi.StringPtrOutput
- func (o ConfigurationWindowPtrOutput) RecurEvery() pulumi.StringPtrOutput
- func (o ConfigurationWindowPtrOutput) StartDateTime() pulumi.StringPtrOutput
- func (o ConfigurationWindowPtrOutput) TimeZone() pulumi.StringPtrOutput
- func (o ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
- func (o ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
- type GetConfigurationWindow
- type GetConfigurationWindowArgs
- type GetConfigurationWindowArray
- func (GetConfigurationWindowArray) ElementType() reflect.Type
- func (i GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutput() GetConfigurationWindowArrayOutput
- func (i GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutputWithContext(ctx context.Context) GetConfigurationWindowArrayOutput
- type GetConfigurationWindowArrayInput
- type GetConfigurationWindowArrayOutput
- func (GetConfigurationWindowArrayOutput) ElementType() reflect.Type
- func (o GetConfigurationWindowArrayOutput) Index(i pulumi.IntInput) GetConfigurationWindowOutput
- func (o GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutput() GetConfigurationWindowArrayOutput
- func (o GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutputWithContext(ctx context.Context) GetConfigurationWindowArrayOutput
- type GetConfigurationWindowInput
- type GetConfigurationWindowOutput
- func (o GetConfigurationWindowOutput) Duration() pulumi.StringOutput
- func (GetConfigurationWindowOutput) ElementType() reflect.Type
- func (o GetConfigurationWindowOutput) ExpirationDateTime() pulumi.StringOutput
- func (o GetConfigurationWindowOutput) RecurEvery() pulumi.StringOutput
- func (o GetConfigurationWindowOutput) StartDateTime() pulumi.StringOutput
- func (o GetConfigurationWindowOutput) TimeZone() pulumi.StringOutput
- func (o GetConfigurationWindowOutput) ToGetConfigurationWindowOutput() GetConfigurationWindowOutput
- func (o GetConfigurationWindowOutput) ToGetConfigurationWindowOutputWithContext(ctx context.Context) GetConfigurationWindowOutput
- type LookupConfigurationArgs
- type LookupConfigurationOutputArgs
- type LookupConfigurationResult
- type LookupConfigurationResultOutput
- func (LookupConfigurationResultOutput) ElementType() reflect.Type
- func (o LookupConfigurationResultOutput) Id() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Location() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Name() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Properties() pulumi.StringMapOutput
- func (o LookupConfigurationResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Scope() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutput() LookupConfigurationResultOutput
- func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutputWithContext(ctx context.Context) LookupConfigurationResultOutput
- func (o LookupConfigurationResultOutput) Visibility() pulumi.StringOutput
- func (o LookupConfigurationResultOutput) Windows() GetConfigurationWindowArrayOutput
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/v5/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/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
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
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.
## Example Usage
```go package main
import (
"io/ioutil" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/maintenance" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput { data, err := ioutil.ReadFile(path) if err != nil { panic(err.Error()) } return pulumi.String(string(data)) }
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 } exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{ AddressSpaces: pulumi.StringArray{ pulumi.String("10.0.0.0/16"), }, Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, }) if err != nil { return err } exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{ ResourceGroupName: exampleResourceGroup.Name, VirtualNetworkName: exampleVirtualNetwork.Name, AddressPrefixes: pulumi.StringArray{ pulumi.String("10.0.2.0/24"), }, }) if err != nil { return err } exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "exampleNetworkInterface", &network.NetworkInterfaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, IpConfigurations: network.NetworkInterfaceIpConfigurationArray{ &network.NetworkInterfaceIpConfigurationArgs{ Name: pulumi.String("internal"), SubnetId: exampleSubnet.ID(), PrivateIpAddressAllocation: pulumi.String("Dynamic"), }, }, }) if err != nil { return err } exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "exampleLinuxVirtualMachine", &compute.LinuxVirtualMachineArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Size: pulumi.String("Standard_F2"), AdminUsername: pulumi.String("adminuser"), NetworkInterfaceIds: pulumi.StringArray{ exampleNetworkInterface.ID(), }, AdminSshKeys: compute.LinuxVirtualMachineAdminSshKeyArray{ &compute.LinuxVirtualMachineAdminSshKeyArgs{ Username: pulumi.String("adminuser"), PublicKey: readFileOrPanic("~/.ssh/id_rsa.pub"), }, }, OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{ Caching: pulumi.String("ReadWrite"), StorageAccountType: pulumi.String("Standard_LRS"), }, SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{ Publisher: pulumi.String("Canonical"), Offer: pulumi.String("UbuntuServer"), Sku: pulumi.String("16.04-LTS"), Version: pulumi.String("latest"), }, }) 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.NewAssignmentVirtualMachine(ctx, "exampleAssignmentVirtualMachine", &maintenance.AssignmentVirtualMachineArgs{ Location: exampleResourceGroup.Location, MaintenanceConfigurationId: exampleConfiguration.ID(), VirtualMachineId: exampleLinuxVirtualMachine.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/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
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
type AssignmentVirtualMachineScaleSet ¶
type AssignmentVirtualMachineScaleSet 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 Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineScaleSetId pulumi.StringOutput `pulumi:"virtualMachineScaleSetId"` }
Manages a maintenance assignment to a virtual machine scale set.
## Import
Maintenance Assignment can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:maintenance/assignmentVirtualMachineScaleSet:AssignmentVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resGroup1/providers/microsoft.compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Maintenance/configurationAssignments/assign1
```
func GetAssignmentVirtualMachineScaleSet ¶
func GetAssignmentVirtualMachineScaleSet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AssignmentVirtualMachineScaleSetState, opts ...pulumi.ResourceOption) (*AssignmentVirtualMachineScaleSet, error)
GetAssignmentVirtualMachineScaleSet gets an existing AssignmentVirtualMachineScaleSet 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 NewAssignmentVirtualMachineScaleSet ¶
func NewAssignmentVirtualMachineScaleSet(ctx *pulumi.Context, name string, args *AssignmentVirtualMachineScaleSetArgs, opts ...pulumi.ResourceOption) (*AssignmentVirtualMachineScaleSet, error)
NewAssignmentVirtualMachineScaleSet registers a new resource with the given unique name, arguments, and options.
func (*AssignmentVirtualMachineScaleSet) ElementType ¶
func (*AssignmentVirtualMachineScaleSet) ElementType() reflect.Type
func (*AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutput ¶
func (i *AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutput() AssignmentVirtualMachineScaleSetOutput
func (*AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutputWithContext ¶
func (i *AssignmentVirtualMachineScaleSet) ToAssignmentVirtualMachineScaleSetOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetOutput
type AssignmentVirtualMachineScaleSetArgs ¶
type AssignmentVirtualMachineScaleSetArgs 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 Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineScaleSetId pulumi.StringInput }
The set of arguments for constructing a AssignmentVirtualMachineScaleSet resource.
func (AssignmentVirtualMachineScaleSetArgs) ElementType ¶
func (AssignmentVirtualMachineScaleSetArgs) ElementType() reflect.Type
type AssignmentVirtualMachineScaleSetArray ¶
type AssignmentVirtualMachineScaleSetArray []AssignmentVirtualMachineScaleSetInput
func (AssignmentVirtualMachineScaleSetArray) ElementType ¶
func (AssignmentVirtualMachineScaleSetArray) ElementType() reflect.Type
func (AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutput ¶
func (i AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutput() AssignmentVirtualMachineScaleSetArrayOutput
func (AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext ¶
func (i AssignmentVirtualMachineScaleSetArray) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetArrayOutput
type AssignmentVirtualMachineScaleSetArrayInput ¶
type AssignmentVirtualMachineScaleSetArrayInput interface { pulumi.Input ToAssignmentVirtualMachineScaleSetArrayOutput() AssignmentVirtualMachineScaleSetArrayOutput ToAssignmentVirtualMachineScaleSetArrayOutputWithContext(context.Context) AssignmentVirtualMachineScaleSetArrayOutput }
AssignmentVirtualMachineScaleSetArrayInput is an input type that accepts AssignmentVirtualMachineScaleSetArray and AssignmentVirtualMachineScaleSetArrayOutput values. You can construct a concrete instance of `AssignmentVirtualMachineScaleSetArrayInput` via:
AssignmentVirtualMachineScaleSetArray{ AssignmentVirtualMachineScaleSetArgs{...} }
type AssignmentVirtualMachineScaleSetArrayOutput ¶
type AssignmentVirtualMachineScaleSetArrayOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineScaleSetArrayOutput) ElementType ¶
func (AssignmentVirtualMachineScaleSetArrayOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutput ¶
func (o AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutput() AssignmentVirtualMachineScaleSetArrayOutput
func (AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext ¶
func (o AssignmentVirtualMachineScaleSetArrayOutput) ToAssignmentVirtualMachineScaleSetArrayOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetArrayOutput
type AssignmentVirtualMachineScaleSetInput ¶
type AssignmentVirtualMachineScaleSetInput interface { pulumi.Input ToAssignmentVirtualMachineScaleSetOutput() AssignmentVirtualMachineScaleSetOutput ToAssignmentVirtualMachineScaleSetOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetOutput }
type AssignmentVirtualMachineScaleSetMap ¶
type AssignmentVirtualMachineScaleSetMap map[string]AssignmentVirtualMachineScaleSetInput
func (AssignmentVirtualMachineScaleSetMap) ElementType ¶
func (AssignmentVirtualMachineScaleSetMap) ElementType() reflect.Type
func (AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutput ¶
func (i AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutput() AssignmentVirtualMachineScaleSetMapOutput
func (AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutputWithContext ¶
func (i AssignmentVirtualMachineScaleSetMap) ToAssignmentVirtualMachineScaleSetMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetMapOutput
type AssignmentVirtualMachineScaleSetMapInput ¶
type AssignmentVirtualMachineScaleSetMapInput interface { pulumi.Input ToAssignmentVirtualMachineScaleSetMapOutput() AssignmentVirtualMachineScaleSetMapOutput ToAssignmentVirtualMachineScaleSetMapOutputWithContext(context.Context) AssignmentVirtualMachineScaleSetMapOutput }
AssignmentVirtualMachineScaleSetMapInput is an input type that accepts AssignmentVirtualMachineScaleSetMap and AssignmentVirtualMachineScaleSetMapOutput values. You can construct a concrete instance of `AssignmentVirtualMachineScaleSetMapInput` via:
AssignmentVirtualMachineScaleSetMap{ "key": AssignmentVirtualMachineScaleSetArgs{...} }
type AssignmentVirtualMachineScaleSetMapOutput ¶
type AssignmentVirtualMachineScaleSetMapOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineScaleSetMapOutput) ElementType ¶
func (AssignmentVirtualMachineScaleSetMapOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineScaleSetMapOutput) MapIndex ¶
func (o AssignmentVirtualMachineScaleSetMapOutput) MapIndex(k pulumi.StringInput) AssignmentVirtualMachineScaleSetOutput
func (AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutput ¶
func (o AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutput() AssignmentVirtualMachineScaleSetMapOutput
func (AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutputWithContext ¶
func (o AssignmentVirtualMachineScaleSetMapOutput) ToAssignmentVirtualMachineScaleSetMapOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetMapOutput
type AssignmentVirtualMachineScaleSetOutput ¶
type AssignmentVirtualMachineScaleSetOutput struct{ *pulumi.OutputState }
func (AssignmentVirtualMachineScaleSetOutput) ElementType ¶
func (AssignmentVirtualMachineScaleSetOutput) ElementType() reflect.Type
func (AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutput ¶
func (o AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutput() AssignmentVirtualMachineScaleSetOutput
func (AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutputWithContext ¶
func (o AssignmentVirtualMachineScaleSetOutput) ToAssignmentVirtualMachineScaleSetOutputWithContext(ctx context.Context) AssignmentVirtualMachineScaleSetOutput
type AssignmentVirtualMachineScaleSetState ¶
type AssignmentVirtualMachineScaleSetState 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 Scale Set ID to which the Maintenance Configuration will be assigned. Changing this forces a new resource to be created. VirtualMachineScaleSetId pulumi.StringPtrInput }
func (AssignmentVirtualMachineScaleSetState) ElementType ¶
func (AssignmentVirtualMachineScaleSetState) ElementType() reflect.Type
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"` // A mapping of properties to assign to the resource. Properties pulumi.StringMapOutput `pulumi:"properties"` // 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`, `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. Defaults 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"` // The visibility of the Maintenance Configuration. The only allowable value is `Custom`. Visibility pulumi.StringPtrOutput `pulumi:"visibility"` // A `window` block as defined below. Window ConfigurationWindowPtrOutput `pulumi:"window"` }
Manages a maintenance configuration.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/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
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 // A mapping of properties to assign to the resource. Properties pulumi.StringMapInput // 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`, `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. Defaults 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 visibility of the Maintenance Configuration. The only allowable value is `Custom`. Visibility pulumi.StringPtrInput // A `window` block as defined below. Window ConfigurationWindowPtrInput }
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
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 // A mapping of properties to assign to the resource. Properties pulumi.StringMapInput // 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`, `Extension`, `Host`, `InGuestPatch`, `OSImage`, `SQLDB` or `SQLManagedInstance`. Defaults 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 visibility of the Maintenance Configuration. The only allowable value is `Custom`. Visibility pulumi.StringPtrInput // A `window` block as defined below. Window ConfigurationWindowPtrInput }
func (ConfigurationState) ElementType ¶
func (ConfigurationState) ElementType() reflect.Type
type ConfigurationWindow ¶
type ConfigurationWindow struct { // The duration of the maintenance window in HH:mm format. Duration *string `pulumi:"duration"` // Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. ExpirationDateTime *string `pulumi:"expirationDateTime"` // The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. RecurEvery *string `pulumi:"recurEvery"` // Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. StartDateTime string `pulumi:"startDateTime"` // The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. TimeZone string `pulumi:"timeZone"` }
type ConfigurationWindowArgs ¶
type ConfigurationWindowArgs struct { // The duration of the maintenance window in HH:mm format. Duration pulumi.StringPtrInput `pulumi:"duration"` // Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. ExpirationDateTime pulumi.StringPtrInput `pulumi:"expirationDateTime"` // The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. RecurEvery pulumi.StringPtrInput `pulumi:"recurEvery"` // Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. StartDateTime pulumi.StringInput `pulumi:"startDateTime"` // The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. TimeZone pulumi.StringInput `pulumi:"timeZone"` }
func (ConfigurationWindowArgs) ElementType ¶
func (ConfigurationWindowArgs) ElementType() reflect.Type
func (ConfigurationWindowArgs) ToConfigurationWindowOutput ¶
func (i ConfigurationWindowArgs) ToConfigurationWindowOutput() ConfigurationWindowOutput
func (ConfigurationWindowArgs) ToConfigurationWindowOutputWithContext ¶
func (i ConfigurationWindowArgs) ToConfigurationWindowOutputWithContext(ctx context.Context) ConfigurationWindowOutput
func (ConfigurationWindowArgs) ToConfigurationWindowPtrOutput ¶
func (i ConfigurationWindowArgs) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
func (ConfigurationWindowArgs) ToConfigurationWindowPtrOutputWithContext ¶
func (i ConfigurationWindowArgs) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
type ConfigurationWindowInput ¶
type ConfigurationWindowInput interface { pulumi.Input ToConfigurationWindowOutput() ConfigurationWindowOutput ToConfigurationWindowOutputWithContext(context.Context) ConfigurationWindowOutput }
ConfigurationWindowInput is an input type that accepts ConfigurationWindowArgs and ConfigurationWindowOutput values. You can construct a concrete instance of `ConfigurationWindowInput` via:
ConfigurationWindowArgs{...}
type ConfigurationWindowOutput ¶
type ConfigurationWindowOutput struct{ *pulumi.OutputState }
func (ConfigurationWindowOutput) Duration ¶
func (o ConfigurationWindowOutput) Duration() pulumi.StringPtrOutput
The duration of the maintenance window in HH:mm format.
func (ConfigurationWindowOutput) ElementType ¶
func (ConfigurationWindowOutput) ElementType() reflect.Type
func (ConfigurationWindowOutput) ExpirationDateTime ¶
func (o ConfigurationWindowOutput) ExpirationDateTime() pulumi.StringPtrOutput
Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
func (ConfigurationWindowOutput) RecurEvery ¶
func (o ConfigurationWindowOutput) RecurEvery() pulumi.StringPtrOutput
The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
func (ConfigurationWindowOutput) StartDateTime ¶
func (o ConfigurationWindowOutput) StartDateTime() pulumi.StringOutput
Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
func (ConfigurationWindowOutput) TimeZone ¶
func (o ConfigurationWindowOutput) TimeZone() pulumi.StringOutput
The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
func (ConfigurationWindowOutput) ToConfigurationWindowOutput ¶
func (o ConfigurationWindowOutput) ToConfigurationWindowOutput() ConfigurationWindowOutput
func (ConfigurationWindowOutput) ToConfigurationWindowOutputWithContext ¶
func (o ConfigurationWindowOutput) ToConfigurationWindowOutputWithContext(ctx context.Context) ConfigurationWindowOutput
func (ConfigurationWindowOutput) ToConfigurationWindowPtrOutput ¶
func (o ConfigurationWindowOutput) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
func (ConfigurationWindowOutput) ToConfigurationWindowPtrOutputWithContext ¶
func (o ConfigurationWindowOutput) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
type ConfigurationWindowPtrInput ¶
type ConfigurationWindowPtrInput interface { pulumi.Input ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput ToConfigurationWindowPtrOutputWithContext(context.Context) ConfigurationWindowPtrOutput }
ConfigurationWindowPtrInput is an input type that accepts ConfigurationWindowArgs, ConfigurationWindowPtr and ConfigurationWindowPtrOutput values. You can construct a concrete instance of `ConfigurationWindowPtrInput` via:
ConfigurationWindowArgs{...} or: nil
func ConfigurationWindowPtr ¶
func ConfigurationWindowPtr(v *ConfigurationWindowArgs) ConfigurationWindowPtrInput
type ConfigurationWindowPtrOutput ¶
type ConfigurationWindowPtrOutput struct{ *pulumi.OutputState }
func (ConfigurationWindowPtrOutput) Duration ¶
func (o ConfigurationWindowPtrOutput) Duration() pulumi.StringPtrOutput
The duration of the maintenance window in HH:mm format.
func (ConfigurationWindowPtrOutput) Elem ¶
func (o ConfigurationWindowPtrOutput) Elem() ConfigurationWindowOutput
func (ConfigurationWindowPtrOutput) ElementType ¶
func (ConfigurationWindowPtrOutput) ElementType() reflect.Type
func (ConfigurationWindowPtrOutput) ExpirationDateTime ¶
func (o ConfigurationWindowPtrOutput) ExpirationDateTime() pulumi.StringPtrOutput
Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
func (ConfigurationWindowPtrOutput) RecurEvery ¶
func (o ConfigurationWindowPtrOutput) RecurEvery() pulumi.StringPtrOutput
The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
func (ConfigurationWindowPtrOutput) StartDateTime ¶
func (o ConfigurationWindowPtrOutput) StartDateTime() pulumi.StringPtrOutput
Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
func (ConfigurationWindowPtrOutput) TimeZone ¶
func (o ConfigurationWindowPtrOutput) TimeZone() pulumi.StringPtrOutput
The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
func (ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutput ¶
func (o ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutput() ConfigurationWindowPtrOutput
func (ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutputWithContext ¶
func (o ConfigurationWindowPtrOutput) ToConfigurationWindowPtrOutputWithContext(ctx context.Context) ConfigurationWindowPtrOutput
type GetConfigurationWindow ¶
type GetConfigurationWindow struct { // The duration of the maintenance window. Duration string `pulumi:"duration"` // Effective expiration date of the maintenance window. ExpirationDateTime string `pulumi:"expirationDateTime"` RecurEvery string `pulumi:"recurEvery"` // Effective start date of the maintenance window. StartDateTime string `pulumi:"startDateTime"` // The time zone for the maintenance window. TimeZone string `pulumi:"timeZone"` }
type GetConfigurationWindowArgs ¶
type GetConfigurationWindowArgs struct { // The duration of the maintenance window. Duration pulumi.StringInput `pulumi:"duration"` // Effective expiration date of the maintenance window. ExpirationDateTime pulumi.StringInput `pulumi:"expirationDateTime"` RecurEvery pulumi.StringInput `pulumi:"recurEvery"` // Effective start date of the maintenance window. StartDateTime pulumi.StringInput `pulumi:"startDateTime"` // The time zone for the maintenance window. TimeZone pulumi.StringInput `pulumi:"timeZone"` }
func (GetConfigurationWindowArgs) ElementType ¶
func (GetConfigurationWindowArgs) ElementType() reflect.Type
func (GetConfigurationWindowArgs) ToGetConfigurationWindowOutput ¶
func (i GetConfigurationWindowArgs) ToGetConfigurationWindowOutput() GetConfigurationWindowOutput
func (GetConfigurationWindowArgs) ToGetConfigurationWindowOutputWithContext ¶
func (i GetConfigurationWindowArgs) ToGetConfigurationWindowOutputWithContext(ctx context.Context) GetConfigurationWindowOutput
type GetConfigurationWindowArray ¶
type GetConfigurationWindowArray []GetConfigurationWindowInput
func (GetConfigurationWindowArray) ElementType ¶
func (GetConfigurationWindowArray) ElementType() reflect.Type
func (GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutput ¶
func (i GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutput() GetConfigurationWindowArrayOutput
func (GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutputWithContext ¶
func (i GetConfigurationWindowArray) ToGetConfigurationWindowArrayOutputWithContext(ctx context.Context) GetConfigurationWindowArrayOutput
type GetConfigurationWindowArrayInput ¶
type GetConfigurationWindowArrayInput interface { pulumi.Input ToGetConfigurationWindowArrayOutput() GetConfigurationWindowArrayOutput ToGetConfigurationWindowArrayOutputWithContext(context.Context) GetConfigurationWindowArrayOutput }
GetConfigurationWindowArrayInput is an input type that accepts GetConfigurationWindowArray and GetConfigurationWindowArrayOutput values. You can construct a concrete instance of `GetConfigurationWindowArrayInput` via:
GetConfigurationWindowArray{ GetConfigurationWindowArgs{...} }
type GetConfigurationWindowArrayOutput ¶
type GetConfigurationWindowArrayOutput struct{ *pulumi.OutputState }
func (GetConfigurationWindowArrayOutput) ElementType ¶
func (GetConfigurationWindowArrayOutput) ElementType() reflect.Type
func (GetConfigurationWindowArrayOutput) Index ¶
func (o GetConfigurationWindowArrayOutput) Index(i pulumi.IntInput) GetConfigurationWindowOutput
func (GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutput ¶
func (o GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutput() GetConfigurationWindowArrayOutput
func (GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutputWithContext ¶
func (o GetConfigurationWindowArrayOutput) ToGetConfigurationWindowArrayOutputWithContext(ctx context.Context) GetConfigurationWindowArrayOutput
type GetConfigurationWindowInput ¶
type GetConfigurationWindowInput interface { pulumi.Input ToGetConfigurationWindowOutput() GetConfigurationWindowOutput ToGetConfigurationWindowOutputWithContext(context.Context) GetConfigurationWindowOutput }
GetConfigurationWindowInput is an input type that accepts GetConfigurationWindowArgs and GetConfigurationWindowOutput values. You can construct a concrete instance of `GetConfigurationWindowInput` via:
GetConfigurationWindowArgs{...}
type GetConfigurationWindowOutput ¶
type GetConfigurationWindowOutput struct{ *pulumi.OutputState }
func (GetConfigurationWindowOutput) Duration ¶
func (o GetConfigurationWindowOutput) Duration() pulumi.StringOutput
The duration of the maintenance window.
func (GetConfigurationWindowOutput) ElementType ¶
func (GetConfigurationWindowOutput) ElementType() reflect.Type
func (GetConfigurationWindowOutput) ExpirationDateTime ¶
func (o GetConfigurationWindowOutput) ExpirationDateTime() pulumi.StringOutput
Effective expiration date of the maintenance window.
func (GetConfigurationWindowOutput) RecurEvery ¶
func (o GetConfigurationWindowOutput) RecurEvery() pulumi.StringOutput
func (GetConfigurationWindowOutput) StartDateTime ¶
func (o GetConfigurationWindowOutput) StartDateTime() pulumi.StringOutput
Effective start date of the maintenance window.
func (GetConfigurationWindowOutput) TimeZone ¶
func (o GetConfigurationWindowOutput) TimeZone() pulumi.StringOutput
The time zone for the maintenance window.
func (GetConfigurationWindowOutput) ToGetConfigurationWindowOutput ¶
func (o GetConfigurationWindowOutput) ToGetConfigurationWindowOutput() GetConfigurationWindowOutput
func (GetConfigurationWindowOutput) ToGetConfigurationWindowOutputWithContext ¶
func (o GetConfigurationWindowOutput) ToGetConfigurationWindowOutputWithContext(ctx context.Context) GetConfigurationWindowOutput
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 LookupConfigurationOutputArgs ¶
type LookupConfigurationOutputArgs struct { // Specifies the name of the Maintenance Configuration. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Resource Group where this Maintenance Configuration exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getConfiguration.
func (LookupConfigurationOutputArgs) ElementType ¶
func (LookupConfigurationOutputArgs) ElementType() reflect.Type
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"` // The properties assigned to the resource. Properties map[string]string `pulumi:"properties"` 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"` // The visibility of the Maintenance Configuration. Visibility string `pulumi:"visibility"` // A `window` block as defined below. Windows []GetConfigurationWindow `pulumi:"windows"` }
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/v5/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 }) }
```
type LookupConfigurationResultOutput ¶
type LookupConfigurationResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getConfiguration.
func LookupConfigurationOutput ¶
func LookupConfigurationOutput(ctx *pulumi.Context, args LookupConfigurationOutputArgs, opts ...pulumi.InvokeOption) LookupConfigurationResultOutput
func (LookupConfigurationResultOutput) ElementType ¶
func (LookupConfigurationResultOutput) ElementType() reflect.Type
func (LookupConfigurationResultOutput) Id ¶
func (o LookupConfigurationResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupConfigurationResultOutput) Location ¶
func (o LookupConfigurationResultOutput) Location() pulumi.StringOutput
The Azure location where the resource exists.
func (LookupConfigurationResultOutput) Name ¶
func (o LookupConfigurationResultOutput) Name() pulumi.StringOutput
func (LookupConfigurationResultOutput) Properties ¶
func (o LookupConfigurationResultOutput) Properties() pulumi.StringMapOutput
The properties assigned to the resource.
func (LookupConfigurationResultOutput) ResourceGroupName ¶
func (o LookupConfigurationResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupConfigurationResultOutput) Scope ¶
func (o LookupConfigurationResultOutput) Scope() pulumi.StringOutput
The scope of the Maintenance Configuration.
func (LookupConfigurationResultOutput) Tags ¶
func (o LookupConfigurationResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (LookupConfigurationResultOutput) ToLookupConfigurationResultOutput ¶
func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutput() LookupConfigurationResultOutput
func (LookupConfigurationResultOutput) ToLookupConfigurationResultOutputWithContext ¶
func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutputWithContext(ctx context.Context) LookupConfigurationResultOutput
func (LookupConfigurationResultOutput) Visibility ¶
func (o LookupConfigurationResultOutput) Visibility() pulumi.StringOutput
The visibility of the Maintenance Configuration.
func (LookupConfigurationResultOutput) Windows ¶
func (o LookupConfigurationResultOutput) Windows() GetConfigurationWindowArrayOutput
A `window` block as defined below.