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
duration
of the providedcapacity_block_offering_id
and cannot be deleted. Performing adestroy
will 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:
- Capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- Instance
Platform 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 Standard
orWindows with SQL Server Web
. - Dictionary<string, string>
- A map of tags to assign 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. - Timeouts
Capacity
Block Reservation Timeouts
- Capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- Instance
Platform 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 Standard
orWindows with SQL Server Web
. - map[string]string
- A map of tags to assign 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. - Timeouts
Capacity
Block Reservation Timeouts Args
- capacity
Block StringOffering Id - The Capacity Block Reservation ID.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - Map<String,String>
- A map of tags to assign 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. - timeouts
Capacity
Block Reservation Timeouts
- capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - {[key: string]: string}
- A map of tags to assign 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. - timeouts
Capacity
Block 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 Standard
orWindows with SQL Server Web
. - Mapping[str, str]
- A map of tags to assign 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. - timeouts
Capacity
Block Reservation Timeouts Args
- capacity
Block StringOffering Id - The Capacity Block Reservation ID.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - Map<String>
- A map of tags to assign 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. - 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.
- Availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- Created
Date string - 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 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
) - End
Date stringType - Indicates the way in which the Capacity Reservation ends.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count int - The number of instances for which to reserve capacity.
- Instance
Type string - The instance type for which to reserve capacity.
- Outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- Placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- Reservation
Type string - The type of Capacity Reservation.
- Start
Date 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_tags
configuration block - Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
- Arn string
- The ARN of the reservation.
- Availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- Created
Date string - 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 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
) - End
Date stringType - Indicates the way in which the Capacity Reservation ends.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Count int - The number of instances for which to reserve capacity.
- Instance
Type string - The instance type for which to reserve capacity.
- Outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- Placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- Reservation
Type string - The type of Capacity Reservation.
- Start
Date 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_tags
configuration block - Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
- arn String
- The ARN of the reservation.
- availability
Zone String - The Availability Zone in which to create the Capacity Block Reservation.
- created
Date String - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized Boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date StringType - Indicates the way in which the Capacity Reservation ends.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Integer - The number of instances for which to reserve capacity.
- instance
Type String - The instance type for which to reserve capacity.
- outpost
Arn String - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group StringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type String - The type of Capacity Reservation.
- start
Date 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_tags
configuration block - tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
- arn string
- The ARN of the reservation.
- availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- created
Date string - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date stringType - Indicates the way in which the Capacity Reservation ends.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Count number - The number of instances for which to reserve capacity.
- instance
Type string - The instance type for which to reserve capacity.
- outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type string - The type of Capacity Reservation.
- start
Date 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_tags
configuration block - tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
- 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_tags
configuration block - tenancy str
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
- arn String
- The ARN of the reservation.
- availability
Zone String - The Availability Zone in which to create the Capacity Block Reservation.
- created
Date String - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized Boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date StringType - Indicates the way in which the Capacity Reservation ends.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Count Number - The number of instances for which to reserve capacity.
- instance
Type String - The instance type for which to reserve capacity.
- outpost
Arn String - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group StringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type String - The type of Capacity Reservation.
- start
Date 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_tags
configuration block - tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
.
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) -> CapacityBlockReservation
func 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)
Resource lookup is not supported in YAML
- 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.
- Availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- Capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- Created
Date string - 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 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
) - End
Date stringType - Indicates the way in which the Capacity Reservation ends.
- Instance
Count int - The number of instances for which to reserve capacity.
- Instance
Platform 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 Standard
orWindows with SQL Server Web
. - Instance
Type string - The instance type for which to reserve capacity.
- Outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- Placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- Reservation
Type string - The type of Capacity Reservation.
- Start
Date 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_tags
configuration 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_tags
configuration block - Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - Timeouts
Capacity
Block Reservation Timeouts
- Arn string
- The ARN of the reservation.
- Availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- Capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- Created
Date string - 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 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
) - End
Date stringType - Indicates the way in which the Capacity Reservation ends.
- Instance
Count int - The number of instances for which to reserve capacity.
- Instance
Platform 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 Standard
orWindows with SQL Server Web
. - Instance
Type string - The instance type for which to reserve capacity.
- Outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- Placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- Reservation
Type string - The type of Capacity Reservation.
- Start
Date 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_tags
configuration 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_tags
configuration block - Tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - Timeouts
Capacity
Block Reservation Timeouts Args
- arn String
- The ARN of the reservation.
- availability
Zone String - The Availability Zone in which to create the Capacity Block Reservation.
- capacity
Block StringOffering Id - The Capacity Block Reservation ID.
- created
Date String - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized Boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date StringType - Indicates the way in which the Capacity Reservation ends.
- instance
Count Integer - The number of instances for which to reserve capacity.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - instance
Type String - The instance type for which to reserve capacity.
- outpost
Arn String - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group StringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type String - The type of Capacity Reservation.
- start
Date 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_tags
configuration 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_tags
configuration block - tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - timeouts
Capacity
Block Reservation Timeouts
- arn string
- The ARN of the reservation.
- availability
Zone string - The Availability Zone in which to create the Capacity Block Reservation.
- capacity
Block stringOffering Id - The Capacity Block Reservation ID.
- created
Date string - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date stringType - Indicates the way in which the Capacity Reservation ends.
- instance
Count number - The number of instances for which to reserve capacity.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - instance
Type string - The instance type for which to reserve capacity.
- outpost
Arn string - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group stringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type string - The type of Capacity Reservation.
- start
Date 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_tags
configuration 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_tags
configuration block - tenancy string
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - timeouts
Capacity
Block 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 Standard
orWindows 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_tags
configuration 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_tags
configuration block - tenancy str
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - timeouts
Capacity
Block Reservation Timeouts Args
- arn String
- The ARN of the reservation.
- availability
Zone String - The Availability Zone in which to create the Capacity Block Reservation.
- capacity
Block StringOffering Id - The Capacity Block Reservation ID.
- created
Date String - The date and time at which the Capacity Block Reservation was created.
- ebs
Optimized Boolean - Indicates whether the Capacity Reservation supports EBS-optimized instances.
- end
Date 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
) - end
Date StringType - Indicates the way in which the Capacity Reservation ends.
- instance
Count Number - The number of instances for which to reserve capacity.
- instance
Platform 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 Standard
orWindows with SQL Server Web
. - instance
Type String - The instance type for which to reserve capacity.
- outpost
Arn String - The ARN of the Outpost on which to create the Capacity Block Reservation.
- placement
Group StringArn - The ARN of the placement group in which to create the Capacity Block Reservation.
- reservation
Type String - The type of Capacity Reservation.
- start
Date 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_tags
configuration 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_tags
configuration block - tenancy String
- Indicates the tenancy of the Capacity Block Reservation. Specify either
default
ordedicated
. - 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
aws
Terraform Provider.