Skip to main content

Create AWS policy template

API to create AWS policy template

Path Parameters
  • accountId int64 required

    Cloud Rewind account ID.

  • projectId string required

    Cloud Rewind project ID.

Request Body required
  • name string required

    Possible values: >= 3 and <= 50, Value must match regular expression ^[a-zA-Z][a-zA-Z0-9-]*$

    Name of the policy template.
    Constraints: It must begin with a letter and may include only letters, numbers, and hyphens.

  • description string

    Possible values: <= 1000

    Description of the policy template.

  • frequencyType string required

    Possible values: [fifteen-minutes, thirty-minutes, hourly, two-hours, three-hours, four-hours, six-hours, eight-hours, twelve-hours, daily, weekly, monthly, yearly]

    Frequency type for the policy.

    ValueDescription
    fifteen-minutesThis defines a protection schedule that occurs every 15 minutes.
    thirty-minutesThis defines a protection schedule that occurs every 30 minutes.
    hourlyThis defines a protection schedule that occurs every hour.
    two-hoursThis defines a protection schedule that occurs every 2 hours.
    three-hoursThis defines a protection schedule that occurs every 3 hours.
    four-hoursThis defines a protection schedule that occurs every 4 hours.
    six-hoursThis defines a protection schedule that occurs every 6 hours.
    eight-hoursThis defines a protection schedule that occurs every 8 hours.
    twelve-hoursThis defines a protection schedule that occurs every 12 hours.
    dailyThis defines a protection schedule that occurs every day.
    weeklyThis defines a protection schedule that occurs every week.
    monthlyThis defines a protection schedule that occurs every month.
    yearlyThis defines a protection schedule that occurs every year.
  • frequencyDetails object required
  • daysOfWeek string[]

    Possible values: [MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY]

    Days of the week (e.g., SUNDAY, MONDAY).

  • months string[]

    Possible values: [JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER]

    Months of the year (e.g., JANUARY, FEBRUARY).

  • daysOfMonth int32[]

    Days of the month (1 to 31).

  • hours int32[]

    Hours of the day (0 to 23).

  • offset int32

    Delays the defined scheduled execution time (in minutes), increasing in 5-minute steps from 0 to 55.

  • retentionCount int32 required

    Possible values: >= 3 and <= 3500

    Specifies the number of protections to retain.

  • timeZone string required

    Specifies the time zone to be used in interpreting schedule.
    The value of this field must be a time zone name from the Tz database
    Example: "America/New_York"

  • replicaRetentionCount int32 required

    Possible values: >= 3 and <= 3500

    Specifies the number of replications to retain.

Responses

Created


Schema
  • accountId int64

    Cloud Rewind account ID.

  • projectId string

    Cloud Rewind project ID.

  • id int64

    AWS policy template ID

  • name string

    Name of the policy template

  • description string

    Description of the policy template

  • frequencyType string

    Frequency type for the policy

  • frequencyDetails object

    Details about the frequency configuration of the policy template

  • daysOfWeek string[]

    Days of the week

  • months string[]

    Months of the year

  • daysOfMonth int32[]

    Days of the month

  • hours int32[]

    Hours of the day

  • offset int32

    Delays the defined scheduled execution time (in minutes)

  • timeZone string

    Specifies the time zone to be used in interpreting schedule

  • retentionCount int32

    Specifies the number of protections to retain

  • createdAt date-time

    The time when the Policy template was created

  • replicaRetentionCount int32

    Specifies the number of replications to retain

Loading...