CapacityReservation

class CapacityReservation : KotlinCustomResource

Resource for managing an AWS Athena Capacity Reservation.

Destruction of this resource will both cancel and delete the capacity reservation.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.athena.CapacityReservation("example", {
name: "example-reservation",
targetDpus: 24,
});
import pulumi
import pulumi_aws as aws
example = aws.athena.CapacityReservation("example",
name="example-reservation",
target_dpus=24)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Athena.CapacityReservation("example", new()
{
Name = "example-reservation",
TargetDpus = 24,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/athena"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := athena.NewCapacityReservation(ctx, "example", &athena.CapacityReservationArgs{
Name: pulumi.String("example-reservation"),
TargetDpus: pulumi.Int(24),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.athena.CapacityReservation;
import com.pulumi.aws.athena.CapacityReservationArgs;
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 example = new CapacityReservation("example", CapacityReservationArgs.builder()
.name("example-reservation")
.targetDpus(24)
.build());
}
}
resources:
example:
type: aws:athena:CapacityReservation
properties:
name: example-reservation
targetDpus: 24

Import

Using pulumi import, import Athena Capacity Reservation using the name. For example:

$ pulumi import aws:athena/capacityReservation:CapacityReservation example example-reservation

Properties

Link copied to clipboard
val allocatedDpus: Output<Int>

Number of data processing units currently allocated.

Link copied to clipboard
val arn: Output<String>

ARN of the Capacity Reservation.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the capacity reservation.

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

Status of the capacity reservation.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val targetDpus: Output<Int>

Number of data processing units requested. Must be at least 24 units. The following arguments are optional:

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>