1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. CapacityReservation

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

aws-native.ec2.CapacityReservation

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Resource Type definition for AWS::EC2::CapacityReservation

    Create CapacityReservation Resource

    new CapacityReservation(name: string, args: CapacityReservationArgs, opts?: CustomResourceOptions);
    @overload
    def CapacityReservation(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            availability_zone: Optional[str] = None,
                            ebs_optimized: Optional[bool] = None,
                            end_date: Optional[str] = None,
                            end_date_type: Optional[str] = None,
                            ephemeral_storage: Optional[bool] = None,
                            instance_count: Optional[int] = None,
                            instance_match_criteria: Optional[str] = None,
                            instance_platform: Optional[str] = None,
                            instance_type: Optional[str] = None,
                            out_post_arn: Optional[str] = None,
                            placement_group_arn: Optional[str] = None,
                            tag_specifications: Optional[Sequence[CapacityReservationTagSpecificationArgs]] = None,
                            tenancy: Optional[str] = None)
    @overload
    def CapacityReservation(resource_name: str,
                            args: CapacityReservationArgs,
                            opts: Optional[ResourceOptions] = None)
    func NewCapacityReservation(ctx *Context, name string, args CapacityReservationArgs, opts ...ResourceOption) (*CapacityReservation, error)
    public CapacityReservation(string name, CapacityReservationArgs args, CustomResourceOptions? opts = null)
    public CapacityReservation(String name, CapacityReservationArgs args)
    public CapacityReservation(String name, CapacityReservationArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:CapacityReservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CapacityReservationArgs
    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 CapacityReservationArgs
    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 CapacityReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CapacityReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CapacityReservationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CapacityReservation 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 CapacityReservation resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CapacityReservation resource produces the following output properties:

    AvailableInstanceCount int
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalInstanceCount int
    AvailableInstanceCount int
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalInstanceCount int
    availableInstanceCount Integer
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    totalInstanceCount Integer
    availableInstanceCount number
    awsId string
    id string
    The provider-assigned unique ID for this managed resource.
    totalInstanceCount number
    available_instance_count int
    aws_id str
    id str
    The provider-assigned unique ID for this managed resource.
    total_instance_count int
    availableInstanceCount Number
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    totalInstanceCount Number

    Supporting Types

    CapacityReservationTag, CapacityReservationTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    CapacityReservationTagSpecification, CapacityReservationTagSpecificationArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi