All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.videoindexer.Account Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.videoindexer;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.videoindexer.AccountArgs;
import com.pulumi.azurenative.videoindexer.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.videoindexer.outputs.MediaServicesForPutRequestResponse;
import com.pulumi.azurenative.videoindexer.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * An Azure Video Indexer account.
 * Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2021-10-18-preview.
 * 
 * Other available API versions: 2024-01-01, 2024-04-01-preview, 2024-06-01-preview.
 * 
 * ## Example Usage
 * ### Put example #9
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.videoindexer.Account;
 * import com.pulumi.azurenative.videoindexer.AccountArgs;
 * 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 account = new Account("account", AccountArgs.builder()
 *             .accountName("contosto-videoanalyzer")
 *             .resourceGroupName("contosto-videoanalyzer-rg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:videoindexer:Account contosto-videoanalyzer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName} * ``` * */ @ResourceType(type="azure-native:videoindexer:Account") public class Account extends com.pulumi.resources.CustomResource { /** * The account's data-plane ID. This can be set only when connecting an existing classic account * */ @Export(name="accountId", refs={String.class}, tree="[0]") private Output accountId; /** * @return The account's data-plane ID. This can be set only when connecting an existing classic account * */ public Output> accountId() { return Codegen.optional(this.accountId); } /** * The account's name * */ @Export(name="accountName", refs={String.class}, tree="[0]") private Output accountName; /** * @return The account's name * */ public Output accountName() { return this.accountName; } /** * Managed service identity (system assigned and/or user assigned identities) * */ @Export(name="identity", refs={ManagedServiceIdentityResponse.class}, tree="[0]") private Output identity; /** * @return Managed service identity (system assigned and/or user assigned identities) * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The media services details * */ @Export(name="mediaServices", refs={MediaServicesForPutRequestResponse.class}, tree="[0]") private Output mediaServices; /** * @return The media services details * */ public Output> mediaServices() { return Codegen.optional(this.mediaServices); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Gets the status of the account at the time the operation was called. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Gets the status of the account at the time the operation was called. * */ public Output provisioningState() { return this.provisioningState; } /** * The system meta data relating to this resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return The system meta data relating to this resource. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The account's tenant id * */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; /** * @return The account's tenant id * */ public Output tenantId() { return this.tenantId; } /** * An integer representing the total seconds that have been indexed on the account * */ @Export(name="totalSecondsIndexed", refs={Integer.class}, tree="[0]") private Output totalSecondsIndexed; /** * @return An integer representing the total seconds that have been indexed on the account * */ public Output totalSecondsIndexed() { return this.totalSecondsIndexed; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Account(java.lang.String name) { this(name, AccountArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Account(java.lang.String name, AccountArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Account(java.lang.String name, AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:videoindexer:Account", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Account(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:videoindexer:Account", name, null, makeResourceOptions(options, id), false); } private static AccountArgs makeArgs(AccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AccountArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:videoindexer/v20211018preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20211027preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20211110preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20220413preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20220720preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20220801:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20240101:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20240401preview:Account").build()), Output.of(Alias.builder().type("azure-native:videoindexer/v20240601preview:Account").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Account get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Account(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy