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

com.pulumi.azure.chaosstudio.Capability Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.chaosstudio;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.chaosstudio.CapabilityArgs;
import com.pulumi.azure.chaosstudio.inputs.CapabilityState;
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.String;
import javax.annotation.Nullable;

/**
 * Manages a Chaos Studio Capability.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.containerservice.KubernetesCluster;
 * import com.pulumi.azure.containerservice.KubernetesClusterArgs;
 * import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;
 * import com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;
 * import com.pulumi.azure.chaosstudio.Target;
 * import com.pulumi.azure.chaosstudio.TargetArgs;
 * import com.pulumi.azure.chaosstudio.Capability;
 * import com.pulumi.azure.chaosstudio.CapabilityArgs;
 * 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var example = new KubernetesCluster("example", KubernetesClusterArgs.builder()
 *             .name("example")
 *             .location(exampleResourceGroup.location())
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .dnsPrefix("acctestaksexample")
 *             .defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()
 *                 .name("example-value")
 *                 .nodeCount("example-value")
 *                 .vmSize("example-value")
 *                 .build())
 *             .identity(KubernetesClusterIdentityArgs.builder()
 *                 .type("example-value")
 *                 .build())
 *             .build());
 * 
 *         var exampleTarget = new Target("exampleTarget", TargetArgs.builder()
 *             .location(exampleResourceGroup.location())
 *             .targetResourceId(example.id())
 *             .targetType("example-value")
 *             .build());
 * 
 *         var exampleCapability = new Capability("exampleCapability", CapabilityArgs.builder()
 *             .capabilityType("example-value")
 *             .chaosStudioTargetId(exampleTarget.id())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * An existing Chaos Studio Target can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:chaosstudio/capability:Capability example /{scope}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName} * ``` * * * Where `{scope}` is the ID of the Azure Resource under which the Chaos Studio Target exists. For example `/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group`. * * * Where `{targetName}` is the name of the Target. For example `targetValue`. * * * Where `{capabilityName}` is the name of the Capability. For example `capabilityName`. * */ @ResourceType(type="azure:chaosstudio/capability:Capability") public class Capability extends com.pulumi.resources.CustomResource { /** * The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. * */ @Export(name="capabilityType", refs={String.class}, tree="[0]") private Output capabilityType; /** * @return The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio [Fault Library](https://learn.microsoft.com/azure/chaos-studio/chaos-studio-fault-library). Changing this forces a new Chaos Studio Capability to be created. * */ public Output capabilityType() { return this.capabilityType; } /** * The Unique Resource Name of the Capability. * */ @Export(name="capabilityUrn", refs={String.class}, tree="[0]") private Output capabilityUrn; /** * @return The Unique Resource Name of the Capability. * */ public Output capabilityUrn() { return this.capabilityUrn; } /** * The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. * */ @Export(name="chaosStudioTargetId", refs={String.class}, tree="[0]") private Output chaosStudioTargetId; /** * @return The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created. * */ public Output chaosStudioTargetId() { return this.chaosStudioTargetId; } /** * * @param name The _unique_ name of the resulting resource. */ public Capability(java.lang.String name) { this(name, CapabilityArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Capability(java.lang.String name, CapabilityArgs 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 Capability(java.lang.String name, CapabilityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:chaosstudio/capability:Capability", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Capability(java.lang.String name, Output id, @Nullable CapabilityState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:chaosstudio/capability:Capability", name, state, makeResourceOptions(options, id), false); } private static CapabilityArgs makeArgs(CapabilityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? CapabilityArgs.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()) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static Capability get(java.lang.String name, Output id, @Nullable CapabilityState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Capability(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy