AWS Native is in preview. AWS Classic is fully supported.
aws-native.ec2.CapacityReservation
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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:
- Availability
Zone string - Instance
Count int - Instance
Platform string - Instance
Type string - Ebs
Optimized bool - End
Date string - End
Date stringType - Ephemeral
Storage bool - Instance
Match stringCriteria - Out
Post stringArn - Placement
Group stringArn - List<Pulumi.
Aws Native. EC2. Inputs. Capacity Reservation Tag Specification Args> - Tenancy string
- Availability
Zone string - Instance
Count int - Instance
Platform string - Instance
Type string - Ebs
Optimized bool - End
Date string - End
Date stringType - Ephemeral
Storage bool - Instance
Match stringCriteria - Out
Post stringArn - Placement
Group stringArn - []Capacity
Reservation Tag Specification Args - Tenancy string
- availability
Zone String - instance
Count Integer - instance
Platform String - instance
Type String - ebs
Optimized Boolean - end
Date String - end
Date StringType - ephemeral
Storage Boolean - instance
Match StringCriteria - out
Post StringArn - placement
Group StringArn - List<Capacity
Reservation Tag Specification Args> - tenancy String
- availability
Zone string - instance
Count number - instance
Platform string - instance
Type string - ebs
Optimized boolean - end
Date string - end
Date stringType - ephemeral
Storage boolean - instance
Match stringCriteria - out
Post stringArn - placement
Group stringArn - Capacity
Reservation Tag Specification Args[] - tenancy string
- availability
Zone String - instance
Count Number - instance
Platform String - instance
Type String - ebs
Optimized Boolean - end
Date String - end
Date StringType - ephemeral
Storage Boolean - instance
Match StringCriteria - out
Post StringArn - placement
Group StringArn - List<Property Map>
- tenancy String
Outputs
All input properties are implicitly available as output properties. Additionally, the CapacityReservation resource produces the following output properties:
- Available
Instance intCount - Id string
The provider-assigned unique ID for this managed resource.
- Total
Instance intCount
- Available
Instance intCount - Id string
The provider-assigned unique ID for this managed resource.
- Total
Instance intCount
- available
Instance IntegerCount - id String
The provider-assigned unique ID for this managed resource.
- total
Instance IntegerCount
- available
Instance numberCount - id string
The provider-assigned unique ID for this managed resource.
- total
Instance numberCount
- available_
instance_ intcount - id str
The provider-assigned unique ID for this managed resource.
- total_
instance_ intcount
- available
Instance NumberCount - id String
The provider-assigned unique ID for this managed resource.
- total
Instance NumberCount
Supporting Types
CapacityReservationTag
CapacityReservationTagSpecification
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.