This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getAsset.go
52 lines (47 loc) · 1.69 KB
/
getAsset.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 v20180701
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupAsset(ctx *pulumi.Context, args *LookupAssetArgs, opts ...pulumi.InvokeOption) (*LookupAssetResult, error) {
var rv LookupAssetResult
err := ctx.Invoke("azure-nextgen:media/v20180701:getAsset", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupAssetArgs struct {
// The Media Services account name.
AccountName string `pulumi:"accountName"`
// The Asset name.
AssetName string `pulumi:"assetName"`
// The name of the resource group within the Azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// An Asset.
type LookupAssetResult struct {
// The alternate ID of the Asset.
AlternateId *string `pulumi:"alternateId"`
// The Asset ID.
AssetId string `pulumi:"assetId"`
// The name of the asset blob container.
Container *string `pulumi:"container"`
// The creation date of the Asset.
Created string `pulumi:"created"`
// The Asset description.
Description *string `pulumi:"description"`
// Fully qualified resource ID for the resource.
Id string `pulumi:"id"`
// The last modified date of the Asset.
LastModified string `pulumi:"lastModified"`
// The name of the resource.
Name string `pulumi:"name"`
// The name of the storage account.
StorageAccountName *string `pulumi:"storageAccountName"`
// The Asset encryption format. One of None or MediaStorageEncryption.
StorageEncryptionFormat string `pulumi:"storageEncryptionFormat"`
// The type of the resource.
Type string `pulumi:"type"`
}