1. Packages
  2. Time
  3. API Docs
  4. Rotating
Time v0.0.17 published on Friday, Mar 22, 2024 by pulumiverse

time.Rotating

Explore with Pulumi AI

time logo
Time v0.0.17 published on Friday, Mar 22, 2024 by pulumiverse

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as time from "@pulumiverse/time";
    
    const example = new time.Rotating("example", {rotationDays: 30});
    
    import pulumi
    import pulumiverse_time as time
    
    example = time.Rotating("example", rotation_days=30)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-time/sdk/go/time"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := time.NewRotating(ctx, "example", &time.RotatingArgs{
    			RotationDays: pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Time = Pulumiverse.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Time.Rotating("example", new()
        {
            RotationDays = 30,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.time.Rotating;
    import com.pulumi.time.RotatingArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Rotating("example", RotatingArgs.builder()        
                .rotationDays(30)
                .build());
    
        }
    }
    
    resources:
      example:
        type: time:Rotating
        properties:
          rotationDays: 30
    

    Create Rotating Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Rotating(name: string, args?: RotatingArgs, opts?: CustomResourceOptions);
    @overload
    def Rotating(resource_name: str,
                 args: Optional[RotatingArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rotating(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 rfc3339: Optional[str] = None,
                 rotation_days: Optional[int] = None,
                 rotation_hours: Optional[int] = None,
                 rotation_minutes: Optional[int] = None,
                 rotation_months: Optional[int] = None,
                 rotation_rfc3339: Optional[str] = None,
                 rotation_years: Optional[int] = None,
                 triggers: Optional[Mapping[str, str]] = None)
    func NewRotating(ctx *Context, name string, args *RotatingArgs, opts ...ResourceOption) (*Rotating, error)
    public Rotating(string name, RotatingArgs? args = null, CustomResourceOptions? opts = null)
    public Rotating(String name, RotatingArgs args)
    public Rotating(String name, RotatingArgs args, CustomResourceOptions options)
    
    type: time:Rotating
    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 RotatingArgs
    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 RotatingArgs
    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 RotatingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RotatingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RotatingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var rotatingResource = new Time.Rotating("rotatingResource", new()
    {
        Rfc3339 = "string",
        RotationDays = 0,
        RotationHours = 0,
        RotationMinutes = 0,
        RotationMonths = 0,
        RotationRfc3339 = "string",
        RotationYears = 0,
        Triggers = 
        {
            { "string", "string" },
        },
    });
    
    example, err := time.NewRotating(ctx, "rotatingResource", &time.RotatingArgs{
    	Rfc3339:         pulumi.String("string"),
    	RotationDays:    pulumi.Int(0),
    	RotationHours:   pulumi.Int(0),
    	RotationMinutes: pulumi.Int(0),
    	RotationMonths:  pulumi.Int(0),
    	RotationRfc3339: pulumi.String("string"),
    	RotationYears:   pulumi.Int(0),
    	Triggers: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var rotatingResource = new Rotating("rotatingResource", RotatingArgs.builder()
        .rfc3339("string")
        .rotationDays(0)
        .rotationHours(0)
        .rotationMinutes(0)
        .rotationMonths(0)
        .rotationRfc3339("string")
        .rotationYears(0)
        .triggers(Map.of("string", "string"))
        .build());
    
    rotating_resource = time.Rotating("rotatingResource",
        rfc3339="string",
        rotation_days=0,
        rotation_hours=0,
        rotation_minutes=0,
        rotation_months=0,
        rotation_rfc3339="string",
        rotation_years=0,
        triggers={
            "string": "string",
        })
    
    const rotatingResource = new time.Rotating("rotatingResource", {
        rfc3339: "string",
        rotationDays: 0,
        rotationHours: 0,
        rotationMinutes: 0,
        rotationMonths: 0,
        rotationRfc3339: "string",
        rotationYears: 0,
        triggers: {
            string: "string",
        },
    });
    
    type: time:Rotating
    properties:
        rfc3339: string
        rotationDays: 0
        rotationHours: 0
        rotationMinutes: 0
        rotationMonths: 0
        rotationRfc3339: string
        rotationYears: 0
        triggers:
            string: string
    

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

    Rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    RotationDays int
    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 int
    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 int
    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 int
    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
    Configure the rotation timestamp with an RFC3339 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 int
    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 Dictionary<string, string>
    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.
    Rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    RotationDays int
    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 int
    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 int
    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 int
    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
    Configure the rotation timestamp with an RFC3339 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 int
    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 map[string]string
    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.
    rfc3339 String
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays Integer
    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 Integer
    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 Integer
    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 Integer
    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
    Configure the rotation timestamp with an RFC3339 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 Integer
    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 Map<String,String>
    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.
    rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays number
    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
    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
    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
    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
    Configure the rotation timestamp with an RFC3339 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
    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}
    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.
    rfc3339 str
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotation_days int
    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.
    rotation_hours int
    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.
    rotation_minutes int
    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.
    rotation_months int
    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.
    rotation_rfc3339 str
    Configure the rotation timestamp with an RFC3339 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.
    rotation_years int
    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 Mapping[str, str]
    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.
    rfc3339 String
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays Number
    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
    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
    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
    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
    Configure the rotation timestamp with an RFC3339 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
    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 Map<String>
    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

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

    Day int
    Number day of timestamp.
    Hour int
    Number hour of timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    Minute int
    Number minute of timestamp.
    Month int
    Number month of timestamp.
    Second int
    Number second of timestamp.
    Unix int
    Number of seconds since epoch time, e.g. 1581489373.
    Year int
    Number year of timestamp.
    Day int
    Number day of timestamp.
    Hour int
    Number hour of timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    Minute int
    Number minute of timestamp.
    Month int
    Number month of timestamp.
    Second int
    Number second of timestamp.
    Unix int
    Number of seconds since epoch time, e.g. 1581489373.
    Year int
    Number year of timestamp.
    day Integer
    Number day of timestamp.
    hour Integer
    Number hour of timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    minute Integer
    Number minute of timestamp.
    month Integer
    Number month of timestamp.
    second Integer
    Number second of timestamp.
    unix Integer
    Number of seconds since epoch time, e.g. 1581489373.
    year Integer
    Number year of timestamp.
    day number
    Number day of timestamp.
    hour number
    Number hour of timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    minute number
    Number minute of timestamp.
    month number
    Number month of timestamp.
    second number
    Number second of timestamp.
    unix number
    Number of seconds since epoch time, e.g. 1581489373.
    year number
    Number year of timestamp.
    day int
    Number day of timestamp.
    hour int
    Number hour of timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    minute int
    Number minute of timestamp.
    month int
    Number month of timestamp.
    second int
    Number second of timestamp.
    unix int
    Number of seconds since epoch time, e.g. 1581489373.
    year int
    Number year of timestamp.
    day Number
    Number day of timestamp.
    hour Number
    Number hour of timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    minute Number
    Number minute of timestamp.
    month Number
    Number month of timestamp.
    second Number
    Number second of timestamp.
    unix Number
    Number of seconds since epoch time, e.g. 1581489373.
    year Number
    Number year of timestamp.

    Look up Existing Rotating Resource

    Get an existing Rotating resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RotatingState, opts?: CustomResourceOptions): Rotating
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            day: Optional[int] = None,
            hour: Optional[int] = None,
            minute: Optional[int] = None,
            month: Optional[int] = None,
            rfc3339: Optional[str] = None,
            rotation_days: Optional[int] = None,
            rotation_hours: Optional[int] = None,
            rotation_minutes: Optional[int] = None,
            rotation_months: Optional[int] = None,
            rotation_rfc3339: Optional[str] = None,
            rotation_years: Optional[int] = None,
            second: Optional[int] = None,
            triggers: Optional[Mapping[str, str]] = None,
            unix: Optional[int] = None,
            year: Optional[int] = None) -> Rotating
    func GetRotating(ctx *Context, name string, id IDInput, state *RotatingState, opts ...ResourceOption) (*Rotating, error)
    public static Rotating Get(string name, Input<string> id, RotatingState? state, CustomResourceOptions? opts = null)
    public static Rotating get(String name, Output<String> id, RotatingState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Day int
    Number day of timestamp.
    Hour int
    Number hour of timestamp.
    Minute int
    Number minute of timestamp.
    Month int
    Number month of timestamp.
    Rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    RotationDays int
    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 int
    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 int
    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 int
    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
    Configure the rotation timestamp with an RFC3339 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 int
    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 int
    Number second of timestamp.
    Triggers Dictionary<string, string>
    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 int
    Number of seconds since epoch time, e.g. 1581489373.
    Year int
    Number year of timestamp.
    Day int
    Number day of timestamp.
    Hour int
    Number hour of timestamp.
    Minute int
    Number minute of timestamp.
    Month int
    Number month of timestamp.
    Rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    RotationDays int
    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 int
    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 int
    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 int
    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
    Configure the rotation timestamp with an RFC3339 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 int
    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 int
    Number second of timestamp.
    Triggers map[string]string
    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 int
    Number of seconds since epoch time, e.g. 1581489373.
    Year int
    Number year of timestamp.
    day Integer
    Number day of timestamp.
    hour Integer
    Number hour of timestamp.
    minute Integer
    Number minute of timestamp.
    month Integer
    Number month of timestamp.
    rfc3339 String
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays Integer
    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 Integer
    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 Integer
    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 Integer
    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
    Configure the rotation timestamp with an RFC3339 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 Integer
    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 Integer
    Number second of timestamp.
    triggers Map<String,String>
    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 Integer
    Number of seconds since epoch time, e.g. 1581489373.
    year Integer
    Number year of timestamp.
    day number
    Number day of timestamp.
    hour number
    Number hour of timestamp.
    minute number
    Number minute of timestamp.
    month number
    Number month of timestamp.
    rfc3339 string
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays number
    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
    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
    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
    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
    Configure the rotation timestamp with an RFC3339 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
    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
    Number second of timestamp.
    triggers {[key: string]: string}
    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
    Number of seconds since epoch time, e.g. 1581489373.
    year number
    Number year of timestamp.
    day int
    Number day of timestamp.
    hour int
    Number hour of timestamp.
    minute int
    Number minute of timestamp.
    month int
    Number month of timestamp.
    rfc3339 str
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotation_days int
    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.
    rotation_hours int
    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.
    rotation_minutes int
    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.
    rotation_months int
    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.
    rotation_rfc3339 str
    Configure the rotation timestamp with an RFC3339 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.
    rotation_years int
    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 int
    Number second of timestamp.
    triggers Mapping[str, str]
    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 int
    Number of seconds since epoch time, e.g. 1581489373.
    year int
    Number year of timestamp.
    day Number
    Number day of timestamp.
    hour Number
    Number hour of timestamp.
    minute Number
    Number minute of timestamp.
    month Number
    Number month of timestamp.
    rfc3339 String
    Base timestamp in RFC3339 format (see RFC3339 time string e.g., YYYY-MM-DDTHH:MM:SSZ). Defaults to the current time.
    rotationDays Number
    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
    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
    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
    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
    Configure the rotation timestamp with an RFC3339 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
    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
    Number second of timestamp.
    triggers Map<String>
    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
    Number of seconds since epoch time, e.g. 1581489373.
    year Number
    Number year of timestamp.

    Import

    This resource can be imported using the base UTC RFC3339 value and rotation years, months, days, hours, and minutes, separated by commas (,), e.g. for 30 days

    $ pulumi import time:index/rotating:Rotating example 2020-02-12T06:36:13Z,0,0,30,0,0
    

    Otherwise, to import with the rotation RFC3339 value, the base UTC RFC3339 value and rotation UTC RFC3339 value, separated by commas (,), e.g.

    $ pulumi import time:index/rotating:Rotating example 2020-02-12T06:36:13Z,2020-02-13T06:36:13Z
    

    The triggers argument cannot be imported.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    time pulumiverse/pulumi-time
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the time Terraform Provider.
    time logo
    Time v0.0.17 published on Friday, Mar 22, 2024 by pulumiverse