Skip to content

EC2  >  Operations  >  create_capacity_reservation_date_change_quote

create_capacity_reservation_date_change_quote

Operation

create_capacity_reservation_date_change_quote async

create_capacity_reservation_date_change_quote(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateCapacityReservationDateChangeQuoteInputDict]) -> CreateCapacityReservationDateChangeQuoteOutput

Generates a quote for changing the start date of a future-dated Capacity Reservation that has not yet been delivered. The quote includes the new start date, the resulting commitment end date, and a quote ID. Pass the quote ID to ModifyCapacityReservation to apply the change.

The cumulative pushout across all changes is limited to 30 days from the Capacity Reservation's original start date. Quotes are valid for 24 hours, and always expire at least one hour before the start date.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateCapacityReservationDateChangeQuoteOutput

An instance of CreateCapacityReservationDateChangeQuoteOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

CreateCapacityReservationDateChangeQuoteInput dataclass

Bases: _SerdeShape

Dataclass for CreateCapacityReservationDateChangeQuoteInput structure.

Attributes
capacity_reservation_id class-attribute instance-attribute
capacity_reservation_id: str | None = ...

The ID of the Capacity Reservation.

client_token class-attribute instance-attribute
client_token: str | None = ...

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.

This field is autopopulated if not provided.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

new_start_date class-attribute instance-attribute
new_start_date: datetime | None = ...

The requested new start date for the Capacity Reservation, in the ISO8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ). The new start date must be later than the current start date and within the cumulative 30-day pushout limit.

tag_specifications class-attribute instance-attribute
tag_specifications: list[TagSpecification] | None = ...

The tags to apply to the date change quote.

Dictionaries

CreateCapacityReservationDateChangeQuoteInputDict

Bases: TypedDict

Dictionary form of CreateCapacityReservationDateChangeQuoteInput.

Attributes
capacity_reservation_id instance-attribute
capacity_reservation_id: Required[str]

The ID of the Capacity Reservation.

client_token instance-attribute
client_token: str | None

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.

This field is autopopulated if not provided.

dry_run instance-attribute
dry_run: bool | None

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

new_start_date instance-attribute
new_start_date: Required[datetime]

The requested new start date for the Capacity Reservation, in the ISO8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ). The new start date must be later than the current start date and within the cumulative 30-day pushout limit.

tag_specifications instance-attribute
tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None

The tags to apply to the date change quote.

Output

CreateCapacityReservationDateChangeQuoteOutput dataclass

Bases: _SerdeShape

Dataclass for CreateCapacityReservationDateChangeQuoteOutput structure.

Attributes

capacity_reservation_modification_quote class-attribute instance-attribute
capacity_reservation_modification_quote: CapacityReservationModificationQuote | None = ...

Information about the Capacity Reservation date change quote.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.