1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2
  5. CapacityBlockReservation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.ec2.CapacityBlockReservation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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 provided capacity_block_offering_id and cannot be deleted. Performing a destroy 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

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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 example = Ec2Functions.getCapacityBlockOffering(GetCapacityBlockOfferingArgs.builder()
                .capacityDuration(24)
                .endDate("2024-05-30T15:04:05Z")
                .instanceCount(1)
                .instancePlatform("Linux/UNIX")
                .instanceType("p4d.24xlarge")
                .startDate("2024-04-28T15:04:05Z")
                .build());
    
            var exampleCapacityBlockReservation = new CapacityBlockReservation("exampleCapacityBlockReservation", CapacityBlockReservationArgs.builder()
                .capacityBlockOfferingId(test.id())
                .instancePlatform("Linux/UNIX")
                .tags(Map.of("Environment", "dev"))
                .build());
    
        }
    }
    
    resources:
      exampleCapacityBlockReservation:
        type: aws:ec2:CapacityBlockReservation
        name: example
        properties:
          capacityBlockOfferingId: ${test.id}
          instancePlatform: Linux/UNIX
          tags:
            Environment: dev
    variables:
      example:
        fn::invoke:
          Function: aws:ec2:getCapacityBlockOffering
          Arguments:
            capacityDuration: 24
            endDate: 2024-05-30T15:04:05Z
            instanceCount: 1
            instancePlatform: Linux/UNIX
            instanceType: p4d.24xlarge
            startDate: 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

    The CapacityBlockReservation resource accepts the following input properties:

    CapacityBlockOfferingId string
    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 Standard or Windows with SQL Server Web.
    Tags 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 CapacityBlockReservationTimeouts
    CapacityBlockOfferingId string
    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 Standard or Windows with SQL Server Web.
    Tags 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 CapacityBlockReservationTimeoutsArgs
    capacityBlockOfferingId String
    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 Standard or Windows with SQL Server Web.
    tags 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 CapacityBlockReservationTimeouts
    capacityBlockOfferingId string
    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 Standard or Windows with SQL Server Web.
    tags {[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 CapacityBlockReservationTimeouts
    capacity_block_offering_id str
    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 or Windows with SQL Server Web.
    tags 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 CapacityBlockReservationTimeoutsArgs
    capacityBlockOfferingId String
    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 Standard or Windows with SQL Server Web.
    tags 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.
    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)
    EndDateType string
    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.
    PlacementGroupArn string
    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)
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    Tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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)
    EndDateType string
    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.
    PlacementGroupArn string
    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)
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    Tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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)
    endDateType String
    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.
    placementGroupArn String
    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)
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy String
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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)
    endDateType string
    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.
    placementGroupArn string
    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)
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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_type str
    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_arn str
    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)
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy str
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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)
    endDateType String
    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.
    placementGroupArn String
    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)
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy String
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.

    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.
    The following state arguments are supported:
    Arn string
    The ARN of the reservation.
    AvailabilityZone string
    The Availability Zone in which to create the Capacity Block Reservation.
    CapacityBlockOfferingId string
    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)
    EndDateType string
    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 Standard or Windows 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.
    PlacementGroupArn string
    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)
    Tags 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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    Tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    Timeouts CapacityBlockReservationTimeouts
    Arn string
    The ARN of the reservation.
    AvailabilityZone string
    The Availability Zone in which to create the Capacity Block Reservation.
    CapacityBlockOfferingId string
    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)
    EndDateType string
    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 Standard or Windows 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.
    PlacementGroupArn string
    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)
    Tags 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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    Tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    Timeouts CapacityBlockReservationTimeoutsArgs
    arn String
    The ARN of the reservation.
    availabilityZone String
    The Availability Zone in which to create the Capacity Block Reservation.
    capacityBlockOfferingId String
    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)
    endDateType String
    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 Standard or Windows 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.
    placementGroupArn String
    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)
    tags 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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy String
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    timeouts CapacityBlockReservationTimeouts
    arn string
    The ARN of the reservation.
    availabilityZone string
    The Availability Zone in which to create the Capacity Block Reservation.
    capacityBlockOfferingId string
    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)
    endDateType string
    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 Standard or Windows 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.
    placementGroupArn string
    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)
    tags {[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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy string
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    timeouts CapacityBlockReservationTimeouts
    arn str
    The ARN of the reservation.
    availability_zone str
    The Availability Zone in which to create the Capacity Block Reservation.
    capacity_block_offering_id str
    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_type str
    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 or Windows 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_arn str
    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)
    tags 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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy str
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    timeouts CapacityBlockReservationTimeoutsArgs
    arn String
    The ARN of the reservation.
    availabilityZone String
    The Availability Zone in which to create the Capacity Block Reservation.
    capacityBlockOfferingId String
    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)
    endDateType String
    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 Standard or Windows 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.
    placementGroupArn String
    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)
    tags 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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block

    Deprecated: Please use tags instead.

    tenancy String
    Indicates the tenancy of the Capacity Block Reservation. Specify either default or dedicated.
    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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi