We recommend new projects start with resources from the AWS provider.
aws-native.athena.CapacityReservation
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::Athena::CapacityReservation
Create CapacityReservation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapacityReservation(name: string, args: CapacityReservationArgs, opts?: CustomResourceOptions);@overload
def CapacityReservation(resource_name: str,
                        args: CapacityReservationArgs,
                        opts: Optional[ResourceOptions] = None)
@overload
def CapacityReservation(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        target_dpus: Optional[int] = None,
                        capacity_assignment_configuration: Optional[CapacityReservationCapacityAssignmentConfigurationArgs] = None,
                        name: Optional[str] = None,
                        tags: Optional[Sequence[_root_inputs.TagArgs]] = 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:athena:CapacityReservation
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 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CapacityReservation resource accepts the following input properties:
- TargetDpus int
- The number of DPUs to request to be allocated to the reservation.
- CapacityAssignment Pulumi.Configuration Aws Native. Athena. Inputs. Capacity Reservation Capacity Assignment Configuration 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- Name string
- The reservation name.
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- An array of key-value pairs to apply to this resource.
- TargetDpus int
- The number of DPUs to request to be allocated to the reservation.
- CapacityAssignment CapacityConfiguration Reservation Capacity Assignment Configuration Args 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- Name string
- The reservation name.
- 
TagArgs 
- An array of key-value pairs to apply to this resource.
- targetDpus Integer
- The number of DPUs to request to be allocated to the reservation.
- capacityAssignment CapacityConfiguration Reservation Capacity Assignment Configuration 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- name String
- The reservation name.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- targetDpus number
- The number of DPUs to request to be allocated to the reservation.
- capacityAssignment CapacityConfiguration Reservation Capacity Assignment Configuration 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- name string
- The reservation name.
- Tag[]
- An array of key-value pairs to apply to this resource.
- target_dpus int
- The number of DPUs to request to be allocated to the reservation.
- capacity_assignment_ Capacityconfiguration Reservation Capacity Assignment Configuration Args 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- name str
- The reservation name.
- 
Sequence[TagArgs] 
- An array of key-value pairs to apply to this resource.
- targetDpus Number
- The number of DPUs to request to be allocated to the reservation.
- capacityAssignment Property MapConfiguration 
- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
- name String
- The reservation name.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapacityReservation resource produces the following output properties:
- AllocatedDpus int
- The number of DPUs Athena has provisioned and allocated for the reservation
- Arn string
- The ARN of the capacity reservation.
- CreationTime string
- The date and time the reservation was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastSuccessful stringAllocation Time 
- The timestamp when the last successful allocated was made
- Status
Pulumi.Aws Native. Athena. Capacity Reservation Status 
- The status of the reservation.
- AllocatedDpus int
- The number of DPUs Athena has provisioned and allocated for the reservation
- Arn string
- The ARN of the capacity reservation.
- CreationTime string
- The date and time the reservation was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastSuccessful stringAllocation Time 
- The timestamp when the last successful allocated was made
- Status
CapacityReservation Status 
- The status of the reservation.
- allocatedDpus Integer
- The number of DPUs Athena has provisioned and allocated for the reservation
- arn String
- The ARN of the capacity reservation.
- creationTime String
- The date and time the reservation was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastSuccessful StringAllocation Time 
- The timestamp when the last successful allocated was made
- status
CapacityReservation Status 
- The status of the reservation.
- allocatedDpus number
- The number of DPUs Athena has provisioned and allocated for the reservation
- arn string
- The ARN of the capacity reservation.
- creationTime string
- The date and time the reservation was created.
- id string
- The provider-assigned unique ID for this managed resource.
- lastSuccessful stringAllocation Time 
- The timestamp when the last successful allocated was made
- status
CapacityReservation Status 
- The status of the reservation.
- allocated_dpus int
- The number of DPUs Athena has provisioned and allocated for the reservation
- arn str
- The ARN of the capacity reservation.
- creation_time str
- The date and time the reservation was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_successful_ strallocation_ time 
- The timestamp when the last successful allocated was made
- status
CapacityReservation Status 
- The status of the reservation.
- allocatedDpus Number
- The number of DPUs Athena has provisioned and allocated for the reservation
- arn String
- The ARN of the capacity reservation.
- creationTime String
- The date and time the reservation was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastSuccessful StringAllocation Time 
- The timestamp when the last successful allocated was made
- status "PENDING" | "ACTIVE" | "CANCELLING" | "CANCELLED" | "FAILED" | "UPDATE_PENDING"
- The status of the reservation.
Supporting Types
CapacityReservationCapacityAssignment, CapacityReservationCapacityAssignmentArgs        
- WorkgroupNames List<string>
- WorkgroupNames []string
- workgroupNames List<String>
- workgroupNames string[]
- workgroup_names Sequence[str]
- workgroupNames List<String>
CapacityReservationCapacityAssignmentConfiguration, CapacityReservationCapacityAssignmentConfigurationArgs          
- CapacityAssignments List<Pulumi.Aws Native. Athena. Inputs. Capacity Reservation Capacity Assignment> 
- The list of assignments that make up the capacity assignment configuration.
- CapacityAssignments []CapacityReservation Capacity Assignment 
- The list of assignments that make up the capacity assignment configuration.
- capacityAssignments List<CapacityReservation Capacity Assignment> 
- The list of assignments that make up the capacity assignment configuration.
- capacityAssignments CapacityReservation Capacity Assignment[] 
- The list of assignments that make up the capacity assignment configuration.
- capacity_assignments Sequence[CapacityReservation Capacity Assignment] 
- The list of assignments that make up the capacity assignment configuration.
- capacityAssignments List<Property Map>
- The list of assignments that make up the capacity assignment configuration.
CapacityReservationStatus, CapacityReservationStatusArgs      
- Pending
- PENDING
- Active
- ACTIVE
- Cancelling
- CANCELLING
- Cancelled
- CANCELLED
- Failed
- FAILED
- UpdatePending 
- UPDATE_PENDING
- CapacityReservation Status Pending 
- PENDING
- CapacityReservation Status Active 
- ACTIVE
- CapacityReservation Status Cancelling 
- CANCELLING
- CapacityReservation Status Cancelled 
- CANCELLED
- CapacityReservation Status Failed 
- FAILED
- CapacityReservation Status Update Pending 
- UPDATE_PENDING
- Pending
- PENDING
- Active
- ACTIVE
- Cancelling
- CANCELLING
- Cancelled
- CANCELLED
- Failed
- FAILED
- UpdatePending 
- UPDATE_PENDING
- Pending
- PENDING
- Active
- ACTIVE
- Cancelling
- CANCELLING
- Cancelled
- CANCELLED
- Failed
- FAILED
- UpdatePending 
- UPDATE_PENDING
- PENDING
- PENDING
- ACTIVE
- ACTIVE
- CANCELLING
- CANCELLING
- CANCELLED
- CANCELLED
- FAILED
- FAILED
- UPDATE_PENDING
- UPDATE_PENDING
- "PENDING"
- PENDING
- "ACTIVE"
- ACTIVE
- "CANCELLING"
- CANCELLING
- "CANCELLED"
- CANCELLED
- "FAILED"
- FAILED
- "UPDATE_PENDING"
- UPDATE_PENDING
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.