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:
- DatabaseId string
- DailyRecurrence 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.
- WeeklyRecurrence Pulumi.Google Native. Firestore. V1. Inputs. Google Firestore Admin V1Weekly Recurrence 
- For a schedule that runs weekly on a specific day and time.
- DatabaseId string
- DailyRecurrence 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.
- WeeklyRecurrence GoogleFirestore Admin V1Weekly Recurrence Args 
- For a schedule that runs weekly on a specific day and time.
- databaseId String
- dailyRecurrence 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.
- weeklyRecurrence GoogleFirestore Admin V1Weekly Recurrence 
- For a schedule that runs weekly on a specific day and time.
- databaseId string
- dailyRecurrence 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.
- weeklyRecurrence 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.
- databaseId String
- dailyRecurrence 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.
- weeklyRecurrence 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:
- CreateTime 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}
- UpdateTime 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.
- CreateTime 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}
- UpdateTime 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.
- createTime 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}
- updateTime 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.
- createTime 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}
- updateTime 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.
- createTime 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}
- updateTime 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
GoogleFirestore Admin V1Weekly Recurrence Day 
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
GoogleFirestore Admin V1Weekly Recurrence Day 
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
GoogleFirestore Admin V1Weekly Recurrence Day 
- The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
- day
GoogleFirestore 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            
- DayOf 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
- GoogleFirestore Admin V1Weekly Recurrence Day Day Of Week Unspecified 
- DAY_OF_WEEK_UNSPECIFIEDThe day of the week is unspecified.
- GoogleFirestore Admin V1Weekly Recurrence Day Monday 
- MONDAYMonday
- GoogleFirestore Admin V1Weekly Recurrence Day Tuesday 
- TUESDAYTuesday
- GoogleFirestore Admin V1Weekly Recurrence Day Wednesday 
- WEDNESDAYWednesday
- GoogleFirestore Admin V1Weekly Recurrence Day Thursday 
- THURSDAYThursday
- GoogleFirestore Admin V1Weekly Recurrence Day Friday 
- FRIDAYFriday
- GoogleFirestore Admin V1Weekly Recurrence Day Saturday 
- SATURDAYSaturday
- GoogleFirestore Admin V1Weekly Recurrence Day Sunday 
- SUNDAYSunday
- DayOf 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
- DayOf 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.