This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getAutomationAccount.go
52 lines (47 loc) · 1.73 KB
/
getAutomationAccount.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupAutomationAccount(ctx *pulumi.Context, args *LookupAutomationAccountArgs, opts ...pulumi.InvokeOption) (*LookupAutomationAccountResult, error) {
var rv LookupAutomationAccountResult
err := ctx.Invoke("azure-nextgen:automation/v20190601:getAutomationAccount", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupAutomationAccountArgs struct {
// The name of the automation account.
AutomationAccountName string `pulumi:"automationAccountName"`
// Name of an Azure Resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Definition of the automation account type.
type LookupAutomationAccountResult struct {
// Gets the creation time.
CreationTime string `pulumi:"creationTime"`
// Gets or sets the description.
Description *string `pulumi:"description"`
// Gets or sets the etag of the resource.
Etag *string `pulumi:"etag"`
// Fully qualified resource Id for the resource
Id string `pulumi:"id"`
// Gets or sets the last modified by.
LastModifiedBy *string `pulumi:"lastModifiedBy"`
// Gets the last modified time.
LastModifiedTime string `pulumi:"lastModifiedTime"`
// The Azure Region where the resource lives
Location *string `pulumi:"location"`
// The name of the resource
Name string `pulumi:"name"`
// Gets or sets the SKU of account.
Sku *SkuResponse `pulumi:"sku"`
// Gets status of account.
State string `pulumi:"state"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource.
Type string `pulumi:"type"`
}