edgecenter.Lifecyclepolicy
Explore with Pulumi AI
Represent lifecycle policy. Use to periodically take snapshots
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const lp = new edgecenter.Lifecyclepolicy("lp", {
action: "volume_snapshot",
projectId: 1,
regionId: 1,
schedules: [{
interval: {
days: 2,
hours: 3,
minutes: 4,
weeks: 1,
},
maxQuantity: 4,
resourceNameTemplate: "reserve snap of the volume {volume_id}",
retentionTime: {
days: 3,
hours: 2,
minutes: 1,
weeks: 4,
},
}],
status: "active",
volumes: [{
id: "fe93bfdd-4ce3-4041-b89b-4f10d0d49498",
}],
});
import pulumi
import pulumi_edgecenter as edgecenter
lp = edgecenter.Lifecyclepolicy("lp",
action="volume_snapshot",
project_id=1,
region_id=1,
schedules=[{
"interval": {
"days": 2,
"hours": 3,
"minutes": 4,
"weeks": 1,
},
"max_quantity": 4,
"resource_name_template": "reserve snap of the volume {volume_id}",
"retention_time": {
"days": 3,
"hours": 2,
"minutes": 1,
"weeks": 4,
},
}],
status="active",
volumes=[{
"id": "fe93bfdd-4ce3-4041-b89b-4f10d0d49498",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgecenter.NewLifecyclepolicy(ctx, "lp", &edgecenter.LifecyclepolicyArgs{
Action: pulumi.String("volume_snapshot"),
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Schedules: edgecenter.LifecyclepolicyScheduleArray{
&edgecenter.LifecyclepolicyScheduleArgs{
Interval: &edgecenter.LifecyclepolicyScheduleIntervalArgs{
Days: pulumi.Float64(2),
Hours: pulumi.Float64(3),
Minutes: pulumi.Float64(4),
Weeks: pulumi.Float64(1),
},
MaxQuantity: pulumi.Float64(4),
ResourceNameTemplate: pulumi.String("reserve snap of the volume {volume_id}"),
RetentionTime: &edgecenter.LifecyclepolicyScheduleRetentionTimeArgs{
Days: pulumi.Float64(3),
Hours: pulumi.Float64(2),
Minutes: pulumi.Float64(1),
Weeks: pulumi.Float64(4),
},
},
},
Status: pulumi.String("active"),
Volumes: edgecenter.LifecyclepolicyVolumeArray{
&edgecenter.LifecyclepolicyVolumeArgs{
Id: pulumi.String("fe93bfdd-4ce3-4041-b89b-4f10d0d49498"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var lp = new Edgecenter.Lifecyclepolicy("lp", new()
{
Action = "volume_snapshot",
ProjectId = 1,
RegionId = 1,
Schedules = new[]
{
new Edgecenter.Inputs.LifecyclepolicyScheduleArgs
{
Interval = new Edgecenter.Inputs.LifecyclepolicyScheduleIntervalArgs
{
Days = 2,
Hours = 3,
Minutes = 4,
Weeks = 1,
},
MaxQuantity = 4,
ResourceNameTemplate = "reserve snap of the volume {volume_id}",
RetentionTime = new Edgecenter.Inputs.LifecyclepolicyScheduleRetentionTimeArgs
{
Days = 3,
Hours = 2,
Minutes = 1,
Weeks = 4,
},
},
},
Status = "active",
Volumes = new[]
{
new Edgecenter.Inputs.LifecyclepolicyVolumeArgs
{
Id = "fe93bfdd-4ce3-4041-b89b-4f10d0d49498",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.Lifecyclepolicy;
import com.pulumi.edgecenter.LifecyclepolicyArgs;
import com.pulumi.edgecenter.inputs.LifecyclepolicyScheduleArgs;
import com.pulumi.edgecenter.inputs.LifecyclepolicyScheduleIntervalArgs;
import com.pulumi.edgecenter.inputs.LifecyclepolicyScheduleRetentionTimeArgs;
import com.pulumi.edgecenter.inputs.LifecyclepolicyVolumeArgs;
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 lp = new Lifecyclepolicy("lp", LifecyclepolicyArgs.builder()
.action("volume_snapshot")
.projectId(1)
.regionId(1)
.schedules(LifecyclepolicyScheduleArgs.builder()
.interval(LifecyclepolicyScheduleIntervalArgs.builder()
.days(2)
.hours(3)
.minutes(4)
.weeks(1)
.build())
.maxQuantity(4)
.resourceNameTemplate("reserve snap of the volume {volume_id}")
.retentionTime(LifecyclepolicyScheduleRetentionTimeArgs.builder()
.days(3)
.hours(2)
.minutes(1)
.weeks(4)
.build())
.build())
.status("active")
.volumes(LifecyclepolicyVolumeArgs.builder()
.id("fe93bfdd-4ce3-4041-b89b-4f10d0d49498")
.build())
.build());
}
}
resources:
lp:
type: edgecenter:Lifecyclepolicy
properties:
action: volume_snapshot
projectId: 1
regionId: 1
schedules:
- interval:
days: 2
hours: 3
minutes: 4
weeks: 1
maxQuantity: 4
resourceNameTemplate: reserve snap of the volume {volume_id}
retentionTime:
days: 3
hours: 2
minutes: 1
weeks: 4
status: active
volumes:
- id: fe93bfdd-4ce3-4041-b89b-4f10d0d49498
Create Lifecyclepolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Lifecyclepolicy(name: string, args?: LifecyclepolicyArgs, opts?: CustomResourceOptions);
@overload
def Lifecyclepolicy(resource_name: str,
args: Optional[LifecyclepolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Lifecyclepolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
lifecyclepolicy_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
schedules: Optional[Sequence[LifecyclepolicyScheduleArgs]] = None,
status: Optional[str] = None,
volumes: Optional[Sequence[LifecyclepolicyVolumeArgs]] = None)
func NewLifecyclepolicy(ctx *Context, name string, args *LifecyclepolicyArgs, opts ...ResourceOption) (*Lifecyclepolicy, error)
public Lifecyclepolicy(string name, LifecyclepolicyArgs? args = null, CustomResourceOptions? opts = null)
public Lifecyclepolicy(String name, LifecyclepolicyArgs args)
public Lifecyclepolicy(String name, LifecyclepolicyArgs args, CustomResourceOptions options)
type: edgecenter:Lifecyclepolicy
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 LifecyclepolicyArgs
- 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 LifecyclepolicyArgs
- 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 LifecyclepolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LifecyclepolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LifecyclepolicyArgs
- 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 lifecyclepolicyResource = new Edgecenter.Lifecyclepolicy("lifecyclepolicyResource", new()
{
Action = "string",
LifecyclepolicyId = "string",
Name = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
Schedules = new[]
{
new Edgecenter.Inputs.LifecyclepolicyScheduleArgs
{
MaxQuantity = 0,
Cron = new Edgecenter.Inputs.LifecyclepolicyScheduleCronArgs
{
Day = "string",
DayOfWeek = "string",
Hour = "string",
Minute = "string",
Month = "string",
Timezone = "string",
Week = "string",
},
Id = "string",
Interval = new Edgecenter.Inputs.LifecyclepolicyScheduleIntervalArgs
{
Days = 0,
Hours = 0,
Minutes = 0,
Weeks = 0,
},
ResourceNameTemplate = "string",
RetentionTime = new Edgecenter.Inputs.LifecyclepolicyScheduleRetentionTimeArgs
{
Days = 0,
Hours = 0,
Minutes = 0,
Weeks = 0,
},
Type = "string",
},
},
Status = "string",
Volumes = new[]
{
new Edgecenter.Inputs.LifecyclepolicyVolumeArgs
{
Id = "string",
Name = "string",
},
},
});
example, err := edgecenter.NewLifecyclepolicy(ctx, "lifecyclepolicyResource", &edgecenter.LifecyclepolicyArgs{
Action: pulumi.String("string"),
LifecyclepolicyId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
Schedules: edgecenter.LifecyclepolicyScheduleArray{
&edgecenter.LifecyclepolicyScheduleArgs{
MaxQuantity: pulumi.Float64(0),
Cron: &edgecenter.LifecyclepolicyScheduleCronArgs{
Day: pulumi.String("string"),
DayOfWeek: pulumi.String("string"),
Hour: pulumi.String("string"),
Minute: pulumi.String("string"),
Month: pulumi.String("string"),
Timezone: pulumi.String("string"),
Week: pulumi.String("string"),
},
Id: pulumi.String("string"),
Interval: &edgecenter.LifecyclepolicyScheduleIntervalArgs{
Days: pulumi.Float64(0),
Hours: pulumi.Float64(0),
Minutes: pulumi.Float64(0),
Weeks: pulumi.Float64(0),
},
ResourceNameTemplate: pulumi.String("string"),
RetentionTime: &edgecenter.LifecyclepolicyScheduleRetentionTimeArgs{
Days: pulumi.Float64(0),
Hours: pulumi.Float64(0),
Minutes: pulumi.Float64(0),
Weeks: pulumi.Float64(0),
},
Type: pulumi.String("string"),
},
},
Status: pulumi.String("string"),
Volumes: edgecenter.LifecyclepolicyVolumeArray{
&edgecenter.LifecyclepolicyVolumeArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
})
var lifecyclepolicyResource = new Lifecyclepolicy("lifecyclepolicyResource", LifecyclepolicyArgs.builder()
.action("string")
.lifecyclepolicyId("string")
.name("string")
.projectId(0)
.projectName("string")
.regionId(0)
.regionName("string")
.schedules(LifecyclepolicyScheduleArgs.builder()
.maxQuantity(0)
.cron(LifecyclepolicyScheduleCronArgs.builder()
.day("string")
.dayOfWeek("string")
.hour("string")
.minute("string")
.month("string")
.timezone("string")
.week("string")
.build())
.id("string")
.interval(LifecyclepolicyScheduleIntervalArgs.builder()
.days(0)
.hours(0)
.minutes(0)
.weeks(0)
.build())
.resourceNameTemplate("string")
.retentionTime(LifecyclepolicyScheduleRetentionTimeArgs.builder()
.days(0)
.hours(0)
.minutes(0)
.weeks(0)
.build())
.type("string")
.build())
.status("string")
.volumes(LifecyclepolicyVolumeArgs.builder()
.id("string")
.name("string")
.build())
.build());
lifecyclepolicy_resource = edgecenter.Lifecyclepolicy("lifecyclepolicyResource",
action="string",
lifecyclepolicy_id="string",
name="string",
project_id=0,
project_name="string",
region_id=0,
region_name="string",
schedules=[{
"max_quantity": 0,
"cron": {
"day": "string",
"day_of_week": "string",
"hour": "string",
"minute": "string",
"month": "string",
"timezone": "string",
"week": "string",
},
"id": "string",
"interval": {
"days": 0,
"hours": 0,
"minutes": 0,
"weeks": 0,
},
"resource_name_template": "string",
"retention_time": {
"days": 0,
"hours": 0,
"minutes": 0,
"weeks": 0,
},
"type": "string",
}],
status="string",
volumes=[{
"id": "string",
"name": "string",
}])
const lifecyclepolicyResource = new edgecenter.Lifecyclepolicy("lifecyclepolicyResource", {
action: "string",
lifecyclepolicyId: "string",
name: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
schedules: [{
maxQuantity: 0,
cron: {
day: "string",
dayOfWeek: "string",
hour: "string",
minute: "string",
month: "string",
timezone: "string",
week: "string",
},
id: "string",
interval: {
days: 0,
hours: 0,
minutes: 0,
weeks: 0,
},
resourceNameTemplate: "string",
retentionTime: {
days: 0,
hours: 0,
minutes: 0,
weeks: 0,
},
type: "string",
}],
status: "string",
volumes: [{
id: "string",
name: "string",
}],
});
type: edgecenter:Lifecyclepolicy
properties:
action: string
lifecyclepolicyId: string
name: string
projectId: 0
projectName: string
regionId: 0
regionName: string
schedules:
- cron:
day: string
dayOfWeek: string
hour: string
minute: string
month: string
timezone: string
week: string
id: string
interval:
days: 0
hours: 0
minutes: 0
weeks: 0
maxQuantity: 0
resourceNameTemplate: string
retentionTime:
days: 0
hours: 0
minutes: 0
weeks: 0
type: string
status: string
volumes:
- id: string
name: string
Lifecyclepolicy 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 Lifecyclepolicy resource accepts the following input properties:
- Action string
- Lifecyclepolicy
Id string - The ID of this resource.
- Name string
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Schedules
List<Lifecyclepolicy
Schedule> - Status string
- Volumes
List<Lifecyclepolicy
Volume> - List of managed volumes
- Action string
- Lifecyclepolicy
Id string - The ID of this resource.
- Name string
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Schedules
[]Lifecyclepolicy
Schedule Args - Status string
- Volumes
[]Lifecyclepolicy
Volume Args - List of managed volumes
- action String
- lifecyclepolicy
Id String - The ID of this resource.
- name String
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
List<Lifecyclepolicy
Schedule> - status String
- volumes
List<Lifecyclepolicy
Volume> - List of managed volumes
- action string
- lifecyclepolicy
Id string - The ID of this resource.
- name string
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
Lifecyclepolicy
Schedule[] - status string
- volumes
Lifecyclepolicy
Volume[] - List of managed volumes
- action str
- lifecyclepolicy_
id str - The ID of this resource.
- name str
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
Sequence[Lifecyclepolicy
Schedule Args] - status str
- volumes
Sequence[Lifecyclepolicy
Volume Args] - List of managed volumes
- action String
- lifecyclepolicy
Id String - The ID of this resource.
- name String
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules List<Property Map>
- status String
- volumes List<Property Map>
- List of managed volumes
Outputs
All input properties are implicitly available as output properties. Additionally, the Lifecyclepolicy resource produces the following output properties:
Look up Existing Lifecyclepolicy Resource
Get an existing Lifecyclepolicy 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?: LifecyclepolicyState, opts?: CustomResourceOptions): Lifecyclepolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
lifecyclepolicy_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
schedules: Optional[Sequence[LifecyclepolicyScheduleArgs]] = None,
status: Optional[str] = None,
user_id: Optional[float] = None,
volumes: Optional[Sequence[LifecyclepolicyVolumeArgs]] = None) -> Lifecyclepolicy
func GetLifecyclepolicy(ctx *Context, name string, id IDInput, state *LifecyclepolicyState, opts ...ResourceOption) (*Lifecyclepolicy, error)
public static Lifecyclepolicy Get(string name, Input<string> id, LifecyclepolicyState? state, CustomResourceOptions? opts = null)
public static Lifecyclepolicy get(String name, Output<String> id, LifecyclepolicyState state, CustomResourceOptions options)
resources: _: type: edgecenter:Lifecyclepolicy get: id: ${id}
- 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.
- Action string
- Lifecyclepolicy
Id string - The ID of this resource.
- Name string
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Schedules
List<Lifecyclepolicy
Schedule> - Status string
- User
Id double - Volumes
List<Lifecyclepolicy
Volume> - List of managed volumes
- Action string
- Lifecyclepolicy
Id string - The ID of this resource.
- Name string
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Schedules
[]Lifecyclepolicy
Schedule Args - Status string
- User
Id float64 - Volumes
[]Lifecyclepolicy
Volume Args - List of managed volumes
- action String
- lifecyclepolicy
Id String - The ID of this resource.
- name String
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
List<Lifecyclepolicy
Schedule> - status String
- user
Id Double - volumes
List<Lifecyclepolicy
Volume> - List of managed volumes
- action string
- lifecyclepolicy
Id string - The ID of this resource.
- name string
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
Lifecyclepolicy
Schedule[] - status string
- user
Id number - volumes
Lifecyclepolicy
Volume[] - List of managed volumes
- action str
- lifecyclepolicy_
id str - The ID of this resource.
- name str
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules
Sequence[Lifecyclepolicy
Schedule Args] - status str
- user_
id float - volumes
Sequence[Lifecyclepolicy
Volume Args] - List of managed volumes
- action String
- lifecyclepolicy
Id String - The ID of this resource.
- name String
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- schedules List<Property Map>
- status String
- user
Id Number - volumes List<Property Map>
- List of managed volumes
Supporting Types
LifecyclepolicySchedule, LifecyclepolicyScheduleArgs
- Max
Quantity double - Maximum number of stored resources
- Cron
Lifecyclepolicy
Schedule Cron - Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- Id string
- Interval
Lifecyclepolicy
Schedule Interval - Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- Resource
Name stringTemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- Retention
Time LifecyclepolicySchedule Retention Time - If it is set, new resource will be deleted after time
- Type string
- Max
Quantity float64 - Maximum number of stored resources
- Cron
Lifecyclepolicy
Schedule Cron - Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- Id string
- Interval
Lifecyclepolicy
Schedule Interval - Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- Resource
Name stringTemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- Retention
Time LifecyclepolicySchedule Retention Time - If it is set, new resource will be deleted after time
- Type string
- max
Quantity Double - Maximum number of stored resources
- cron
Lifecyclepolicy
Schedule Cron - Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- id String
- interval
Lifecyclepolicy
Schedule Interval - Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- resource
Name StringTemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- retention
Time LifecyclepolicySchedule Retention Time - If it is set, new resource will be deleted after time
- type String
- max
Quantity number - Maximum number of stored resources
- cron
Lifecyclepolicy
Schedule Cron - Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- id string
- interval
Lifecyclepolicy
Schedule Interval - Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- resource
Name stringTemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- retention
Time LifecyclepolicySchedule Retention Time - If it is set, new resource will be deleted after time
- type string
- max_
quantity float - Maximum number of stored resources
- cron
Lifecyclepolicy
Schedule Cron - Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- id str
- interval
Lifecyclepolicy
Schedule Interval - Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- resource_
name_ strtemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- retention_
time LifecyclepolicySchedule Retention Time - If it is set, new resource will be deleted after time
- type str
- max
Quantity Number - Maximum number of stored resources
- cron Property Map
- Use for taking actions at specified moments of time. Exactly one of interval and cron blocks should be provided
- id String
- interval Property Map
- Use for taking actions with equal time intervals between them. Exactly one of interval and cron blocks should be provided
- resource
Name StringTemplate - Used to name snapshots. {volume_id} is substituted with volume.id on creation
- retention
Time Property Map - If it is set, new resource will be deleted after time
- type String
LifecyclepolicyScheduleCron, LifecyclepolicyScheduleCronArgs
- Day string
- Either single asterisk or comma-separated list of integers (1-31)
- Day
Of stringWeek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- Hour string
- Either single asterisk or comma-separated list of integers (0-23)
- Minute string
- Either single asterisk or comma-separated list of integers (0-59)
- Month string
- Either single asterisk or comma-separated list of integers (1-12)
- Timezone string
- Week string
- Either single asterisk or comma-separated list of integers (1-53)
- Day string
- Either single asterisk or comma-separated list of integers (1-31)
- Day
Of stringWeek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- Hour string
- Either single asterisk or comma-separated list of integers (0-23)
- Minute string
- Either single asterisk or comma-separated list of integers (0-59)
- Month string
- Either single asterisk or comma-separated list of integers (1-12)
- Timezone string
- Week string
- Either single asterisk or comma-separated list of integers (1-53)
- day String
- Either single asterisk or comma-separated list of integers (1-31)
- day
Of StringWeek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- hour String
- Either single asterisk or comma-separated list of integers (0-23)
- minute String
- Either single asterisk or comma-separated list of integers (0-59)
- month String
- Either single asterisk or comma-separated list of integers (1-12)
- timezone String
- week String
- Either single asterisk or comma-separated list of integers (1-53)
- day string
- Either single asterisk or comma-separated list of integers (1-31)
- day
Of stringWeek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- hour string
- Either single asterisk or comma-separated list of integers (0-23)
- minute string
- Either single asterisk or comma-separated list of integers (0-59)
- month string
- Either single asterisk or comma-separated list of integers (1-12)
- timezone string
- week string
- Either single asterisk or comma-separated list of integers (1-53)
- day str
- Either single asterisk or comma-separated list of integers (1-31)
- day_
of_ strweek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- hour str
- Either single asterisk or comma-separated list of integers (0-23)
- minute str
- Either single asterisk or comma-separated list of integers (0-59)
- month str
- Either single asterisk or comma-separated list of integers (1-12)
- timezone str
- week str
- Either single asterisk or comma-separated list of integers (1-53)
- day String
- Either single asterisk or comma-separated list of integers (1-31)
- day
Of StringWeek - Use lowercase three-letter abbreviations of weekdays comma-separated (e.g., 'mon,tue,wed') or '*' for any day.
- hour String
- Either single asterisk or comma-separated list of integers (0-23)
- minute String
- Either single asterisk or comma-separated list of integers (0-59)
- month String
- Either single asterisk or comma-separated list of integers (1-12)
- timezone String
- week String
- Either single asterisk or comma-separated list of integers (1-53)
LifecyclepolicyScheduleInterval, LifecyclepolicyScheduleIntervalArgs
LifecyclepolicyScheduleRetentionTime, LifecyclepolicyScheduleRetentionTimeArgs
LifecyclepolicyVolume, LifecyclepolicyVolumeArgs
Import
import using <project_id>:<region_id>:<lifecyclepolicy_id> format
$ pulumi import edgecenter:index/lifecyclepolicy:Lifecyclepolicy lifecyclepolicy1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.