com.pulumi.azurenative.storsimple.VolumeContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.storsimple;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storsimple.VolumeContainerArgs;
import com.pulumi.azurenative.storsimple.outputs.AsymmetricEncryptedSecretResponse;
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.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The volume container.
* Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 2017-06-01.
*
* ## Example Usage
* ### VolumeContainersCreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.storsimple.VolumeContainer;
* import com.pulumi.azurenative.storsimple.VolumeContainerArgs;
* import com.pulumi.azurenative.storsimple.inputs.AsymmetricEncryptedSecretArgs;
* 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 volumeContainer = new VolumeContainer("volumeContainer", VolumeContainerArgs.builder()
* .bandwidthSettingId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/bandwidthSettings/bandwidthSetting1")
* .deviceName("Device05ForSDKTest")
* .encryptionKey(AsymmetricEncryptedSecretArgs.builder()
* .encryptionAlgorithm("RSAES_PKCS1_v_1_5")
* .encryptionCertThumbprint("A872A2DF196AC7682EE24791E7DE2E2A360F5926")
* .value("R//pyVLx/fn58ia098JiLgZB5RY7fVT+6o8a4fmsvjy+ls2UgJphMf25XVqEQCZnsp/5uxteN1M/9ArPIICdhM7M1+b/Ur7kJ0FH0ktxfk7CrPWWJLI4q20LZoduJGI56lREav1VpuLdqw5F9fRcq7zbfgPQ3B/SD0mfumNRiV+AnwbC6msfavIuWrhVDl9iSzEPE+zU06/kpsexnrS81yYT2QlVVUbvpY4F3zfH8TQPpAROTbv2pld6JO4eGOrZ5O1iOr6XCg2TY2W/jf+Ev4z5tqC9VWXE5kh65gjBfpWN0bDWXKekqEhor2crHAxZi4dybdY8Ok1MDWd1CSU8kw==")
* .build())
* .managerName("ManagerForSDKTest1")
* .resourceGroupName("ResourceGroupForSDKTest")
* .storageAccountCredentialId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/storageAccountCredentials/safortestrecording")
* .volumeContainerName("VolumeContainerForSDKTest")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:storsimple:VolumeContainer VolumeContainerForSDKTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/volumeContainers/{volumeContainerName}
* ```
*
*/
@ResourceType(type="azure-native:storsimple:VolumeContainer")
public class VolumeContainer extends com.pulumi.resources.CustomResource {
/**
* The bandwidth-rate set on the volume container.
*
*/
@Export(name="bandWidthRateInMbps", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> bandWidthRateInMbps;
/**
* @return The bandwidth-rate set on the volume container.
*
*/
public Output> bandWidthRateInMbps() {
return Codegen.optional(this.bandWidthRateInMbps);
}
/**
* The ID of the bandwidth setting associated with the volume container.
*
*/
@Export(name="bandwidthSettingId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> bandwidthSettingId;
/**
* @return The ID of the bandwidth setting associated with the volume container.
*
*/
public Output> bandwidthSettingId() {
return Codegen.optional(this.bandwidthSettingId);
}
/**
* The key used to encrypt data in the volume container. It is required when property 'EncryptionStatus' is "Enabled".
*
*/
@Export(name="encryptionKey", refs={AsymmetricEncryptedSecretResponse.class}, tree="[0]")
private Output* @Nullable */ AsymmetricEncryptedSecretResponse> encryptionKey;
/**
* @return The key used to encrypt data in the volume container. It is required when property 'EncryptionStatus' is "Enabled".
*
*/
public Output> encryptionKey() {
return Codegen.optional(this.encryptionKey);
}
/**
* The flag to denote whether encryption is enabled or not.
*
*/
@Export(name="encryptionStatus", refs={String.class}, tree="[0]")
private Output encryptionStatus;
/**
* @return The flag to denote whether encryption is enabled or not.
*
*/
public Output encryptionStatus() {
return this.encryptionStatus;
}
/**
* The Kind of the object. Currently only Series8000 is supported
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return The Kind of the object. Currently only Series8000 is supported
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* The name of the object.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the object.
*
*/
public Output name() {
return this.name;
}
/**
* The owner ship status of the volume container. Only when the status is "NotOwned", the delete operation on the volume container is permitted.
*
*/
@Export(name="ownerShipStatus", refs={String.class}, tree="[0]")
private Output ownerShipStatus;
/**
* @return The owner ship status of the volume container. Only when the status is "NotOwned", the delete operation on the volume container is permitted.
*
*/
public Output ownerShipStatus() {
return this.ownerShipStatus;
}
/**
* The path ID of storage account associated with the volume container.
*
*/
@Export(name="storageAccountCredentialId", refs={String.class}, tree="[0]")
private Output storageAccountCredentialId;
/**
* @return The path ID of storage account associated with the volume container.
*
*/
public Output storageAccountCredentialId() {
return this.storageAccountCredentialId;
}
/**
* The total cloud storage for the volume container.
*
*/
@Export(name="totalCloudStorageUsageInBytes", refs={Double.class}, tree="[0]")
private Output totalCloudStorageUsageInBytes;
/**
* @return The total cloud storage for the volume container.
*
*/
public Output totalCloudStorageUsageInBytes() {
return this.totalCloudStorageUsageInBytes;
}
/**
* The hierarchical type of the object.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The hierarchical type of the object.
*
*/
public Output type() {
return this.type;
}
/**
* The number of volumes in the volume Container.
*
*/
@Export(name="volumeCount", refs={Integer.class}, tree="[0]")
private Output volumeCount;
/**
* @return The number of volumes in the volume Container.
*
*/
public Output volumeCount() {
return this.volumeCount;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public VolumeContainer(java.lang.String name) {
this(name, VolumeContainerArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public VolumeContainer(java.lang.String name, VolumeContainerArgs 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 VolumeContainer(java.lang.String name, VolumeContainerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storsimple:VolumeContainer", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private VolumeContainer(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storsimple:VolumeContainer", name, null, makeResourceOptions(options, id), false);
}
private static VolumeContainerArgs makeArgs(VolumeContainerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VolumeContainerArgs.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:storsimple/v20170601:VolumeContainer").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 VolumeContainer get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new VolumeContainer(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy