aws.ec2.CapacityBlockReservation
Explore with Pulumi AI
Provides an EC2 Capacity Block Reservation. This allows you to purchase capacity block for your Amazon EC2 instances in a specific Availability Zone for machine learning (ML) Workloads.
NOTE: Once created, a reservation is valid for the
durationof the providedcapacity_block_offering_idand cannot be deleted. Performing adestroywill only remove the resource from state. For more information see EC2 Capacity Block Reservation Documentation and PurchaseReservedDBInstancesOffering.
NOTE: Due to the expense of testing this resource, we provide it as best effort. If you find it useful, and have the ability to help test or notice issues, consider reaching out to us on GitHub.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.ec2.getCapacityBlockOffering({
    capacityDurationHours: 24,
    endDateRange: "2024-05-30T15:04:05Z",
    instanceCount: 1,
    instanceType: "p4d.24xlarge",
    startDateRange: "2024-04-28T15:04:05Z",
});
const example = new aws.ec2.CapacityBlockReservation("example", {
    capacityBlockOfferingId: test.then(test => test.capacityBlockOfferingId),
    instancePlatform: "Linux/UNIX",
    tags: {
        Environment: "dev",
    },
});
import pulumi
import pulumi_aws as aws
test = aws.ec2.get_capacity_block_offering(capacity_duration_hours=24,
    end_date_range="2024-05-30T15:04:05Z",
    instance_count=1,
    instance_type="p4d.24xlarge",
    start_date_range="2024-04-28T15:04:05Z")
example = aws.ec2.CapacityBlockReservation("example",
    capacity_block_offering_id=test.capacity_block_offering_id,
    instance_platform="Linux/UNIX",
    tags={
        "Environment": "dev",
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := ec2.GetCapacityBlockOffering(ctx, &ec2.GetCapacityBlockOfferingArgs{
			CapacityDurationHours: 24,
			EndDateRange:          pulumi.StringRef("2024-05-30T15:04:05Z"),
			InstanceCount:         1,
			InstanceType:          "p4d.24xlarge",
			StartDateRange:        pulumi.StringRef("2024-04-28T15:04:05Z"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = ec2.NewCapacityBlockReservation(ctx, "example", &ec2.CapacityBlockReservationArgs{
			CapacityBlockOfferingId: pulumi.String(test.CapacityBlockOfferingId),
			InstancePlatform:        pulumi.String("Linux/UNIX"),
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("dev"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.Ec2.GetCapacityBlockOffering.Invoke(new()
    {
        CapacityDurationHours = 24,
        EndDateRange = "2024-05-30T15:04:05Z",
        InstanceCount = 1,
        InstanceType = "p4d.24xlarge",
        StartDateRange = "2024-04-28T15:04:05Z",
    });
    var example = new Aws.Ec2.CapacityBlockReservation("example", new()
    {
        CapacityBlockOfferingId = test.Apply(getCapacityBlockOfferingResult => getCapacityBlockOfferingResult.CapacityBlockOfferingId),
        InstancePlatform = "Linux/UNIX",
        Tags = 
        {
            { "Environment", "dev" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetCapacityBlockOfferingArgs;
import com.pulumi.aws.ec2.CapacityBlockReservation;
import com.pulumi.aws.ec2.CapacityBlockReservationArgs;
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) {
        final var test = Ec2Functions.getCapacityBlockOffering(GetCapacityBlockOfferingArgs.builder()
            .capacityDurationHours(24)
            .endDateRange("2024-05-30T15:04:05Z")
            .instanceCount(1)
            .instanceType("p4d.24xlarge")
            .startDateRange("2024-04-28T15:04:05Z")
            .build());
        var example = new CapacityBlockReservation("example", CapacityBlockReservationArgs.builder()
            .capacityBlockOfferingId(test.applyValue(getCapacityBlockOfferingResult -> getCapacityBlockOfferingResult.capacityBlockOfferingId()))
            .instancePlatform("Linux/UNIX")
            .tags(Map.of("Environment", "dev"))
            .build());
    }
}
resources:
  example:
    type: aws:ec2:CapacityBlockReservation
    properties:
      capacityBlockOfferingId: ${test.capacityBlockOfferingId}
      instancePlatform: Linux/UNIX
      tags:
        Environment: dev
variables:
  test:
    fn::invoke:
      function: aws:ec2:getCapacityBlockOffering
      arguments:
        capacityDurationHours: 24
        endDateRange: 2024-05-30T15:04:05Z
        instanceCount: 1
        instanceType: p4d.24xlarge
        startDateRange: 2024-04-28T15:04:05Z
Create CapacityBlockReservation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapacityBlockReservation(name: string, args: CapacityBlockReservationArgs, opts?: CustomResourceOptions);@overload
def CapacityBlockReservation(resource_name: str,
                             args: CapacityBlockReservationArgs,
                             opts: Optional[ResourceOptions] = None)
@overload
def CapacityBlockReservation(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             capacity_block_offering_id: Optional[str] = None,
                             instance_platform: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             timeouts: Optional[CapacityBlockReservationTimeoutsArgs] = None)func NewCapacityBlockReservation(ctx *Context, name string, args CapacityBlockReservationArgs, opts ...ResourceOption) (*CapacityBlockReservation, error)public CapacityBlockReservation(string name, CapacityBlockReservationArgs args, CustomResourceOptions? opts = null)
public CapacityBlockReservation(String name, CapacityBlockReservationArgs args)
public CapacityBlockReservation(String name, CapacityBlockReservationArgs args, CustomResourceOptions options)
type: aws:ec2:CapacityBlockReservation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CapacityBlockReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CapacityBlockReservationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CapacityBlockReservationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapacityBlockReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CapacityBlockReservationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var capacityBlockReservationResource = new Aws.Ec2.CapacityBlockReservation("capacityBlockReservationResource", new()
{
    CapacityBlockOfferingId = "string",
    InstancePlatform = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Aws.Ec2.Inputs.CapacityBlockReservationTimeoutsArgs
    {
        Create = "string",
    },
});
example, err := ec2.NewCapacityBlockReservation(ctx, "capacityBlockReservationResource", &ec2.CapacityBlockReservationArgs{
	CapacityBlockOfferingId: pulumi.String("string"),
	InstancePlatform:        pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeouts: &ec2.CapacityBlockReservationTimeoutsArgs{
		Create: pulumi.String("string"),
	},
})
var capacityBlockReservationResource = new CapacityBlockReservation("capacityBlockReservationResource", CapacityBlockReservationArgs.builder()
    .capacityBlockOfferingId("string")
    .instancePlatform("string")
    .tags(Map.of("string", "string"))
    .timeouts(CapacityBlockReservationTimeoutsArgs.builder()
        .create("string")
        .build())
    .build());
capacity_block_reservation_resource = aws.ec2.CapacityBlockReservation("capacityBlockReservationResource",
    capacity_block_offering_id="string",
    instance_platform="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
    })
const capacityBlockReservationResource = new aws.ec2.CapacityBlockReservation("capacityBlockReservationResource", {
    capacityBlockOfferingId: "string",
    instancePlatform: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
    },
});
type: aws:ec2:CapacityBlockReservation
properties:
    capacityBlockOfferingId: string
    instancePlatform: string
    tags:
        string: string
    timeouts:
        create: string
CapacityBlockReservation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CapacityBlockReservation resource accepts the following input properties:
- CapacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- InstancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Timeouts
CapacityBlock Reservation Timeouts 
- CapacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- InstancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Timeouts
CapacityBlock Reservation Timeouts Args 
- capacityBlock StringOffering Id 
- The Capacity Block Reservation ID.
- instancePlatform String
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timeouts
CapacityBlock Reservation Timeouts 
- capacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- instancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timeouts
CapacityBlock Reservation Timeouts 
- capacity_block_ stroffering_ id 
- The Capacity Block Reservation ID.
- instance_platform str
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timeouts
CapacityBlock Reservation Timeouts Args 
- capacityBlock StringOffering Id 
- The Capacity Block Reservation ID.
- instancePlatform String
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CapacityBlockReservation resource produces the following output properties:
- Arn string
- The ARN of the reservation.
- AvailabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- CreatedDate string
- The date and time at which the Capacity Block Reservation was created.
- EbsOptimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- EndDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- EndDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceCount int
- The number of instances for which to reserve capacity.
- InstanceType string
- The instance type for which to reserve capacity.
- OutpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- PlacementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- ReservationType string
- The type of Capacity Reservation.
- StartDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- Arn string
- The ARN of the reservation.
- AvailabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- CreatedDate string
- The date and time at which the Capacity Block Reservation was created.
- EbsOptimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- EndDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- EndDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceCount int
- The number of instances for which to reserve capacity.
- InstanceType string
- The instance type for which to reserve capacity.
- OutpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- PlacementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- ReservationType string
- The type of Capacity Reservation.
- StartDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- arn String
- The ARN of the reservation.
- availabilityZone String
- The Availability Zone in which to create the Capacity Block Reservation.
- createdDate String
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized Boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate String
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate StringType 
- Indicates the way in which the Capacity Reservation ends.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceCount Integer
- The number of instances for which to reserve capacity.
- instanceType String
- The instance type for which to reserve capacity.
- outpostArn String
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup StringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType String
- The type of Capacity Reservation.
- startDate String
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- arn string
- The ARN of the reservation.
- availabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- createdDate string
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- id string
- The provider-assigned unique ID for this managed resource.
- instanceCount number
- The number of instances for which to reserve capacity.
- instanceType string
- The instance type for which to reserve capacity.
- outpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType string
- The type of Capacity Reservation.
- startDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- arn str
- The ARN of the reservation.
- availability_zone str
- The Availability Zone in which to create the Capacity Block Reservation.
- created_date str
- The date and time at which the Capacity Block Reservation was created.
- ebs_optimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end_date str
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- end_date_ strtype 
- Indicates the way in which the Capacity Reservation ends.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_count int
- The number of instances for which to reserve capacity.
- instance_type str
- The instance type for which to reserve capacity.
- outpost_arn str
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement_group_ strarn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation_type str
- The type of Capacity Reservation.
- start_date str
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy str
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- arn String
- The ARN of the reservation.
- availabilityZone String
- The Availability Zone in which to create the Capacity Block Reservation.
- createdDate String
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized Boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate String
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate StringType 
- Indicates the way in which the Capacity Reservation ends.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceCount Number
- The number of instances for which to reserve capacity.
- instanceType String
- The instance type for which to reserve capacity.
- outpostArn String
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup StringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType String
- The type of Capacity Reservation.
- startDate String
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
Look up Existing CapacityBlockReservation Resource
Get an existing CapacityBlockReservation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CapacityBlockReservationState, opts?: CustomResourceOptions): CapacityBlockReservation@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        availability_zone: Optional[str] = None,
        capacity_block_offering_id: Optional[str] = None,
        created_date: Optional[str] = None,
        ebs_optimized: Optional[bool] = None,
        end_date: Optional[str] = None,
        end_date_type: Optional[str] = None,
        instance_count: Optional[int] = None,
        instance_platform: Optional[str] = None,
        instance_type: Optional[str] = None,
        outpost_arn: Optional[str] = None,
        placement_group_arn: Optional[str] = None,
        reservation_type: Optional[str] = None,
        start_date: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        tenancy: Optional[str] = None,
        timeouts: Optional[CapacityBlockReservationTimeoutsArgs] = None) -> CapacityBlockReservationfunc GetCapacityBlockReservation(ctx *Context, name string, id IDInput, state *CapacityBlockReservationState, opts ...ResourceOption) (*CapacityBlockReservation, error)public static CapacityBlockReservation Get(string name, Input<string> id, CapacityBlockReservationState? state, CustomResourceOptions? opts = null)public static CapacityBlockReservation get(String name, Output<String> id, CapacityBlockReservationState state, CustomResourceOptions options)resources:  _:    type: aws:ec2:CapacityBlockReservation    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the reservation.
- AvailabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- CapacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- CreatedDate string
- The date and time at which the Capacity Block Reservation was created.
- EbsOptimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- EndDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- EndDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- InstanceCount int
- The number of instances for which to reserve capacity.
- InstancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- InstanceType string
- The instance type for which to reserve capacity.
- OutpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- PlacementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- ReservationType string
- The type of Capacity Reservation.
- StartDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- Timeouts
CapacityBlock Reservation Timeouts 
- Arn string
- The ARN of the reservation.
- AvailabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- CapacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- CreatedDate string
- The date and time at which the Capacity Block Reservation was created.
- EbsOptimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- EndDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- EndDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- InstanceCount int
- The number of instances for which to reserve capacity.
- InstancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- InstanceType string
- The instance type for which to reserve capacity.
- OutpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- PlacementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- ReservationType string
- The type of Capacity Reservation.
- StartDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- Timeouts
CapacityBlock Reservation Timeouts Args 
- arn String
- The ARN of the reservation.
- availabilityZone String
- The Availability Zone in which to create the Capacity Block Reservation.
- capacityBlock StringOffering Id 
- The Capacity Block Reservation ID.
- createdDate String
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized Boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate String
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate StringType 
- Indicates the way in which the Capacity Reservation ends.
- instanceCount Integer
- The number of instances for which to reserve capacity.
- instancePlatform String
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- instanceType String
- The instance type for which to reserve capacity.
- outpostArn String
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup StringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType String
- The type of Capacity Reservation.
- startDate String
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- timeouts
CapacityBlock Reservation Timeouts 
- arn string
- The ARN of the reservation.
- availabilityZone string
- The Availability Zone in which to create the Capacity Block Reservation.
- capacityBlock stringOffering Id 
- The Capacity Block Reservation ID.
- createdDate string
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate string
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate stringType 
- Indicates the way in which the Capacity Reservation ends.
- instanceCount number
- The number of instances for which to reserve capacity.
- instancePlatform string
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- instanceType string
- The instance type for which to reserve capacity.
- outpostArn string
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup stringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType string
- The type of Capacity Reservation.
- startDate string
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- timeouts
CapacityBlock Reservation Timeouts 
- arn str
- The ARN of the reservation.
- availability_zone str
- The Availability Zone in which to create the Capacity Block Reservation.
- capacity_block_ stroffering_ id 
- The Capacity Block Reservation ID.
- created_date str
- The date and time at which the Capacity Block Reservation was created.
- ebs_optimized bool
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end_date str
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- end_date_ strtype 
- Indicates the way in which the Capacity Reservation ends.
- instance_count int
- The number of instances for which to reserve capacity.
- instance_platform str
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- instance_type str
- The instance type for which to reserve capacity.
- outpost_arn str
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement_group_ strarn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation_type str
- The type of Capacity Reservation.
- start_date str
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy str
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- timeouts
CapacityBlock Reservation Timeouts Args 
- arn String
- The ARN of the reservation.
- availabilityZone String
- The Availability Zone in which to create the Capacity Block Reservation.
- capacityBlock StringOffering Id 
- The Capacity Block Reservation ID.
- createdDate String
- The date and time at which the Capacity Block Reservation was created.
- ebsOptimized Boolean
- Indicates whether the Capacity Reservation supports EBS-optimized instances.
- endDate String
- The date and time at which the Capacity Block Reservation expires. When a Capacity Block Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- endDate StringType 
- Indicates the way in which the Capacity Reservation ends.
- instanceCount Number
- The number of instances for which to reserve capacity.
- instancePlatform String
- The type of operating system for which to reserve capacity. Valid options are Linux/UNIX,Red Hat Enterprise Linux,SUSE Linux,Windows,Windows with SQL Server,Windows with SQL Server Enterprise,Windows with SQL Server StandardorWindows with SQL Server Web.
- instanceType String
- The instance type for which to reserve capacity.
- outpostArn String
- The ARN of the Outpost on which to create the Capacity Block Reservation.
- placementGroup StringArn 
- The ARN of the placement group in which to create the Capacity Block Reservation.
- reservationType String
- The type of Capacity Reservation.
- startDate String
- The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block
- tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either defaultordedicated.
- timeouts Property Map
Supporting Types
CapacityBlockReservationTimeouts, CapacityBlockReservationTimeoutsArgs        
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.