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.
- application/json
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.
Value Description fifteen-minutes This defines a protection schedule that occurs every 15 minutes. thirty-minutes This defines a protection schedule that occurs every 30 minutes. hourly This defines a protection schedule that occurs every hour. two-hours This defines a protection schedule that occurs every 2 hours. three-hours This defines a protection schedule that occurs every 3 hours. four-hours This defines a protection schedule that occurs every 4 hours. six-hours This defines a protection schedule that occurs every 6 hours. eight-hours This defines a protection schedule that occurs every 8 hours. twelve-hours This defines a protection schedule that occurs every 12 hours. daily This defines a protection schedule that occurs every day. weekly This defines a protection schedule that occurs every week. monthly This defines a protection schedule that occurs every month. yearly This 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 int32Delays 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.
- 201
- 401
- 403
- 404
- 409
- 412
- 500
Created
- application/json
- Schema
- Example (from schema)
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 int32Delays 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
{
"accountId": 0,
"projectId": "string",
"id": 0,
"name": "string",
"description": "string",
"frequencyType": "string",
"frequencyDetails": {
"daysOfWeek": [
"string"
],
"months": [
"string"
],
"daysOfMonth": [
0
],
"hours": [
0
],
"offset": 0
},
"timeZone": "string",
"retentionCount": 0,
"createdAt": "2025-08-28",
"replicaRetentionCount": 0
}
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}
Conflict
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}
Precondition Failed
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
errors object[]
code stringmessage stringtype stringfieldErrors object
property name*
string- message string
- requiredPermissions string[]
{
"errors": [
{
"code": "string",
"message": "string",
"type": "string"
}
],
"fieldErrors": {},
"message": "string",
"requiredPermissions": [
"string"
]
}