Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firestore/v1.BackupSchedule
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a backup schedule on a database. At most two backup schedules can be configured on a database, one daily backup schedule with retention up to 7 days and one weekly backup schedule with retention up to 14 weeks. Auto-naming is currently not supported for this resource.
Create BackupSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupSchedule(name: string, args: BackupScheduleArgs, opts?: CustomResourceOptions);
@overload
def BackupSchedule(resource_name: str,
args: BackupScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
daily_recurrence: Optional[GoogleFirestoreAdminV1DailyRecurrenceArgs] = None,
project: Optional[str] = None,
retention: Optional[str] = None,
weekly_recurrence: Optional[GoogleFirestoreAdminV1WeeklyRecurrenceArgs] = None)
func NewBackupSchedule(ctx *Context, name string, args BackupScheduleArgs, opts ...ResourceOption) (*BackupSchedule, error)
public BackupSchedule(string name, BackupScheduleArgs args, CustomResourceOptions? opts = null)
public BackupSchedule(String name, BackupScheduleArgs args)
public BackupSchedule(String name, BackupScheduleArgs args, CustomResourceOptions options)
type: google-native:firestore/v1:BackupSchedule
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 BackupScheduleArgs
- 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 BackupScheduleArgs
- 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 BackupScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupScheduleArgs
- 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 backupScheduleResource = new GoogleNative.Firestore.V1.BackupSchedule("backupScheduleResource", new()
{
DatabaseId = "string",
DailyRecurrence = null,
Project = "string",
Retention = "string",
WeeklyRecurrence = new GoogleNative.Firestore.V1.Inputs.GoogleFirestoreAdminV1WeeklyRecurrenceArgs
{
Day = GoogleNative.Firestore.V1.GoogleFirestoreAdminV1WeeklyRecurrenceDay.DayOfWeekUnspecified,
},
});
example, err := firestore.NewBackupSchedule(ctx, "backupScheduleResource", &firestore.BackupScheduleArgs{
DatabaseId: pulumi.String("string"),
DailyRecurrence: &firestore.GoogleFirestoreAdminV1DailyRecurrenceArgs{},
Project: pulumi.String("string"),
Retention: pulumi.String("string"),
WeeklyRecurrence: &firestore.GoogleFirestoreAdminV1WeeklyRecurrenceArgs{
Day: firestore.GoogleFirestoreAdminV1WeeklyRecurrenceDayDayOfWeekUnspecified,
},
})
var backupScheduleResource = new BackupSchedule("backupScheduleResource", BackupScheduleArgs.builder()
.databaseId("string")
.dailyRecurrence()
.project("string")
.retention("string")
.weeklyRecurrence(GoogleFirestoreAdminV1WeeklyRecurrenceArgs.builder()
.day("DAY_OF_WEEK_UNSPECIFIED")
.build())
.build());
backup_schedule_resource = google_native.firestore.v1.BackupSchedule("backupScheduleResource",
database_id="string",
daily_recurrence={},
project="string",
retention="string",
weekly_recurrence={
"day": google_native.firestore.v1.GoogleFirestoreAdminV1WeeklyRecurrenceDay.DAY_OF_WEEK_UNSPECIFIED,
})
const backupScheduleResource = new google_native.firestore.v1.BackupSchedule("backupScheduleResource", {
databaseId: "string",
dailyRecurrence: {},
project: "string",
retention: "string",
weeklyRecurrence: {
day: google_native.firestore.v1.GoogleFirestoreAdminV1WeeklyRecurrenceDay.DayOfWeekUnspecified,
},
});
type: google-native:firestore/v1:BackupSchedule
properties:
dailyRecurrence: {}
databaseId: string
project: string
retention: string
weeklyRecurrence:
day: DAY_OF_WEEK_UNSPECIFIED
BackupSchedule 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 BackupSchedule resource accepts the following input properties:
- Database
Id string - Daily
Recurrence Pulumi.Google Native. Firestore. V1. Inputs. Google Firestore Admin V1Daily Recurrence - For a schedule that runs daily at a specified time.
- Project string
- Retention string
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- Weekly
Recurrence Pulumi.Google Native. Firestore. V1. Inputs. Google Firestore Admin V1Weekly Recurrence - For a schedule that runs weekly on a specific day and time.
- Database
Id string - Daily
Recurrence GoogleFirestore Admin V1Daily Recurrence Args - For a schedule that runs daily at a specified time.
- Project string
- Retention string
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- Weekly
Recurrence GoogleFirestore Admin V1Weekly Recurrence Args - For a schedule that runs weekly on a specific day and time.
- database
Id String - daily
Recurrence GoogleFirestore Admin V1Daily Recurrence - For a schedule that runs daily at a specified time.
- project String
- retention String
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- weekly
Recurrence GoogleFirestore Admin V1Weekly Recurrence - For a schedule that runs weekly on a specific day and time.
- database
Id string - daily
Recurrence GoogleFirestore Admin V1Daily Recurrence - For a schedule that runs daily at a specified time.
- project string
- retention string
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- weekly
Recurrence GoogleFirestore Admin V1Weekly Recurrence - For a schedule that runs weekly on a specific day and time.
- database_
id str - daily_
recurrence GoogleFirestore Admin V1Daily Recurrence Args - For a schedule that runs daily at a specified time.
- project str
- retention str
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- weekly_
recurrence GoogleFirestore Admin V1Weekly Recurrence Args - For a schedule that runs weekly on a specific day and time.
- database
Id String - daily
Recurrence Property Map - For a schedule that runs daily at a specified time.
- project String
- retention String
- At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
- weekly
Recurrence Property Map - For a schedule that runs weekly on a specific day and time.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupSchedule resource produces the following output properties:
- Create
Time string - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- Update
Time string - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
- Create
Time string - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- Update
Time string - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
- create
Time String - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- update
Time String - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
- create
Time string - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- update
Time string - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
- create_
time str - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- update_
time str - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
- create
Time String - The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is
projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- update
Time String - The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
Supporting Types
GoogleFirestoreAdminV1WeeklyRecurrence, GoogleFirestoreAdminV1WeeklyRecurrenceArgs
- Day
Pulumi.
Google Native. Firestore. V1. Google Firestore Admin V1Weekly Recurrence Day - The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- Day
Google
Firestore Admin V1Weekly Recurrence Day - The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
Google
Firestore Admin V1Weekly Recurrence Day - The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
Google
Firestore Admin V1Weekly Recurrence Day - The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
Google
Firestore Admin V1Weekly Recurrence Day - The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day "DAY_OF_WEEK_UNSPECIFIED" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY"
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
GoogleFirestoreAdminV1WeeklyRecurrenceDay, GoogleFirestoreAdminV1WeeklyRecurrenceDayArgs
- Day
Of Week Unspecified - DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- Monday
- MONDAYMonday
- Tuesday
- TUESDAYTuesday
- Wednesday
- WEDNESDAYWednesday
- Thursday
- THURSDAYThursday
- Friday
- FRIDAYFriday
- Saturday
- SATURDAYSaturday
- Sunday
- SUNDAYSunday
- Google
Firestore Admin V1Weekly Recurrence Day Day Of Week Unspecified - DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- Google
Firestore Admin V1Weekly Recurrence Day Monday - MONDAYMonday
- Google
Firestore Admin V1Weekly Recurrence Day Tuesday - TUESDAYTuesday
- Google
Firestore Admin V1Weekly Recurrence Day Wednesday - WEDNESDAYWednesday
- Google
Firestore Admin V1Weekly Recurrence Day Thursday - THURSDAYThursday
- Google
Firestore Admin V1Weekly Recurrence Day Friday - FRIDAYFriday
- Google
Firestore Admin V1Weekly Recurrence Day Saturday - SATURDAYSaturday
- Google
Firestore Admin V1Weekly Recurrence Day Sunday - SUNDAYSunday
- Day
Of Week Unspecified - DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- Monday
- MONDAYMonday
- Tuesday
- TUESDAYTuesday
- Wednesday
- WEDNESDAYWednesday
- Thursday
- THURSDAYThursday
- Friday
- FRIDAYFriday
- Saturday
- SATURDAYSaturday
- Sunday
- SUNDAYSunday
- Day
Of Week Unspecified - DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- Monday
- MONDAYMonday
- Tuesday
- TUESDAYTuesday
- Wednesday
- WEDNESDAYWednesday
- Thursday
- THURSDAYThursday
- Friday
- FRIDAYFriday
- Saturday
- SATURDAYSaturday
- Sunday
- SUNDAYSunday
- DAY_OF_WEEK_UNSPECIFIED
- DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- MONDAY
- MONDAYMonday
- TUESDAY
- TUESDAYTuesday
- WEDNESDAY
- WEDNESDAYWednesday
- THURSDAY
- THURSDAYThursday
- FRIDAY
- FRIDAYFriday
- SATURDAY
- SATURDAYSaturday
- SUNDAY
- SUNDAYSunday
- "DAY_OF_WEEK_UNSPECIFIED"
- DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- "MONDAY"
- MONDAYMonday
- "TUESDAY"
- TUESDAYTuesday
- "WEDNESDAY"
- WEDNESDAYWednesday
- "THURSDAY"
- THURSDAYThursday
- "FRIDAY"
- FRIDAYFriday
- "SATURDAY"
- SATURDAYSaturday
- "SUNDAY"
- SUNDAYSunday
GoogleFirestoreAdminV1WeeklyRecurrenceResponse, GoogleFirestoreAdminV1WeeklyRecurrenceResponseArgs
- Day string
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- Day string
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day String
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day string
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day str
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day String
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.