Class ManagedClusterSnapshot
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.containerservice.ManagedClusterSnapshot
-
public class ManagedClusterSnapshot extends com.pulumi.resources.CustomResource
A managed cluster snapshot resource. API Version: 2022-02-02-preview. ## Example Usage ### Create/Update Managed Cluster Snapshot ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.containerservice.ManagedClusterSnapshot; import com.pulumi.azurenative.containerservice.ManagedClusterSnapshotArgs; 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 managedClusterSnapshot = new ManagedClusterSnapshot("managedClusterSnapshot", ManagedClusterSnapshotArgs.builder() .creationData(Map.of("sourceResourceId", "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1")) .location("westus") .resourceGroupName("rg1") .resourceName("snapshot1") .tags(Map.ofEntries( Map.entry("key1", "val1"), Map.entry("key2", "val2") )) .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:containerservice:ManagedClusterSnapshot snapshot1 /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedclustersnapshots/snapshot1 ```
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterSnapshot(java.lang.String name)
ManagedClusterSnapshot(java.lang.String name, ManagedClusterSnapshotArgs args)
ManagedClusterSnapshot(java.lang.String name, ManagedClusterSnapshotArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<CreationDataResponse>>
creationData()
static ManagedClusterSnapshot
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
location()
com.pulumi.core.Output<ManagedClusterPropertiesForSnapshotResponse>
managedClusterPropertiesReadOnly()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
snapshotType()
com.pulumi.core.Output<SystemDataResponse>
systemData()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
ManagedClusterSnapshot
public ManagedClusterSnapshot(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ManagedClusterSnapshot
public ManagedClusterSnapshot(java.lang.String name, ManagedClusterSnapshotArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ManagedClusterSnapshot
public ManagedClusterSnapshot(java.lang.String name, ManagedClusterSnapshotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
creationData
public com.pulumi.core.Output<java.util.Optional<CreationDataResponse>> creationData()
- Returns:
- CreationData to be used to specify the source resource ID to create this snapshot.
-
location
public com.pulumi.core.Output<java.lang.String> location()
- Returns:
- Resource location
-
managedClusterPropertiesReadOnly
public com.pulumi.core.Output<ManagedClusterPropertiesForSnapshotResponse> managedClusterPropertiesReadOnly()
- Returns:
- What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
snapshotType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> snapshotType()
- Returns:
- The type of a snapshot. The default is NodePool.
-
systemData
public com.pulumi.core.Output<SystemDataResponse> systemData()
- Returns:
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Resource tags
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
-
get
public static ManagedClusterSnapshot get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-