Capability

class Capability : KotlinCustomResource

Manages a Chaos Studio Capability.

Example Usage

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());
}
}

Import

An existing Chaos Studio Target can be imported into Terraform using the resource id, e.g.

$ 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.

Properties

Link copied to clipboard
val capabilityType: Output<String>

The capability that should be applied to the Chaos Studio Target. For supported values please see this Chaos Studio Fault Library. Changing this forces a new Chaos Studio Capability to be created.

Link copied to clipboard
val capabilityUrn: Output<String>

The Unique Resource Name of the Capability.

Link copied to clipboard

The Chaos Studio Target that the capability should be applied to. Changing this forces a new Chaos Studio Capability to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>