# Rotating

> Resource Rotating in pulumi-time.

<!-- Generated from the pulumi-time SDK. -->

Resource Rotating in pulumi-time.

Pulumi type: `time:index/rotating:Rotating`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as time from "pulumi-time"

const resource = new time.Rotating("rotating", {})
```

## Arguments

| Property          | Type                        | Required | Description                                                                                                                                                                                                                                                                                                 |
| ----------------- | --------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `rfc3339`         | `string`                    | no       | Base timestamp in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format (see [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) e.g., `YYYY-MM-DDTHH:MM:SSZ`). Defaults to the current time.                                                                      |
| `rotationDays`    | `number`                    | no       | Number of days to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                              |
| `rotationHours`   | `number`                    | no       | Number of hours to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                             |
| `rotationMinutes` | `number`                    | no       | Number of minutes to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                           |
| `rotationMonths`  | `number`                    | no       | Number of months to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                            |
| `rotationRfc3339` | `string`                    | no       | Configure the rotation timestamp with an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format of the offset timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured. |
| `rotationYears`   | `number`                    | no       | Number of years to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                             |
| `triggers`        | `{ [key: string]: string }` | no       | Arbitrary map of values that, when changed, will trigger a new base timestamp value to be saved. These conditions recreate the resource in addition to other rotation arguments. See the main provider documentation for more information.                                                                  |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property          | Type                        | Computed | Description                                                                                                                                                                                                                                                                                                 |
| ----------------- | --------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `day`             | `number`                    | yes      | Number day of timestamp.                                                                                                                                                                                                                                                                                    |
| `hour`            | `number`                    | yes      | Number hour of timestamp.                                                                                                                                                                                                                                                                                   |
| `minute`          | `number`                    | yes      | Number minute of timestamp.                                                                                                                                                                                                                                                                                 |
| `month`           | `number`                    | yes      | Number month of timestamp.                                                                                                                                                                                                                                                                                  |
| `rfc3339`         | `string`                    | no       | Base timestamp in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format (see [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) e.g., `YYYY-MM-DDTHH:MM:SSZ`). Defaults to the current time.                                                                      |
| `rotationDays`    | `number`                    | no       | Number of days to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                              |
| `rotationHours`   | `number`                    | no       | Number of hours to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                             |
| `rotationMinutes` | `number`                    | no       | Number of minutes to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                           |
| `rotationMonths`  | `number`                    | no       | Number of months to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                            |
| `rotationRfc3339` | `string`                    | no       | Configure the rotation timestamp with an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format of the offset timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured. |
| `rotationYears`   | `number`                    | no       | Number of years to add to the base timestamp to configure the rotation timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At least one of the 'rotation\_' arguments must be configured.                                                             |
| `second`          | `number`                    | yes      | Number second of timestamp.                                                                                                                                                                                                                                                                                 |
| `triggers`        | `{ [key: string]: string }` | no       | Arbitrary map of values that, when changed, will trigger a new base timestamp value to be saved. These conditions recreate the resource in addition to other rotation arguments. See the main provider documentation for more information.                                                                  |
| `unix`            | `number`                    | yes      | Number of seconds since epoch time, e.g. `1581489373`.                                                                                                                                                                                                                                                      |
| `year`            | `number`                    | yes      | Number year of timestamp.                                                                                                                                                                                                                                                                                   |
