Asset

class Asset : KotlinCustomResource

An Asset. Uses Azure REST API version 2023-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-01. Other available API versions: 2018-03-30-preview, 2018-06-01-preview, 2018-07-01, 2020-05-01, 2021-06-01, 2021-11-01, 2022-08-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native media [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create an Asset

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.Media.Asset("asset", new()
{
AccountName = "contosomedia",
AssetName = "ClimbingMountLogan",
Description = "A documentary showing the ascent of Mount Logan",
ResourceGroupName = "contosorg",
StorageAccountName = "storage0",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewAsset(ctx, "asset", &media.AssetArgs{
AccountName: pulumi.String("contosomedia"),
AssetName: pulumi.String("ClimbingMountLogan"),
Description: pulumi.String("A documentary showing the ascent of Mount Logan"),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccountName: pulumi.String("storage0"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.Asset;
import com.pulumi.azurenative.media.AssetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var asset = new Asset("asset", AssetArgs.builder()
.accountName("contosomedia")
.assetName("ClimbingMountLogan")
.description("A documentary showing the ascent of Mount Logan")
.resourceGroupName("contosorg")
.storageAccountName("storage0")
.build());
}
}

Create an Asset with encryption scope

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.Media.Asset("asset", new()
{
AccountName = "contosomedia",
AssetName = "ClimbingMountLogan",
Description = "A documentary showing the ascent of Mount Logan",
EncryptionScope = "encryptionScope1",
ResourceGroupName = "contosorg",
StorageAccountName = "storage0",
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewAsset(ctx, "asset", &media.AssetArgs{
AccountName: pulumi.String("contosomedia"),
AssetName: pulumi.String("ClimbingMountLogan"),
Description: pulumi.String("A documentary showing the ascent of Mount Logan"),
EncryptionScope: pulumi.String("encryptionScope1"),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccountName: pulumi.String("storage0"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.Asset;
import com.pulumi.azurenative.media.AssetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var asset = new Asset("asset", AssetArgs.builder()
.accountName("contosomedia")
.assetName("ClimbingMountLogan")
.description("A documentary showing the ascent of Mount Logan")
.encryptionScope("encryptionScope1")
.resourceGroupName("contosorg")
.storageAccountName("storage0")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:media:Asset ClimbingMountLogan /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}

Properties

Link copied to clipboard
val alternateId: Output<String>?

The alternate ID of the Asset.

Link copied to clipboard
val assetId: Output<String>

The Asset ID.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val container: Output<String>?

The name of the asset blob container.

Link copied to clipboard
val created: Output<String>

The creation date of the Asset.

Link copied to clipboard
val description: Output<String>?

The Asset description.

Link copied to clipboard
val encryptionScope: Output<String>?

The Asset container encryption scope in the storage account.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastModified: Output<String>

The last modified date of the Asset.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the storage account.

Link copied to clipboard

The Asset encryption format. One of None or MediaStorageEncryption.

Link copied to clipboard

The system metadata relating to this resource.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>