Documentation ¶
Index ¶
- type ContainerStorageAccount
- type ContainerStorageAccountArgs
- type ContainerStorageAccountArray
- func (ContainerStorageAccountArray) ElementType() reflect.Type
- func (i ContainerStorageAccountArray) ToContainerStorageAccountArrayOutput() ContainerStorageAccountArrayOutput
- func (i ContainerStorageAccountArray) ToContainerStorageAccountArrayOutputWithContext(ctx context.Context) ContainerStorageAccountArrayOutput
- type ContainerStorageAccountArrayInput
- type ContainerStorageAccountArrayOutput
- func (ContainerStorageAccountArrayOutput) ElementType() reflect.Type
- func (o ContainerStorageAccountArrayOutput) Index(i pulumi.IntInput) ContainerStorageAccountOutput
- func (o ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutput() ContainerStorageAccountArrayOutput
- func (o ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutputWithContext(ctx context.Context) ContainerStorageAccountArrayOutput
- type ContainerStorageAccountInput
- type ContainerStorageAccountMap
- func (ContainerStorageAccountMap) ElementType() reflect.Type
- func (i ContainerStorageAccountMap) ToContainerStorageAccountMapOutput() ContainerStorageAccountMapOutput
- func (i ContainerStorageAccountMap) ToContainerStorageAccountMapOutputWithContext(ctx context.Context) ContainerStorageAccountMapOutput
- type ContainerStorageAccountMapInput
- type ContainerStorageAccountMapOutput
- func (ContainerStorageAccountMapOutput) ElementType() reflect.Type
- func (o ContainerStorageAccountMapOutput) MapIndex(k pulumi.StringInput) ContainerStorageAccountOutput
- func (o ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutput() ContainerStorageAccountMapOutput
- func (o ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutputWithContext(ctx context.Context) ContainerStorageAccountMapOutput
- type ContainerStorageAccountOutput
- type ContainerStorageAccountState
- type GetPolicyFileshareArgs
- type GetPolicyFileshareOutputArgs
- type GetPolicyFileshareResult
- type GetPolicyFileshareResultOutput
- func (GetPolicyFileshareResultOutput) ElementType() reflect.Type
- func (o GetPolicyFileshareResultOutput) Id() pulumi.StringOutput
- func (o GetPolicyFileshareResultOutput) Name() pulumi.StringOutput
- func (o GetPolicyFileshareResultOutput) RecoveryVaultName() pulumi.StringOutput
- func (o GetPolicyFileshareResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o GetPolicyFileshareResultOutput) Tags() pulumi.StringMapOutput
- func (o GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutput() GetPolicyFileshareResultOutput
- func (o GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutputWithContext(ctx context.Context) GetPolicyFileshareResultOutput
- type LookupPolicyVMArgs
- type LookupPolicyVMOutputArgs
- type LookupPolicyVMResult
- type LookupPolicyVMResultOutput
- func (LookupPolicyVMResultOutput) ElementType() reflect.Type
- func (o LookupPolicyVMResultOutput) Id() pulumi.StringOutput
- func (o LookupPolicyVMResultOutput) Name() pulumi.StringOutput
- func (o LookupPolicyVMResultOutput) RecoveryVaultName() pulumi.StringOutput
- func (o LookupPolicyVMResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupPolicyVMResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutput() LookupPolicyVMResultOutput
- func (o LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutputWithContext(ctx context.Context) LookupPolicyVMResultOutput
- type PolicyFileShare
- type PolicyFileShareArgs
- type PolicyFileShareArray
- type PolicyFileShareArrayInput
- type PolicyFileShareArrayOutput
- func (PolicyFileShareArrayOutput) ElementType() reflect.Type
- func (o PolicyFileShareArrayOutput) Index(i pulumi.IntInput) PolicyFileShareOutput
- func (o PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutput() PolicyFileShareArrayOutput
- func (o PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutputWithContext(ctx context.Context) PolicyFileShareArrayOutput
- type PolicyFileShareBackup
- type PolicyFileShareBackupArgs
- func (PolicyFileShareBackupArgs) ElementType() reflect.Type
- func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutput() PolicyFileShareBackupOutput
- func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutputWithContext(ctx context.Context) PolicyFileShareBackupOutput
- func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
- func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
- type PolicyFileShareBackupInput
- type PolicyFileShareBackupOutput
- func (PolicyFileShareBackupOutput) ElementType() reflect.Type
- func (o PolicyFileShareBackupOutput) Frequency() pulumi.StringOutput
- func (o PolicyFileShareBackupOutput) Time() pulumi.StringOutput
- func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutput() PolicyFileShareBackupOutput
- func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutputWithContext(ctx context.Context) PolicyFileShareBackupOutput
- func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
- func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
- type PolicyFileShareBackupPtrInput
- type PolicyFileShareBackupPtrOutput
- func (o PolicyFileShareBackupPtrOutput) Elem() PolicyFileShareBackupOutput
- func (PolicyFileShareBackupPtrOutput) ElementType() reflect.Type
- func (o PolicyFileShareBackupPtrOutput) Frequency() pulumi.StringPtrOutput
- func (o PolicyFileShareBackupPtrOutput) Time() pulumi.StringPtrOutput
- func (o PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
- func (o PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
- type PolicyFileShareInput
- type PolicyFileShareMap
- type PolicyFileShareMapInput
- type PolicyFileShareMapOutput
- func (PolicyFileShareMapOutput) ElementType() reflect.Type
- func (o PolicyFileShareMapOutput) MapIndex(k pulumi.StringInput) PolicyFileShareOutput
- func (o PolicyFileShareMapOutput) ToPolicyFileShareMapOutput() PolicyFileShareMapOutput
- func (o PolicyFileShareMapOutput) ToPolicyFileShareMapOutputWithContext(ctx context.Context) PolicyFileShareMapOutput
- type PolicyFileShareOutput
- type PolicyFileShareRetentionDaily
- type PolicyFileShareRetentionDailyArgs
- func (PolicyFileShareRetentionDailyArgs) ElementType() reflect.Type
- func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutput() PolicyFileShareRetentionDailyOutput
- func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyOutput
- func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
- func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
- type PolicyFileShareRetentionDailyInput
- type PolicyFileShareRetentionDailyOutput
- func (o PolicyFileShareRetentionDailyOutput) Count() pulumi.IntOutput
- func (PolicyFileShareRetentionDailyOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutput() PolicyFileShareRetentionDailyOutput
- func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyOutput
- func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
- func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
- type PolicyFileShareRetentionDailyPtrInput
- type PolicyFileShareRetentionDailyPtrOutput
- func (o PolicyFileShareRetentionDailyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyFileShareRetentionDailyPtrOutput) Elem() PolicyFileShareRetentionDailyOutput
- func (PolicyFileShareRetentionDailyPtrOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
- func (o PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
- type PolicyFileShareRetentionMonthly
- type PolicyFileShareRetentionMonthlyArgs
- func (PolicyFileShareRetentionMonthlyArgs) ElementType() reflect.Type
- func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutput() PolicyFileShareRetentionMonthlyOutput
- func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyOutput
- func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
- func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
- type PolicyFileShareRetentionMonthlyInput
- type PolicyFileShareRetentionMonthlyOutput
- func (o PolicyFileShareRetentionMonthlyOutput) Count() pulumi.IntOutput
- func (PolicyFileShareRetentionMonthlyOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutput() PolicyFileShareRetentionMonthlyOutput
- func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyOutput
- func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
- func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
- func (o PolicyFileShareRetentionMonthlyOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionMonthlyOutput) Weeks() pulumi.StringArrayOutput
- type PolicyFileShareRetentionMonthlyPtrInput
- type PolicyFileShareRetentionMonthlyPtrOutput
- func (o PolicyFileShareRetentionMonthlyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyFileShareRetentionMonthlyPtrOutput) Elem() PolicyFileShareRetentionMonthlyOutput
- func (PolicyFileShareRetentionMonthlyPtrOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
- func (o PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
- func (o PolicyFileShareRetentionMonthlyPtrOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionMonthlyPtrOutput) Weeks() pulumi.StringArrayOutput
- type PolicyFileShareRetentionWeekly
- type PolicyFileShareRetentionWeeklyArgs
- func (PolicyFileShareRetentionWeeklyArgs) ElementType() reflect.Type
- func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutput() PolicyFileShareRetentionWeeklyOutput
- func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyOutput
- func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
- func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
- type PolicyFileShareRetentionWeeklyInput
- type PolicyFileShareRetentionWeeklyOutput
- func (o PolicyFileShareRetentionWeeklyOutput) Count() pulumi.IntOutput
- func (PolicyFileShareRetentionWeeklyOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutput() PolicyFileShareRetentionWeeklyOutput
- func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyOutput
- func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
- func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
- func (o PolicyFileShareRetentionWeeklyOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyFileShareRetentionWeeklyPtrInput
- type PolicyFileShareRetentionWeeklyPtrOutput
- func (o PolicyFileShareRetentionWeeklyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyFileShareRetentionWeeklyPtrOutput) Elem() PolicyFileShareRetentionWeeklyOutput
- func (PolicyFileShareRetentionWeeklyPtrOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
- func (o PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
- func (o PolicyFileShareRetentionWeeklyPtrOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyFileShareRetentionYearly
- type PolicyFileShareRetentionYearlyArgs
- func (PolicyFileShareRetentionYearlyArgs) ElementType() reflect.Type
- func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutput() PolicyFileShareRetentionYearlyOutput
- func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyOutput
- func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
- func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
- type PolicyFileShareRetentionYearlyInput
- type PolicyFileShareRetentionYearlyOutput
- func (o PolicyFileShareRetentionYearlyOutput) Count() pulumi.IntOutput
- func (PolicyFileShareRetentionYearlyOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionYearlyOutput) Months() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutput() PolicyFileShareRetentionYearlyOutput
- func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyOutput
- func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
- func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
- func (o PolicyFileShareRetentionYearlyOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionYearlyOutput) Weeks() pulumi.StringArrayOutput
- type PolicyFileShareRetentionYearlyPtrInput
- type PolicyFileShareRetentionYearlyPtrOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) Elem() PolicyFileShareRetentionYearlyOutput
- func (PolicyFileShareRetentionYearlyPtrOutput) ElementType() reflect.Type
- func (o PolicyFileShareRetentionYearlyPtrOutput) Months() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyFileShareRetentionYearlyPtrOutput) Weeks() pulumi.StringArrayOutput
- type PolicyFileShareState
- type PolicyVM
- type PolicyVMArgs
- type PolicyVMArray
- type PolicyVMArrayInput
- type PolicyVMArrayOutput
- type PolicyVMBackup
- type PolicyVMBackupArgs
- func (PolicyVMBackupArgs) ElementType() reflect.Type
- func (i PolicyVMBackupArgs) ToPolicyVMBackupOutput() PolicyVMBackupOutput
- func (i PolicyVMBackupArgs) ToPolicyVMBackupOutputWithContext(ctx context.Context) PolicyVMBackupOutput
- func (i PolicyVMBackupArgs) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
- func (i PolicyVMBackupArgs) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
- type PolicyVMBackupInput
- type PolicyVMBackupOutput
- func (PolicyVMBackupOutput) ElementType() reflect.Type
- func (o PolicyVMBackupOutput) Frequency() pulumi.StringOutput
- func (o PolicyVMBackupOutput) Time() pulumi.StringOutput
- func (o PolicyVMBackupOutput) ToPolicyVMBackupOutput() PolicyVMBackupOutput
- func (o PolicyVMBackupOutput) ToPolicyVMBackupOutputWithContext(ctx context.Context) PolicyVMBackupOutput
- func (o PolicyVMBackupOutput) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
- func (o PolicyVMBackupOutput) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
- func (o PolicyVMBackupOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyVMBackupPtrInput
- type PolicyVMBackupPtrOutput
- func (o PolicyVMBackupPtrOutput) Elem() PolicyVMBackupOutput
- func (PolicyVMBackupPtrOutput) ElementType() reflect.Type
- func (o PolicyVMBackupPtrOutput) Frequency() pulumi.StringPtrOutput
- func (o PolicyVMBackupPtrOutput) Time() pulumi.StringPtrOutput
- func (o PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
- func (o PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
- func (o PolicyVMBackupPtrOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyVMInput
- type PolicyVMMap
- type PolicyVMMapInput
- type PolicyVMMapOutput
- type PolicyVMOutput
- type PolicyVMRetentionDaily
- type PolicyVMRetentionDailyArgs
- func (PolicyVMRetentionDailyArgs) ElementType() reflect.Type
- func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutput() PolicyVMRetentionDailyOutput
- func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutputWithContext(ctx context.Context) PolicyVMRetentionDailyOutput
- func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
- func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
- type PolicyVMRetentionDailyInput
- type PolicyVMRetentionDailyOutput
- func (o PolicyVMRetentionDailyOutput) Count() pulumi.IntOutput
- func (PolicyVMRetentionDailyOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutput() PolicyVMRetentionDailyOutput
- func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutputWithContext(ctx context.Context) PolicyVMRetentionDailyOutput
- func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
- func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
- type PolicyVMRetentionDailyPtrInput
- type PolicyVMRetentionDailyPtrOutput
- func (o PolicyVMRetentionDailyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyVMRetentionDailyPtrOutput) Elem() PolicyVMRetentionDailyOutput
- func (PolicyVMRetentionDailyPtrOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
- func (o PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
- type PolicyVMRetentionMonthly
- type PolicyVMRetentionMonthlyArgs
- func (PolicyVMRetentionMonthlyArgs) ElementType() reflect.Type
- func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutput() PolicyVMRetentionMonthlyOutput
- func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyOutput
- func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
- func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
- type PolicyVMRetentionMonthlyInput
- type PolicyVMRetentionMonthlyOutput
- func (o PolicyVMRetentionMonthlyOutput) Count() pulumi.IntOutput
- func (PolicyVMRetentionMonthlyOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutput() PolicyVMRetentionMonthlyOutput
- func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyOutput
- func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
- func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
- func (o PolicyVMRetentionMonthlyOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyVMRetentionMonthlyOutput) Weeks() pulumi.StringArrayOutput
- type PolicyVMRetentionMonthlyPtrInput
- type PolicyVMRetentionMonthlyPtrOutput
- func (o PolicyVMRetentionMonthlyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyVMRetentionMonthlyPtrOutput) Elem() PolicyVMRetentionMonthlyOutput
- func (PolicyVMRetentionMonthlyPtrOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
- func (o PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
- func (o PolicyVMRetentionMonthlyPtrOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyVMRetentionMonthlyPtrOutput) Weeks() pulumi.StringArrayOutput
- type PolicyVMRetentionWeekly
- type PolicyVMRetentionWeeklyArgs
- func (PolicyVMRetentionWeeklyArgs) ElementType() reflect.Type
- func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutput() PolicyVMRetentionWeeklyOutput
- func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyOutput
- func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
- func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
- type PolicyVMRetentionWeeklyInput
- type PolicyVMRetentionWeeklyOutput
- func (o PolicyVMRetentionWeeklyOutput) Count() pulumi.IntOutput
- func (PolicyVMRetentionWeeklyOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutput() PolicyVMRetentionWeeklyOutput
- func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyOutput
- func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
- func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
- func (o PolicyVMRetentionWeeklyOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyVMRetentionWeeklyPtrInput
- type PolicyVMRetentionWeeklyPtrOutput
- func (o PolicyVMRetentionWeeklyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyVMRetentionWeeklyPtrOutput) Elem() PolicyVMRetentionWeeklyOutput
- func (PolicyVMRetentionWeeklyPtrOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
- func (o PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
- func (o PolicyVMRetentionWeeklyPtrOutput) Weekdays() pulumi.StringArrayOutput
- type PolicyVMRetentionYearly
- type PolicyVMRetentionYearlyArgs
- func (PolicyVMRetentionYearlyArgs) ElementType() reflect.Type
- func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutput() PolicyVMRetentionYearlyOutput
- func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyOutput
- func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
- func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
- type PolicyVMRetentionYearlyInput
- type PolicyVMRetentionYearlyOutput
- func (o PolicyVMRetentionYearlyOutput) Count() pulumi.IntOutput
- func (PolicyVMRetentionYearlyOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionYearlyOutput) Months() pulumi.StringArrayOutput
- func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutput() PolicyVMRetentionYearlyOutput
- func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyOutput
- func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
- func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
- func (o PolicyVMRetentionYearlyOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyVMRetentionYearlyOutput) Weeks() pulumi.StringArrayOutput
- type PolicyVMRetentionYearlyPtrInput
- type PolicyVMRetentionYearlyPtrOutput
- func (o PolicyVMRetentionYearlyPtrOutput) Count() pulumi.IntPtrOutput
- func (o PolicyVMRetentionYearlyPtrOutput) Elem() PolicyVMRetentionYearlyOutput
- func (PolicyVMRetentionYearlyPtrOutput) ElementType() reflect.Type
- func (o PolicyVMRetentionYearlyPtrOutput) Months() pulumi.StringArrayOutput
- func (o PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
- func (o PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
- func (o PolicyVMRetentionYearlyPtrOutput) Weekdays() pulumi.StringArrayOutput
- func (o PolicyVMRetentionYearlyPtrOutput) Weeks() pulumi.StringArrayOutput
- type PolicyVMState
- type ProtectedFileShare
- type ProtectedFileShareArgs
- type ProtectedFileShareArray
- type ProtectedFileShareArrayInput
- type ProtectedFileShareArrayOutput
- func (ProtectedFileShareArrayOutput) ElementType() reflect.Type
- func (o ProtectedFileShareArrayOutput) Index(i pulumi.IntInput) ProtectedFileShareOutput
- func (o ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutput() ProtectedFileShareArrayOutput
- func (o ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutputWithContext(ctx context.Context) ProtectedFileShareArrayOutput
- type ProtectedFileShareInput
- type ProtectedFileShareMap
- type ProtectedFileShareMapInput
- type ProtectedFileShareMapOutput
- func (ProtectedFileShareMapOutput) ElementType() reflect.Type
- func (o ProtectedFileShareMapOutput) MapIndex(k pulumi.StringInput) ProtectedFileShareOutput
- func (o ProtectedFileShareMapOutput) ToProtectedFileShareMapOutput() ProtectedFileShareMapOutput
- func (o ProtectedFileShareMapOutput) ToProtectedFileShareMapOutputWithContext(ctx context.Context) ProtectedFileShareMapOutput
- type ProtectedFileShareOutput
- type ProtectedFileShareState
- type ProtectedVM
- type ProtectedVMArgs
- type ProtectedVMArray
- type ProtectedVMArrayInput
- type ProtectedVMArrayOutput
- func (ProtectedVMArrayOutput) ElementType() reflect.Type
- func (o ProtectedVMArrayOutput) Index(i pulumi.IntInput) ProtectedVMOutput
- func (o ProtectedVMArrayOutput) ToProtectedVMArrayOutput() ProtectedVMArrayOutput
- func (o ProtectedVMArrayOutput) ToProtectedVMArrayOutputWithContext(ctx context.Context) ProtectedVMArrayOutput
- type ProtectedVMInput
- type ProtectedVMMap
- type ProtectedVMMapInput
- type ProtectedVMMapOutput
- func (ProtectedVMMapOutput) ElementType() reflect.Type
- func (o ProtectedVMMapOutput) MapIndex(k pulumi.StringInput) ProtectedVMOutput
- func (o ProtectedVMMapOutput) ToProtectedVMMapOutput() ProtectedVMMapOutput
- func (o ProtectedVMMapOutput) ToProtectedVMMapOutputWithContext(ctx context.Context) ProtectedVMMapOutput
- type ProtectedVMOutput
- type ProtectedVMState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerStorageAccount ¶
type ContainerStorageAccount struct { pulumi.CustomResourceState // The name of the vault where the storage account will be registered. RecoveryVaultName pulumi.StringOutput `pulumi:"recoveryVaultName"` // Name of the resource group where the vault is located. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The ID of the Storage Account to be registered StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"` }
Manages registration of a storage account with Azure Backup. Storage accounts must be registered with an Azure Recovery Vault in order to backup file shares within the storage account. Registering a storage account with a vault creates what is known as a protection container within Azure Recovery Services. Once the container is created, Azure file shares within the storage account can be backed up using the `backup.ProtectedFileShare` resource.
> **NOTE:** Azure Backup for Azure File Shares is currently in public preview. During the preview, the service is subject to additional limitations and unsupported backup scenarios. [Read More](https://docs.microsoft.com/en-us/azure/backup/backup-azure-files#limitations-for-azure-file-share-backup-during-preview)
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/recoveryservices" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } vault, err := recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{ Location: rg.Location, ResourceGroupName: rg.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } sa, err := storage.NewAccount(ctx, "sa", &storage.AccountArgs{ Location: rg.Location, ResourceGroupName: rg.Name, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), }) if err != nil { return err } _, err = backup.NewContainerStorageAccount(ctx, "container", &backup.ContainerStorageAccountArgs{ ResourceGroupName: rg.Name, RecoveryVaultName: vault.Name, StorageAccountId: sa.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Backup Storage Account Containers can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:backup/containerStorageAccount:ContainerStorageAccount mycontainer "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/backupFabrics/Azure/protectionContainers/StorageContainer;storage;storage-rg-name;storage-account"
```
Note the ID requires quoting as there are semicolons
func GetContainerStorageAccount ¶
func GetContainerStorageAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ContainerStorageAccountState, opts ...pulumi.ResourceOption) (*ContainerStorageAccount, error)
GetContainerStorageAccount gets an existing ContainerStorageAccount resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewContainerStorageAccount ¶
func NewContainerStorageAccount(ctx *pulumi.Context, name string, args *ContainerStorageAccountArgs, opts ...pulumi.ResourceOption) (*ContainerStorageAccount, error)
NewContainerStorageAccount registers a new resource with the given unique name, arguments, and options.
func (*ContainerStorageAccount) ElementType ¶
func (*ContainerStorageAccount) ElementType() reflect.Type
func (*ContainerStorageAccount) ToContainerStorageAccountOutput ¶
func (i *ContainerStorageAccount) ToContainerStorageAccountOutput() ContainerStorageAccountOutput
func (*ContainerStorageAccount) ToContainerStorageAccountOutputWithContext ¶
func (i *ContainerStorageAccount) ToContainerStorageAccountOutputWithContext(ctx context.Context) ContainerStorageAccountOutput
type ContainerStorageAccountArgs ¶
type ContainerStorageAccountArgs struct { // The name of the vault where the storage account will be registered. RecoveryVaultName pulumi.StringInput // Name of the resource group where the vault is located. ResourceGroupName pulumi.StringInput // The ID of the Storage Account to be registered StorageAccountId pulumi.StringInput }
The set of arguments for constructing a ContainerStorageAccount resource.
func (ContainerStorageAccountArgs) ElementType ¶
func (ContainerStorageAccountArgs) ElementType() reflect.Type
type ContainerStorageAccountArray ¶
type ContainerStorageAccountArray []ContainerStorageAccountInput
func (ContainerStorageAccountArray) ElementType ¶
func (ContainerStorageAccountArray) ElementType() reflect.Type
func (ContainerStorageAccountArray) ToContainerStorageAccountArrayOutput ¶
func (i ContainerStorageAccountArray) ToContainerStorageAccountArrayOutput() ContainerStorageAccountArrayOutput
func (ContainerStorageAccountArray) ToContainerStorageAccountArrayOutputWithContext ¶
func (i ContainerStorageAccountArray) ToContainerStorageAccountArrayOutputWithContext(ctx context.Context) ContainerStorageAccountArrayOutput
type ContainerStorageAccountArrayInput ¶
type ContainerStorageAccountArrayInput interface { pulumi.Input ToContainerStorageAccountArrayOutput() ContainerStorageAccountArrayOutput ToContainerStorageAccountArrayOutputWithContext(context.Context) ContainerStorageAccountArrayOutput }
ContainerStorageAccountArrayInput is an input type that accepts ContainerStorageAccountArray and ContainerStorageAccountArrayOutput values. You can construct a concrete instance of `ContainerStorageAccountArrayInput` via:
ContainerStorageAccountArray{ ContainerStorageAccountArgs{...} }
type ContainerStorageAccountArrayOutput ¶
type ContainerStorageAccountArrayOutput struct{ *pulumi.OutputState }
func (ContainerStorageAccountArrayOutput) ElementType ¶
func (ContainerStorageAccountArrayOutput) ElementType() reflect.Type
func (ContainerStorageAccountArrayOutput) Index ¶
func (o ContainerStorageAccountArrayOutput) Index(i pulumi.IntInput) ContainerStorageAccountOutput
func (ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutput ¶
func (o ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutput() ContainerStorageAccountArrayOutput
func (ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutputWithContext ¶
func (o ContainerStorageAccountArrayOutput) ToContainerStorageAccountArrayOutputWithContext(ctx context.Context) ContainerStorageAccountArrayOutput
type ContainerStorageAccountInput ¶
type ContainerStorageAccountInput interface { pulumi.Input ToContainerStorageAccountOutput() ContainerStorageAccountOutput ToContainerStorageAccountOutputWithContext(ctx context.Context) ContainerStorageAccountOutput }
type ContainerStorageAccountMap ¶
type ContainerStorageAccountMap map[string]ContainerStorageAccountInput
func (ContainerStorageAccountMap) ElementType ¶
func (ContainerStorageAccountMap) ElementType() reflect.Type
func (ContainerStorageAccountMap) ToContainerStorageAccountMapOutput ¶
func (i ContainerStorageAccountMap) ToContainerStorageAccountMapOutput() ContainerStorageAccountMapOutput
func (ContainerStorageAccountMap) ToContainerStorageAccountMapOutputWithContext ¶
func (i ContainerStorageAccountMap) ToContainerStorageAccountMapOutputWithContext(ctx context.Context) ContainerStorageAccountMapOutput
type ContainerStorageAccountMapInput ¶
type ContainerStorageAccountMapInput interface { pulumi.Input ToContainerStorageAccountMapOutput() ContainerStorageAccountMapOutput ToContainerStorageAccountMapOutputWithContext(context.Context) ContainerStorageAccountMapOutput }
ContainerStorageAccountMapInput is an input type that accepts ContainerStorageAccountMap and ContainerStorageAccountMapOutput values. You can construct a concrete instance of `ContainerStorageAccountMapInput` via:
ContainerStorageAccountMap{ "key": ContainerStorageAccountArgs{...} }
type ContainerStorageAccountMapOutput ¶
type ContainerStorageAccountMapOutput struct{ *pulumi.OutputState }
func (ContainerStorageAccountMapOutput) ElementType ¶
func (ContainerStorageAccountMapOutput) ElementType() reflect.Type
func (ContainerStorageAccountMapOutput) MapIndex ¶
func (o ContainerStorageAccountMapOutput) MapIndex(k pulumi.StringInput) ContainerStorageAccountOutput
func (ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutput ¶
func (o ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutput() ContainerStorageAccountMapOutput
func (ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutputWithContext ¶
func (o ContainerStorageAccountMapOutput) ToContainerStorageAccountMapOutputWithContext(ctx context.Context) ContainerStorageAccountMapOutput
type ContainerStorageAccountOutput ¶
type ContainerStorageAccountOutput struct{ *pulumi.OutputState }
func (ContainerStorageAccountOutput) ElementType ¶
func (ContainerStorageAccountOutput) ElementType() reflect.Type
func (ContainerStorageAccountOutput) ToContainerStorageAccountOutput ¶
func (o ContainerStorageAccountOutput) ToContainerStorageAccountOutput() ContainerStorageAccountOutput
func (ContainerStorageAccountOutput) ToContainerStorageAccountOutputWithContext ¶
func (o ContainerStorageAccountOutput) ToContainerStorageAccountOutputWithContext(ctx context.Context) ContainerStorageAccountOutput
type ContainerStorageAccountState ¶
type ContainerStorageAccountState struct { // The name of the vault where the storage account will be registered. RecoveryVaultName pulumi.StringPtrInput // Name of the resource group where the vault is located. ResourceGroupName pulumi.StringPtrInput // The ID of the Storage Account to be registered StorageAccountId pulumi.StringPtrInput }
func (ContainerStorageAccountState) ElementType ¶
func (ContainerStorageAccountState) ElementType() reflect.Type
type GetPolicyFileshareArgs ¶ added in v4.22.0
type GetPolicyFileshareArgs struct { string `pulumi:"name"` RecoveryVaultName string `pulumi:"recoveryVaultName"` ResourceGroupName string `pulumi:"resourceGroupName"` }Name
A collection of arguments for invoking getPolicyFileshare.
type GetPolicyFileshareOutputArgs ¶ added in v4.22.0
type GetPolicyFileshareOutputArgs struct { pulumi.StringInput `pulumi:"name"` RecoveryVaultName pulumi.StringInput `pulumi:"recoveryVaultName"` ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }Name
A collection of arguments for invoking getPolicyFileshare.
func (GetPolicyFileshareOutputArgs) ElementType ¶ added in v4.22.0
func (GetPolicyFileshareOutputArgs) ElementType() reflect.Type
type GetPolicyFileshareResult ¶ added in v4.22.0
type GetPolicyFileshareResult struct { // The provider-assigned unique ID for this managed resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getPolicyFileshare.
func GetPolicyFileshare ¶ added in v4.22.0
func GetPolicyFileshare(ctx *pulumi.Context, args *GetPolicyFileshareArgs, opts ...pulumi.InvokeOption) (*GetPolicyFileshareResult, error)
Use this data source to access information about an existing File Share Backup Policy.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := backup.GetPolicyFileshare(ctx, &backup.GetPolicyFileshareArgs{ Name: "policy", RecoveryVaultName: "recovery_vault", ResourceGroupName: "resource_group", }, nil) if err != nil { return err } return nil }) }
```
type GetPolicyFileshareResultOutput ¶ added in v4.22.0
A collection of values returned by getPolicyFileshare.
func GetPolicyFileshareOutput ¶ added in v4.22.0
func GetPolicyFileshareOutput(ctx *pulumi.Context, args GetPolicyFileshareOutputArgs, opts ...pulumi.InvokeOption) GetPolicyFileshareResultOutput
func (GetPolicyFileshareResultOutput) ElementType ¶ added in v4.22.0
func (GetPolicyFileshareResultOutput) ElementType() reflect.Type
func (GetPolicyFileshareResultOutput) Id ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPolicyFileshareResultOutput) Name ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) Name() pulumi.StringOutput
func (GetPolicyFileshareResultOutput) RecoveryVaultName ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) RecoveryVaultName() pulumi.StringOutput
func (GetPolicyFileshareResultOutput) ResourceGroupName ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) ResourceGroupName() pulumi.StringOutput
func (GetPolicyFileshareResultOutput) Tags ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutput ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutput() GetPolicyFileshareResultOutput
func (GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutputWithContext ¶ added in v4.22.0
func (o GetPolicyFileshareResultOutput) ToGetPolicyFileshareResultOutputWithContext(ctx context.Context) GetPolicyFileshareResultOutput
type LookupPolicyVMArgs ¶
type LookupPolicyVMArgs struct { // Specifies the name of the VM Backup Policy. Name string `pulumi:"name"` // Specifies the name of the Recovery Services Vault. RecoveryVaultName string `pulumi:"recoveryVaultName"` // The name of the resource group in which the VM Backup Policy resides. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getPolicyVM.
type LookupPolicyVMOutputArgs ¶ added in v4.20.0
type LookupPolicyVMOutputArgs struct { // Specifies the name of the VM Backup Policy. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Recovery Services Vault. RecoveryVaultName pulumi.StringInput `pulumi:"recoveryVaultName"` // The name of the resource group in which the VM Backup Policy resides. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getPolicyVM.
func (LookupPolicyVMOutputArgs) ElementType ¶ added in v4.20.0
func (LookupPolicyVMOutputArgs) ElementType() reflect.Type
type LookupPolicyVMResult ¶
type LookupPolicyVMResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` RecoveryVaultName string `pulumi:"recoveryVaultName"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getPolicyVM.
func LookupPolicyVM ¶
func LookupPolicyVM(ctx *pulumi.Context, args *LookupPolicyVMArgs, opts ...pulumi.InvokeOption) (*LookupPolicyVMResult, error)
Use this data source to access information about an existing VM Backup Policy.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := backup.LookupPolicyVM(ctx, &backup.LookupPolicyVMArgs{ Name: "policy", RecoveryVaultName: "recovery_vault", ResourceGroupName: "resource_group", }, nil) if err != nil { return err } return nil }) }
```
type LookupPolicyVMResultOutput ¶ added in v4.20.0
type LookupPolicyVMResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPolicyVM.
func LookupPolicyVMOutput ¶ added in v4.20.0
func LookupPolicyVMOutput(ctx *pulumi.Context, args LookupPolicyVMOutputArgs, opts ...pulumi.InvokeOption) LookupPolicyVMResultOutput
func (LookupPolicyVMResultOutput) ElementType ¶ added in v4.20.0
func (LookupPolicyVMResultOutput) ElementType() reflect.Type
func (LookupPolicyVMResultOutput) Id ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupPolicyVMResultOutput) Name ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) Name() pulumi.StringOutput
func (LookupPolicyVMResultOutput) RecoveryVaultName ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) RecoveryVaultName() pulumi.StringOutput
func (LookupPolicyVMResultOutput) ResourceGroupName ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupPolicyVMResultOutput) Tags ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutput ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutput() LookupPolicyVMResultOutput
func (LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutputWithContext ¶ added in v4.20.0
func (o LookupPolicyVMResultOutput) ToLookupPolicyVMResultOutputWithContext(ctx context.Context) LookupPolicyVMResultOutput
type PolicyFileShare ¶
type PolicyFileShare struct { PolicyFileShareBackupOutput `pulumi:"backup"` Name pulumi.StringOutput `pulumi:"name"` RecoveryVaultName pulumi.StringOutput `pulumi:"recoveryVaultName"` ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` RetentionDaily PolicyFileShareRetentionDailyOutput `pulumi:"retentionDaily"` RetentionMonthly PolicyFileShareRetentionMonthlyPtrOutput `pulumi:"retentionMonthly"` RetentionWeekly PolicyFileShareRetentionWeeklyPtrOutput `pulumi:"retentionWeekly"` // Configures the policy yearly retention as documented in the `retentionYearly` block below. Timezone pulumi.StringPtrOutput `pulumi:"timezone"` }Backup
Manages an Azure File Share Backup Policy within a Recovery Services vault.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/recoveryservices" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = recoveryservices.NewVault(ctx, "exampleVault", &recoveryservices.VaultArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } _, err = backup.NewPolicyFileShare(ctx, "policy", &backup.PolicyFileShareArgs{ ResourceGroupName: exampleResourceGroup.Name, RecoveryVaultName: pulumi.Any(azurerm_recovery_services_vault.Vault.Name), Timezone: pulumi.String("UTC"), Backup: &backup.PolicyFileShareBackupArgs{ Frequency: pulumi.String("Daily"), Time: pulumi.String("23:00"), }, RetentionDaily: &backup.PolicyFileShareRetentionDailyArgs{ Count: pulumi.Int(10), }, RetentionWeekly: &backup.PolicyFileShareRetentionWeeklyArgs{ Count: pulumi.Int(7), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), pulumi.String("Wednesday"), pulumi.String("Friday"), pulumi.String("Saturday"), }, }, RetentionMonthly: &backup.PolicyFileShareRetentionMonthlyArgs{ Count: pulumi.Int(7), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), pulumi.String("Wednesday"), }, Weeks: pulumi.StringArray{ pulumi.String("First"), pulumi.String("Last"), }, }, RetentionYearly: &backup.PolicyFileShareRetentionYearlyArgs{ Count: pulumi.Int(7), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), }, Weeks: pulumi.StringArray{ pulumi.String("Last"), }, Months: pulumi.StringArray{ pulumi.String("January"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Azure File Share Backup Policies can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:backup/policyFileShare:PolicyFileShare policy1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/example-recovery-vault/backupPolicies/policy1
```
func GetPolicyFileShare ¶
func GetPolicyFileShare(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyFileShareState, opts ...pulumi.ResourceOption) (*PolicyFileShare, error)
GetPolicyFileShare gets an existing PolicyFileShare resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPolicyFileShare ¶
func NewPolicyFileShare(ctx *pulumi.Context, name string, args *PolicyFileShareArgs, opts ...pulumi.ResourceOption) (*PolicyFileShare, error)
NewPolicyFileShare registers a new resource with the given unique name, arguments, and options.
func (*PolicyFileShare) ElementType ¶
func (*PolicyFileShare) ElementType() reflect.Type
func (*PolicyFileShare) ToPolicyFileShareOutput ¶
func (i *PolicyFileShare) ToPolicyFileShareOutput() PolicyFileShareOutput
func (*PolicyFileShare) ToPolicyFileShareOutputWithContext ¶
func (i *PolicyFileShare) ToPolicyFileShareOutputWithContext(ctx context.Context) PolicyFileShareOutput
type PolicyFileShareArgs ¶
type PolicyFileShareArgs struct { PolicyFileShareBackupInput Name pulumi.StringPtrInput RecoveryVaultName pulumi.StringInput ResourceGroupName pulumi.StringInput RetentionDaily PolicyFileShareRetentionDailyInput RetentionMonthly PolicyFileShareRetentionMonthlyPtrInput RetentionWeekly PolicyFileShareRetentionWeeklyPtrInput // Configures the policy yearly retention as documented in the `retentionYearly` block below. Timezone pulumi.StringPtrInput }Backup
The set of arguments for constructing a PolicyFileShare resource.
func (PolicyFileShareArgs) ElementType ¶
func (PolicyFileShareArgs) ElementType() reflect.Type
type PolicyFileShareArray ¶
type PolicyFileShareArray []PolicyFileShareInput
func (PolicyFileShareArray) ElementType ¶
func (PolicyFileShareArray) ElementType() reflect.Type
func (PolicyFileShareArray) ToPolicyFileShareArrayOutput ¶
func (i PolicyFileShareArray) ToPolicyFileShareArrayOutput() PolicyFileShareArrayOutput
func (PolicyFileShareArray) ToPolicyFileShareArrayOutputWithContext ¶
func (i PolicyFileShareArray) ToPolicyFileShareArrayOutputWithContext(ctx context.Context) PolicyFileShareArrayOutput
type PolicyFileShareArrayInput ¶
PolicyFileShareArrayInput is an input type that accepts PolicyFileShareArray and PolicyFileShareArrayOutput values. You can construct a concrete instance of `PolicyFileShareArrayInput` via:
PolicyFileShareArray{ PolicyFileShareArgs{...} }
type PolicyFileShareArrayOutput ¶
func (PolicyFileShareArrayOutput) ElementType ¶
func (PolicyFileShareArrayOutput) ElementType() reflect.Type
func (PolicyFileShareArrayOutput) Index ¶
func (o PolicyFileShareArrayOutput) Index(i pulumi.IntInput) PolicyFileShareOutput
func (PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutput ¶
func (o PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutput() PolicyFileShareArrayOutput
func (PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutputWithContext ¶
func (o PolicyFileShareArrayOutput) ToPolicyFileShareArrayOutputWithContext(ctx context.Context) PolicyFileShareArrayOutput
type PolicyFileShareBackup ¶
type PolicyFileShareBackupArgs ¶
type PolicyFileShareBackupArgs struct { pulumi.StringInput `pulumi:"frequency"` Time pulumi.StringInput `pulumi:"time"` }Frequency
func (PolicyFileShareBackupArgs) ElementType ¶
func (PolicyFileShareBackupArgs) ElementType() reflect.Type
func (PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutput ¶
func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutput() PolicyFileShareBackupOutput
func (PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutputWithContext ¶
func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupOutputWithContext(ctx context.Context) PolicyFileShareBackupOutput
func (PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutput ¶
func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
func (PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutputWithContext ¶
func (i PolicyFileShareBackupArgs) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
type PolicyFileShareBackupInput ¶
PolicyFileShareBackupInput is an input type that accepts PolicyFileShareBackupArgs and PolicyFileShareBackupOutput values. You can construct a concrete instance of `PolicyFileShareBackupInput` via:
PolicyFileShareBackupArgs{...}
type PolicyFileShareBackupOutput ¶
func (PolicyFileShareBackupOutput) ElementType ¶
func (PolicyFileShareBackupOutput) ElementType() reflect.Type
func (PolicyFileShareBackupOutput) Frequency ¶
func (o PolicyFileShareBackupOutput) Frequency() pulumi.StringOutput
Sets the backup frequency. Currently, only `Daily` is supported
func (PolicyFileShareBackupOutput) Time ¶
func (o PolicyFileShareBackupOutput) Time() pulumi.StringOutput
The time of day to perform the backup in 24-hour format. Times must be either on the hour or half hour (e.g. 12:00, 12:30, 13:00, etc.)
func (PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutput ¶
func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutput() PolicyFileShareBackupOutput
func (PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutputWithContext ¶
func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupOutputWithContext(ctx context.Context) PolicyFileShareBackupOutput
func (PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutput ¶
func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
func (PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutputWithContext ¶
func (o PolicyFileShareBackupOutput) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
type PolicyFileShareBackupPtrInput ¶
PolicyFileShareBackupPtrInput is an input type that accepts PolicyFileShareBackupArgs, PolicyFileShareBackupPtr and PolicyFileShareBackupPtrOutput values. You can construct a concrete instance of `PolicyFileShareBackupPtrInput` via:
PolicyFileShareBackupArgs{...} or: nil
func PolicyFileShareBackupPtr ¶
func PolicyFileShareBackupPtr(v *PolicyFileShareBackupArgs) PolicyFileShareBackupPtrInput
type PolicyFileShareBackupPtrOutput ¶
func (PolicyFileShareBackupPtrOutput) Elem ¶
func (o PolicyFileShareBackupPtrOutput) Elem() PolicyFileShareBackupOutput
func (PolicyFileShareBackupPtrOutput) ElementType ¶
func (PolicyFileShareBackupPtrOutput) ElementType() reflect.Type
func (PolicyFileShareBackupPtrOutput) Frequency ¶
func (o PolicyFileShareBackupPtrOutput) Frequency() pulumi.StringPtrOutput
Sets the backup frequency. Currently, only `Daily` is supported
func (PolicyFileShareBackupPtrOutput) Time ¶
func (o PolicyFileShareBackupPtrOutput) Time() pulumi.StringPtrOutput
The time of day to perform the backup in 24-hour format. Times must be either on the hour or half hour (e.g. 12:00, 12:30, 13:00, etc.)
func (PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutput ¶
func (o PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutput() PolicyFileShareBackupPtrOutput
func (PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutputWithContext ¶
func (o PolicyFileShareBackupPtrOutput) ToPolicyFileShareBackupPtrOutputWithContext(ctx context.Context) PolicyFileShareBackupPtrOutput
type PolicyFileShareInput ¶
type PolicyFileShareMap ¶
type PolicyFileShareMap map[string]PolicyFileShareInput
func (PolicyFileShareMap) ElementType ¶
func (PolicyFileShareMap) ElementType() reflect.Type
func (PolicyFileShareMap) ToPolicyFileShareMapOutput ¶
func (i PolicyFileShareMap) ToPolicyFileShareMapOutput() PolicyFileShareMapOutput
func (PolicyFileShareMap) ToPolicyFileShareMapOutputWithContext ¶
func (i PolicyFileShareMap) ToPolicyFileShareMapOutputWithContext(ctx context.Context) PolicyFileShareMapOutput
type PolicyFileShareMapInput ¶
PolicyFileShareMapInput is an input type that accepts PolicyFileShareMap and PolicyFileShareMapOutput values. You can construct a concrete instance of `PolicyFileShareMapInput` via:
PolicyFileShareMap{ "key": PolicyFileShareArgs{...} }
type PolicyFileShareMapOutput ¶
func (PolicyFileShareMapOutput) ElementType ¶
func (PolicyFileShareMapOutput) ElementType() reflect.Type
func (PolicyFileShareMapOutput) MapIndex ¶
func (o PolicyFileShareMapOutput) MapIndex(k pulumi.StringInput) PolicyFileShareOutput
func (PolicyFileShareMapOutput) ToPolicyFileShareMapOutput ¶
func (o PolicyFileShareMapOutput) ToPolicyFileShareMapOutput() PolicyFileShareMapOutput
func (PolicyFileShareMapOutput) ToPolicyFileShareMapOutputWithContext ¶
func (o PolicyFileShareMapOutput) ToPolicyFileShareMapOutputWithContext(ctx context.Context) PolicyFileShareMapOutput
type PolicyFileShareOutput ¶
func (PolicyFileShareOutput) ElementType ¶
func (PolicyFileShareOutput) ElementType() reflect.Type
func (PolicyFileShareOutput) ToPolicyFileShareOutput ¶
func (o PolicyFileShareOutput) ToPolicyFileShareOutput() PolicyFileShareOutput
func (PolicyFileShareOutput) ToPolicyFileShareOutputWithContext ¶
func (o PolicyFileShareOutput) ToPolicyFileShareOutputWithContext(ctx context.Context) PolicyFileShareOutput
type PolicyFileShareRetentionDaily ¶
type PolicyFileShareRetentionDaily struct { int `pulumi:"count"` }Count
type PolicyFileShareRetentionDailyArgs ¶
func (PolicyFileShareRetentionDailyArgs) ElementType ¶
func (PolicyFileShareRetentionDailyArgs) ElementType() reflect.Type
func (PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutput ¶
func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutput() PolicyFileShareRetentionDailyOutput
func (PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutputWithContext ¶
func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyOutput
func (PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutput ¶
func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
func (PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutputWithContext ¶
func (i PolicyFileShareRetentionDailyArgs) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
type PolicyFileShareRetentionDailyInput ¶
PolicyFileShareRetentionDailyInput is an input type that accepts PolicyFileShareRetentionDailyArgs and PolicyFileShareRetentionDailyOutput values. You can construct a concrete instance of `PolicyFileShareRetentionDailyInput` via:
PolicyFileShareRetentionDailyArgs{...}
type PolicyFileShareRetentionDailyOutput ¶
func (PolicyFileShareRetentionDailyOutput) Count ¶
func (o PolicyFileShareRetentionDailyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionDailyOutput) ElementType ¶
func (PolicyFileShareRetentionDailyOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutput ¶
func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutput() PolicyFileShareRetentionDailyOutput
func (PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutputWithContext ¶
func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyOutput
func (PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutput ¶
func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
func (PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext ¶
func (o PolicyFileShareRetentionDailyOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
type PolicyFileShareRetentionDailyPtrInput ¶
PolicyFileShareRetentionDailyPtrInput is an input type that accepts PolicyFileShareRetentionDailyArgs, PolicyFileShareRetentionDailyPtr and PolicyFileShareRetentionDailyPtrOutput values. You can construct a concrete instance of `PolicyFileShareRetentionDailyPtrInput` via:
PolicyFileShareRetentionDailyArgs{...} or: nil
func PolicyFileShareRetentionDailyPtr ¶
func PolicyFileShareRetentionDailyPtr(v *PolicyFileShareRetentionDailyArgs) PolicyFileShareRetentionDailyPtrInput
type PolicyFileShareRetentionDailyPtrOutput ¶
func (PolicyFileShareRetentionDailyPtrOutput) Count ¶
func (o PolicyFileShareRetentionDailyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionDailyPtrOutput) ElementType ¶
func (PolicyFileShareRetentionDailyPtrOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutput ¶
func (o PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutput() PolicyFileShareRetentionDailyPtrOutput
func (PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext ¶
func (o PolicyFileShareRetentionDailyPtrOutput) ToPolicyFileShareRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionDailyPtrOutput
type PolicyFileShareRetentionMonthly ¶ added in v4.1.0
type PolicyFileShareRetentionMonthlyArgs ¶ added in v4.1.0
type PolicyFileShareRetentionMonthlyArgs struct { pulumi.IntInput `pulumi:"count"` Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` Weeks pulumi.StringArrayInput `pulumi:"weeks"` }Count
func (PolicyFileShareRetentionMonthlyArgs) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionMonthlyArgs) ElementType() reflect.Type
func (PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutput() PolicyFileShareRetentionMonthlyOutput
func (PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyOutput
func (PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
func (PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionMonthlyArgs) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
type PolicyFileShareRetentionMonthlyInput ¶ added in v4.1.0
PolicyFileShareRetentionMonthlyInput is an input type that accepts PolicyFileShareRetentionMonthlyArgs and PolicyFileShareRetentionMonthlyOutput values. You can construct a concrete instance of `PolicyFileShareRetentionMonthlyInput` via:
PolicyFileShareRetentionMonthlyArgs{...}
type PolicyFileShareRetentionMonthlyOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionMonthlyOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionMonthlyOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionMonthlyOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutput() PolicyFileShareRetentionMonthlyOutput
func (PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyOutput
func (PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
func (PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
func (PolicyFileShareRetentionMonthlyOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyFileShareRetentionMonthlyOutput) Weeks ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyFileShareRetentionMonthlyPtrInput ¶ added in v4.1.0
PolicyFileShareRetentionMonthlyPtrInput is an input type that accepts PolicyFileShareRetentionMonthlyArgs, PolicyFileShareRetentionMonthlyPtr and PolicyFileShareRetentionMonthlyPtrOutput values. You can construct a concrete instance of `PolicyFileShareRetentionMonthlyPtrInput` via:
PolicyFileShareRetentionMonthlyArgs{...} or: nil
func PolicyFileShareRetentionMonthlyPtr ¶ added in v4.1.0
func PolicyFileShareRetentionMonthlyPtr(v *PolicyFileShareRetentionMonthlyArgs) PolicyFileShareRetentionMonthlyPtrInput
type PolicyFileShareRetentionMonthlyPtrOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionMonthlyPtrOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionMonthlyPtrOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionMonthlyPtrOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutput() PolicyFileShareRetentionMonthlyPtrOutput
func (PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyPtrOutput) ToPolicyFileShareRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionMonthlyPtrOutput
func (PolicyFileShareRetentionMonthlyPtrOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyFileShareRetentionMonthlyPtrOutput) Weeks ¶ added in v4.1.0
func (o PolicyFileShareRetentionMonthlyPtrOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyFileShareRetentionWeekly ¶ added in v4.1.0
type PolicyFileShareRetentionWeeklyArgs ¶ added in v4.1.0
type PolicyFileShareRetentionWeeklyArgs struct { pulumi.IntInput `pulumi:"count"` Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` }Count
func (PolicyFileShareRetentionWeeklyArgs) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionWeeklyArgs) ElementType() reflect.Type
func (PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutput() PolicyFileShareRetentionWeeklyOutput
func (PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyOutput
func (PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
func (PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionWeeklyArgs) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
type PolicyFileShareRetentionWeeklyInput ¶ added in v4.1.0
PolicyFileShareRetentionWeeklyInput is an input type that accepts PolicyFileShareRetentionWeeklyArgs and PolicyFileShareRetentionWeeklyOutput values. You can construct a concrete instance of `PolicyFileShareRetentionWeeklyInput` via:
PolicyFileShareRetentionWeeklyArgs{...}
type PolicyFileShareRetentionWeeklyOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionWeeklyOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionWeeklyOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionWeeklyOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutput() PolicyFileShareRetentionWeeklyOutput
func (PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyOutput
func (PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
func (PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
func (PolicyFileShareRetentionWeeklyOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyFileShareRetentionWeeklyPtrInput ¶ added in v4.1.0
PolicyFileShareRetentionWeeklyPtrInput is an input type that accepts PolicyFileShareRetentionWeeklyArgs, PolicyFileShareRetentionWeeklyPtr and PolicyFileShareRetentionWeeklyPtrOutput values. You can construct a concrete instance of `PolicyFileShareRetentionWeeklyPtrInput` via:
PolicyFileShareRetentionWeeklyArgs{...} or: nil
func PolicyFileShareRetentionWeeklyPtr ¶ added in v4.1.0
func PolicyFileShareRetentionWeeklyPtr(v *PolicyFileShareRetentionWeeklyArgs) PolicyFileShareRetentionWeeklyPtrInput
type PolicyFileShareRetentionWeeklyPtrOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionWeeklyPtrOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionWeeklyPtrOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionWeeklyPtrOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutput() PolicyFileShareRetentionWeeklyPtrOutput
func (PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyPtrOutput) ToPolicyFileShareRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionWeeklyPtrOutput
func (PolicyFileShareRetentionWeeklyPtrOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionWeeklyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyFileShareRetentionYearly ¶ added in v4.1.0
type PolicyFileShareRetentionYearlyArgs ¶ added in v4.1.0
type PolicyFileShareRetentionYearlyArgs struct { pulumi.IntInput `pulumi:"count"` Months pulumi.StringArrayInput `pulumi:"months"` Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` Weeks pulumi.StringArrayInput `pulumi:"weeks"` }Count
func (PolicyFileShareRetentionYearlyArgs) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionYearlyArgs) ElementType() reflect.Type
func (PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutput() PolicyFileShareRetentionYearlyOutput
func (PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyOutput
func (PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutput ¶ added in v4.1.0
func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
func (PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutputWithContext ¶ added in v4.1.0
func (i PolicyFileShareRetentionYearlyArgs) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
type PolicyFileShareRetentionYearlyInput ¶ added in v4.1.0
PolicyFileShareRetentionYearlyInput is an input type that accepts PolicyFileShareRetentionYearlyArgs and PolicyFileShareRetentionYearlyOutput values. You can construct a concrete instance of `PolicyFileShareRetentionYearlyInput` via:
PolicyFileShareRetentionYearlyArgs{...}
type PolicyFileShareRetentionYearlyOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionYearlyOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionYearlyOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionYearlyOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionYearlyOutput) Months ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) Months() pulumi.StringArrayOutput
The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `Augest`, `September`, `October`, `November` and `December`.
func (PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutput() PolicyFileShareRetentionYearlyOutput
func (PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyOutput
func (PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
func (PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
func (PolicyFileShareRetentionYearlyOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyFileShareRetentionYearlyOutput) Weeks ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyFileShareRetentionYearlyPtrInput ¶ added in v4.1.0
PolicyFileShareRetentionYearlyPtrInput is an input type that accepts PolicyFileShareRetentionYearlyArgs, PolicyFileShareRetentionYearlyPtr and PolicyFileShareRetentionYearlyPtrOutput values. You can construct a concrete instance of `PolicyFileShareRetentionYearlyPtrInput` via:
PolicyFileShareRetentionYearlyArgs{...} or: nil
func PolicyFileShareRetentionYearlyPtr ¶ added in v4.1.0
func PolicyFileShareRetentionYearlyPtr(v *PolicyFileShareRetentionYearlyArgs) PolicyFileShareRetentionYearlyPtrInput
type PolicyFileShareRetentionYearlyPtrOutput ¶ added in v4.1.0
func (PolicyFileShareRetentionYearlyPtrOutput) Count ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `10`
func (PolicyFileShareRetentionYearlyPtrOutput) ElementType ¶ added in v4.1.0
func (PolicyFileShareRetentionYearlyPtrOutput) ElementType() reflect.Type
func (PolicyFileShareRetentionYearlyPtrOutput) Months ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) Months() pulumi.StringArrayOutput
The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `Augest`, `September`, `October`, `November` and `December`.
func (PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutput ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutput() PolicyFileShareRetentionYearlyPtrOutput
func (PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) ToPolicyFileShareRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyFileShareRetentionYearlyPtrOutput
func (PolicyFileShareRetentionYearlyPtrOutput) Weekdays ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyFileShareRetentionYearlyPtrOutput) Weeks ¶ added in v4.1.0
func (o PolicyFileShareRetentionYearlyPtrOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyFileShareState ¶
type PolicyFileShareState struct { PolicyFileShareBackupPtrInput Name pulumi.StringPtrInput RecoveryVaultName pulumi.StringPtrInput ResourceGroupName pulumi.StringPtrInput RetentionDaily PolicyFileShareRetentionDailyPtrInput RetentionMonthly PolicyFileShareRetentionMonthlyPtrInput RetentionWeekly PolicyFileShareRetentionWeeklyPtrInput // Configures the policy yearly retention as documented in the `retentionYearly` block below. Timezone pulumi.StringPtrInput }Backup
func (PolicyFileShareState) ElementType ¶
func (PolicyFileShareState) ElementType() reflect.Type
type PolicyVM ¶
type PolicyVM struct { pulumi.CustomResourceState // Configures the Policy backup frequency, times & days as documented in the `backup` block below. Backup PolicyVMBackupOutput `pulumi:"backup"` // Specifies the instant restore retention range in days. InstantRestoreRetentionDays pulumi.IntOutput `pulumi:"instantRestoreRetentionDays"` // Specifies the name of the Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringOutput `pulumi:"recoveryVaultName"` // The name of the resource group in which to create the policy. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Configures the policy daily retention as documented in the `retentionDaily` block below. Required when backup frequency is `Daily`. RetentionDaily PolicyVMRetentionDailyPtrOutput `pulumi:"retentionDaily"` // Configures the policy monthly retention as documented in the `retentionMonthly` block below. RetentionMonthly PolicyVMRetentionMonthlyPtrOutput `pulumi:"retentionMonthly"` // Configures the policy weekly retention as documented in the `retentionWeekly` block below. Required when backup frequency is `Weekly`. RetentionWeekly PolicyVMRetentionWeeklyPtrOutput `pulumi:"retentionWeekly"` // Configures the policy yearly retention as documented in the `retentionYearly` block below. RetentionYearly PolicyVMRetentionYearlyPtrOutput `pulumi:"retentionYearly"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the timezone. [the possible values are defined here](http://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Defaults to `UTC` Timezone pulumi.StringPtrOutput `pulumi:"timezone"` }
Manages an Azure Backup VM Backup Policy.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/recoveryservices" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleVault, err := recoveryservices.NewVault(ctx, "exampleVault", &recoveryservices.VaultArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } _, err = backup.NewPolicyVM(ctx, "examplePolicyVM", &backup.PolicyVMArgs{ ResourceGroupName: exampleResourceGroup.Name, RecoveryVaultName: exampleVault.Name, Timezone: pulumi.String("UTC"), Backup: &backup.PolicyVMBackupArgs{ Frequency: pulumi.String("Daily"), Time: pulumi.String("23:00"), }, RetentionDaily: &backup.PolicyVMRetentionDailyArgs{ Count: pulumi.Int(10), }, RetentionWeekly: &backup.PolicyVMRetentionWeeklyArgs{ Count: pulumi.Int(42), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), pulumi.String("Wednesday"), pulumi.String("Friday"), pulumi.String("Saturday"), }, }, RetentionMonthly: &backup.PolicyVMRetentionMonthlyArgs{ Count: pulumi.Int(7), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), pulumi.String("Wednesday"), }, Weeks: pulumi.StringArray{ pulumi.String("First"), pulumi.String("Last"), }, }, RetentionYearly: &backup.PolicyVMRetentionYearlyArgs{ Count: pulumi.Int(77), Weekdays: pulumi.StringArray{ pulumi.String("Sunday"), }, Weeks: pulumi.StringArray{ pulumi.String("Last"), }, Months: pulumi.StringArray{ pulumi.String("January"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
VM Backup Policies can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:backup/policyVM:PolicyVM policy1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/example-recovery-vault/backupPolicies/policy1
```
func GetPolicyVM ¶
func GetPolicyVM(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyVMState, opts ...pulumi.ResourceOption) (*PolicyVM, error)
GetPolicyVM gets an existing PolicyVM resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPolicyVM ¶
func NewPolicyVM(ctx *pulumi.Context, name string, args *PolicyVMArgs, opts ...pulumi.ResourceOption) (*PolicyVM, error)
NewPolicyVM registers a new resource with the given unique name, arguments, and options.
func (*PolicyVM) ElementType ¶
func (*PolicyVM) ToPolicyVMOutput ¶
func (i *PolicyVM) ToPolicyVMOutput() PolicyVMOutput
func (*PolicyVM) ToPolicyVMOutputWithContext ¶
func (i *PolicyVM) ToPolicyVMOutputWithContext(ctx context.Context) PolicyVMOutput
type PolicyVMArgs ¶
type PolicyVMArgs struct { // Configures the Policy backup frequency, times & days as documented in the `backup` block below. Backup PolicyVMBackupInput // Specifies the instant restore retention range in days. InstantRestoreRetentionDays pulumi.IntPtrInput // Specifies the name of the Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringInput // The name of the resource group in which to create the policy. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Configures the policy daily retention as documented in the `retentionDaily` block below. Required when backup frequency is `Daily`. RetentionDaily PolicyVMRetentionDailyPtrInput // Configures the policy monthly retention as documented in the `retentionMonthly` block below. RetentionMonthly PolicyVMRetentionMonthlyPtrInput // Configures the policy weekly retention as documented in the `retentionWeekly` block below. Required when backup frequency is `Weekly`. RetentionWeekly PolicyVMRetentionWeeklyPtrInput // Configures the policy yearly retention as documented in the `retentionYearly` block below. RetentionYearly PolicyVMRetentionYearlyPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Specifies the timezone. [the possible values are defined here](http://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Defaults to `UTC` Timezone pulumi.StringPtrInput }
The set of arguments for constructing a PolicyVM resource.
func (PolicyVMArgs) ElementType ¶
func (PolicyVMArgs) ElementType() reflect.Type
type PolicyVMArray ¶
type PolicyVMArray []PolicyVMInput
func (PolicyVMArray) ElementType ¶
func (PolicyVMArray) ElementType() reflect.Type
func (PolicyVMArray) ToPolicyVMArrayOutput ¶
func (i PolicyVMArray) ToPolicyVMArrayOutput() PolicyVMArrayOutput
func (PolicyVMArray) ToPolicyVMArrayOutputWithContext ¶
func (i PolicyVMArray) ToPolicyVMArrayOutputWithContext(ctx context.Context) PolicyVMArrayOutput
type PolicyVMArrayInput ¶
type PolicyVMArrayInput interface { pulumi.Input ToPolicyVMArrayOutput() PolicyVMArrayOutput ToPolicyVMArrayOutputWithContext(context.Context) PolicyVMArrayOutput }
PolicyVMArrayInput is an input type that accepts PolicyVMArray and PolicyVMArrayOutput values. You can construct a concrete instance of `PolicyVMArrayInput` via:
PolicyVMArray{ PolicyVMArgs{...} }
type PolicyVMArrayOutput ¶
type PolicyVMArrayOutput struct{ *pulumi.OutputState }
func (PolicyVMArrayOutput) ElementType ¶
func (PolicyVMArrayOutput) ElementType() reflect.Type
func (PolicyVMArrayOutput) Index ¶
func (o PolicyVMArrayOutput) Index(i pulumi.IntInput) PolicyVMOutput
func (PolicyVMArrayOutput) ToPolicyVMArrayOutput ¶
func (o PolicyVMArrayOutput) ToPolicyVMArrayOutput() PolicyVMArrayOutput
func (PolicyVMArrayOutput) ToPolicyVMArrayOutputWithContext ¶
func (o PolicyVMArrayOutput) ToPolicyVMArrayOutputWithContext(ctx context.Context) PolicyVMArrayOutput
type PolicyVMBackup ¶
type PolicyVMBackup struct { // Sets the backup frequency. Must be either `Daily` or`Weekly`. Frequency string `pulumi:"frequency"` // The time of day to perform the backup in 24hour format. Time string `pulumi:"time"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays []string `pulumi:"weekdays"` }
type PolicyVMBackupArgs ¶
type PolicyVMBackupArgs struct { // Sets the backup frequency. Must be either `Daily` or`Weekly`. Frequency pulumi.StringInput `pulumi:"frequency"` // The time of day to perform the backup in 24hour format. Time pulumi.StringInput `pulumi:"time"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` }
func (PolicyVMBackupArgs) ElementType ¶
func (PolicyVMBackupArgs) ElementType() reflect.Type
func (PolicyVMBackupArgs) ToPolicyVMBackupOutput ¶
func (i PolicyVMBackupArgs) ToPolicyVMBackupOutput() PolicyVMBackupOutput
func (PolicyVMBackupArgs) ToPolicyVMBackupOutputWithContext ¶
func (i PolicyVMBackupArgs) ToPolicyVMBackupOutputWithContext(ctx context.Context) PolicyVMBackupOutput
func (PolicyVMBackupArgs) ToPolicyVMBackupPtrOutput ¶
func (i PolicyVMBackupArgs) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
func (PolicyVMBackupArgs) ToPolicyVMBackupPtrOutputWithContext ¶
func (i PolicyVMBackupArgs) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
type PolicyVMBackupInput ¶
type PolicyVMBackupInput interface { pulumi.Input ToPolicyVMBackupOutput() PolicyVMBackupOutput ToPolicyVMBackupOutputWithContext(context.Context) PolicyVMBackupOutput }
PolicyVMBackupInput is an input type that accepts PolicyVMBackupArgs and PolicyVMBackupOutput values. You can construct a concrete instance of `PolicyVMBackupInput` via:
PolicyVMBackupArgs{...}
type PolicyVMBackupOutput ¶
type PolicyVMBackupOutput struct{ *pulumi.OutputState }
func (PolicyVMBackupOutput) ElementType ¶
func (PolicyVMBackupOutput) ElementType() reflect.Type
func (PolicyVMBackupOutput) Frequency ¶
func (o PolicyVMBackupOutput) Frequency() pulumi.StringOutput
Sets the backup frequency. Must be either `Daily` or`Weekly`.
func (PolicyVMBackupOutput) Time ¶
func (o PolicyVMBackupOutput) Time() pulumi.StringOutput
The time of day to perform the backup in 24hour format.
func (PolicyVMBackupOutput) ToPolicyVMBackupOutput ¶
func (o PolicyVMBackupOutput) ToPolicyVMBackupOutput() PolicyVMBackupOutput
func (PolicyVMBackupOutput) ToPolicyVMBackupOutputWithContext ¶
func (o PolicyVMBackupOutput) ToPolicyVMBackupOutputWithContext(ctx context.Context) PolicyVMBackupOutput
func (PolicyVMBackupOutput) ToPolicyVMBackupPtrOutput ¶
func (o PolicyVMBackupOutput) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
func (PolicyVMBackupOutput) ToPolicyVMBackupPtrOutputWithContext ¶
func (o PolicyVMBackupOutput) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
func (PolicyVMBackupOutput) Weekdays ¶
func (o PolicyVMBackupOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyVMBackupPtrInput ¶
type PolicyVMBackupPtrInput interface { pulumi.Input ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput ToPolicyVMBackupPtrOutputWithContext(context.Context) PolicyVMBackupPtrOutput }
PolicyVMBackupPtrInput is an input type that accepts PolicyVMBackupArgs, PolicyVMBackupPtr and PolicyVMBackupPtrOutput values. You can construct a concrete instance of `PolicyVMBackupPtrInput` via:
PolicyVMBackupArgs{...} or: nil
func PolicyVMBackupPtr ¶
func PolicyVMBackupPtr(v *PolicyVMBackupArgs) PolicyVMBackupPtrInput
type PolicyVMBackupPtrOutput ¶
type PolicyVMBackupPtrOutput struct{ *pulumi.OutputState }
func (PolicyVMBackupPtrOutput) Elem ¶
func (o PolicyVMBackupPtrOutput) Elem() PolicyVMBackupOutput
func (PolicyVMBackupPtrOutput) ElementType ¶
func (PolicyVMBackupPtrOutput) ElementType() reflect.Type
func (PolicyVMBackupPtrOutput) Frequency ¶
func (o PolicyVMBackupPtrOutput) Frequency() pulumi.StringPtrOutput
Sets the backup frequency. Must be either `Daily` or`Weekly`.
func (PolicyVMBackupPtrOutput) Time ¶
func (o PolicyVMBackupPtrOutput) Time() pulumi.StringPtrOutput
The time of day to perform the backup in 24hour format.
func (PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutput ¶
func (o PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutput() PolicyVMBackupPtrOutput
func (PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutputWithContext ¶
func (o PolicyVMBackupPtrOutput) ToPolicyVMBackupPtrOutputWithContext(ctx context.Context) PolicyVMBackupPtrOutput
func (PolicyVMBackupPtrOutput) Weekdays ¶
func (o PolicyVMBackupPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyVMInput ¶
type PolicyVMInput interface { pulumi.Input ToPolicyVMOutput() PolicyVMOutput ToPolicyVMOutputWithContext(ctx context.Context) PolicyVMOutput }
type PolicyVMMap ¶
type PolicyVMMap map[string]PolicyVMInput
func (PolicyVMMap) ElementType ¶
func (PolicyVMMap) ElementType() reflect.Type
func (PolicyVMMap) ToPolicyVMMapOutput ¶
func (i PolicyVMMap) ToPolicyVMMapOutput() PolicyVMMapOutput
func (PolicyVMMap) ToPolicyVMMapOutputWithContext ¶
func (i PolicyVMMap) ToPolicyVMMapOutputWithContext(ctx context.Context) PolicyVMMapOutput
type PolicyVMMapInput ¶
type PolicyVMMapInput interface { pulumi.Input ToPolicyVMMapOutput() PolicyVMMapOutput ToPolicyVMMapOutputWithContext(context.Context) PolicyVMMapOutput }
PolicyVMMapInput is an input type that accepts PolicyVMMap and PolicyVMMapOutput values. You can construct a concrete instance of `PolicyVMMapInput` via:
PolicyVMMap{ "key": PolicyVMArgs{...} }
type PolicyVMMapOutput ¶
type PolicyVMMapOutput struct{ *pulumi.OutputState }
func (PolicyVMMapOutput) ElementType ¶
func (PolicyVMMapOutput) ElementType() reflect.Type
func (PolicyVMMapOutput) MapIndex ¶
func (o PolicyVMMapOutput) MapIndex(k pulumi.StringInput) PolicyVMOutput
func (PolicyVMMapOutput) ToPolicyVMMapOutput ¶
func (o PolicyVMMapOutput) ToPolicyVMMapOutput() PolicyVMMapOutput
func (PolicyVMMapOutput) ToPolicyVMMapOutputWithContext ¶
func (o PolicyVMMapOutput) ToPolicyVMMapOutputWithContext(ctx context.Context) PolicyVMMapOutput
type PolicyVMOutput ¶
type PolicyVMOutput struct{ *pulumi.OutputState }
func (PolicyVMOutput) ElementType ¶
func (PolicyVMOutput) ElementType() reflect.Type
func (PolicyVMOutput) ToPolicyVMOutput ¶
func (o PolicyVMOutput) ToPolicyVMOutput() PolicyVMOutput
func (PolicyVMOutput) ToPolicyVMOutputWithContext ¶
func (o PolicyVMOutput) ToPolicyVMOutputWithContext(ctx context.Context) PolicyVMOutput
type PolicyVMRetentionDaily ¶
type PolicyVMRetentionDaily struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count int `pulumi:"count"` }
type PolicyVMRetentionDailyArgs ¶
type PolicyVMRetentionDailyArgs struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count pulumi.IntInput `pulumi:"count"` }
func (PolicyVMRetentionDailyArgs) ElementType ¶
func (PolicyVMRetentionDailyArgs) ElementType() reflect.Type
func (PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutput ¶
func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutput() PolicyVMRetentionDailyOutput
func (PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutputWithContext ¶
func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyOutputWithContext(ctx context.Context) PolicyVMRetentionDailyOutput
func (PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutput ¶
func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
func (PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutputWithContext ¶
func (i PolicyVMRetentionDailyArgs) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
type PolicyVMRetentionDailyInput ¶
type PolicyVMRetentionDailyInput interface { pulumi.Input ToPolicyVMRetentionDailyOutput() PolicyVMRetentionDailyOutput ToPolicyVMRetentionDailyOutputWithContext(context.Context) PolicyVMRetentionDailyOutput }
PolicyVMRetentionDailyInput is an input type that accepts PolicyVMRetentionDailyArgs and PolicyVMRetentionDailyOutput values. You can construct a concrete instance of `PolicyVMRetentionDailyInput` via:
PolicyVMRetentionDailyArgs{...}
type PolicyVMRetentionDailyOutput ¶
type PolicyVMRetentionDailyOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionDailyOutput) Count ¶
func (o PolicyVMRetentionDailyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionDailyOutput) ElementType ¶
func (PolicyVMRetentionDailyOutput) ElementType() reflect.Type
func (PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutput ¶
func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutput() PolicyVMRetentionDailyOutput
func (PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutputWithContext ¶
func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyOutputWithContext(ctx context.Context) PolicyVMRetentionDailyOutput
func (PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutput ¶
func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
func (PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutputWithContext ¶
func (o PolicyVMRetentionDailyOutput) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
type PolicyVMRetentionDailyPtrInput ¶
type PolicyVMRetentionDailyPtrInput interface { pulumi.Input ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput ToPolicyVMRetentionDailyPtrOutputWithContext(context.Context) PolicyVMRetentionDailyPtrOutput }
PolicyVMRetentionDailyPtrInput is an input type that accepts PolicyVMRetentionDailyArgs, PolicyVMRetentionDailyPtr and PolicyVMRetentionDailyPtrOutput values. You can construct a concrete instance of `PolicyVMRetentionDailyPtrInput` via:
PolicyVMRetentionDailyArgs{...} or: nil
func PolicyVMRetentionDailyPtr ¶
func PolicyVMRetentionDailyPtr(v *PolicyVMRetentionDailyArgs) PolicyVMRetentionDailyPtrInput
type PolicyVMRetentionDailyPtrOutput ¶
type PolicyVMRetentionDailyPtrOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionDailyPtrOutput) Count ¶
func (o PolicyVMRetentionDailyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionDailyPtrOutput) Elem ¶
func (o PolicyVMRetentionDailyPtrOutput) Elem() PolicyVMRetentionDailyOutput
func (PolicyVMRetentionDailyPtrOutput) ElementType ¶
func (PolicyVMRetentionDailyPtrOutput) ElementType() reflect.Type
func (PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutput ¶
func (o PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutput() PolicyVMRetentionDailyPtrOutput
func (PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutputWithContext ¶
func (o PolicyVMRetentionDailyPtrOutput) ToPolicyVMRetentionDailyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionDailyPtrOutput
type PolicyVMRetentionMonthly ¶
type PolicyVMRetentionMonthly struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count int `pulumi:"count"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays []string `pulumi:"weekdays"` // The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`. Weeks []string `pulumi:"weeks"` }
type PolicyVMRetentionMonthlyArgs ¶
type PolicyVMRetentionMonthlyArgs struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count pulumi.IntInput `pulumi:"count"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` // The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`. Weeks pulumi.StringArrayInput `pulumi:"weeks"` }
func (PolicyVMRetentionMonthlyArgs) ElementType ¶
func (PolicyVMRetentionMonthlyArgs) ElementType() reflect.Type
func (PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutput ¶
func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutput() PolicyVMRetentionMonthlyOutput
func (PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutputWithContext ¶
func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyOutput
func (PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutput ¶
func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
func (PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutputWithContext ¶
func (i PolicyVMRetentionMonthlyArgs) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
type PolicyVMRetentionMonthlyInput ¶
type PolicyVMRetentionMonthlyInput interface { pulumi.Input ToPolicyVMRetentionMonthlyOutput() PolicyVMRetentionMonthlyOutput ToPolicyVMRetentionMonthlyOutputWithContext(context.Context) PolicyVMRetentionMonthlyOutput }
PolicyVMRetentionMonthlyInput is an input type that accepts PolicyVMRetentionMonthlyArgs and PolicyVMRetentionMonthlyOutput values. You can construct a concrete instance of `PolicyVMRetentionMonthlyInput` via:
PolicyVMRetentionMonthlyArgs{...}
type PolicyVMRetentionMonthlyOutput ¶
type PolicyVMRetentionMonthlyOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionMonthlyOutput) Count ¶
func (o PolicyVMRetentionMonthlyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionMonthlyOutput) ElementType ¶
func (PolicyVMRetentionMonthlyOutput) ElementType() reflect.Type
func (PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutput ¶
func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutput() PolicyVMRetentionMonthlyOutput
func (PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutputWithContext ¶
func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyOutput
func (PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutput ¶
func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
func (PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext ¶
func (o PolicyVMRetentionMonthlyOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
func (PolicyVMRetentionMonthlyOutput) Weekdays ¶
func (o PolicyVMRetentionMonthlyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyVMRetentionMonthlyOutput) Weeks ¶
func (o PolicyVMRetentionMonthlyOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyVMRetentionMonthlyPtrInput ¶
type PolicyVMRetentionMonthlyPtrInput interface { pulumi.Input ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput ToPolicyVMRetentionMonthlyPtrOutputWithContext(context.Context) PolicyVMRetentionMonthlyPtrOutput }
PolicyVMRetentionMonthlyPtrInput is an input type that accepts PolicyVMRetentionMonthlyArgs, PolicyVMRetentionMonthlyPtr and PolicyVMRetentionMonthlyPtrOutput values. You can construct a concrete instance of `PolicyVMRetentionMonthlyPtrInput` via:
PolicyVMRetentionMonthlyArgs{...} or: nil
func PolicyVMRetentionMonthlyPtr ¶
func PolicyVMRetentionMonthlyPtr(v *PolicyVMRetentionMonthlyArgs) PolicyVMRetentionMonthlyPtrInput
type PolicyVMRetentionMonthlyPtrOutput ¶
type PolicyVMRetentionMonthlyPtrOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionMonthlyPtrOutput) Count ¶
func (o PolicyVMRetentionMonthlyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionMonthlyPtrOutput) Elem ¶
func (o PolicyVMRetentionMonthlyPtrOutput) Elem() PolicyVMRetentionMonthlyOutput
func (PolicyVMRetentionMonthlyPtrOutput) ElementType ¶
func (PolicyVMRetentionMonthlyPtrOutput) ElementType() reflect.Type
func (PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutput ¶
func (o PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutput() PolicyVMRetentionMonthlyPtrOutput
func (PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext ¶
func (o PolicyVMRetentionMonthlyPtrOutput) ToPolicyVMRetentionMonthlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionMonthlyPtrOutput
func (PolicyVMRetentionMonthlyPtrOutput) Weekdays ¶
func (o PolicyVMRetentionMonthlyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyVMRetentionMonthlyPtrOutput) Weeks ¶
func (o PolicyVMRetentionMonthlyPtrOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyVMRetentionWeekly ¶
type PolicyVMRetentionWeekly struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count int `pulumi:"count"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays []string `pulumi:"weekdays"` }
type PolicyVMRetentionWeeklyArgs ¶
type PolicyVMRetentionWeeklyArgs struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count pulumi.IntInput `pulumi:"count"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` }
func (PolicyVMRetentionWeeklyArgs) ElementType ¶
func (PolicyVMRetentionWeeklyArgs) ElementType() reflect.Type
func (PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutput ¶
func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutput() PolicyVMRetentionWeeklyOutput
func (PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutputWithContext ¶
func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyOutput
func (PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutput ¶
func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
func (PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutputWithContext ¶
func (i PolicyVMRetentionWeeklyArgs) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
type PolicyVMRetentionWeeklyInput ¶
type PolicyVMRetentionWeeklyInput interface { pulumi.Input ToPolicyVMRetentionWeeklyOutput() PolicyVMRetentionWeeklyOutput ToPolicyVMRetentionWeeklyOutputWithContext(context.Context) PolicyVMRetentionWeeklyOutput }
PolicyVMRetentionWeeklyInput is an input type that accepts PolicyVMRetentionWeeklyArgs and PolicyVMRetentionWeeklyOutput values. You can construct a concrete instance of `PolicyVMRetentionWeeklyInput` via:
PolicyVMRetentionWeeklyArgs{...}
type PolicyVMRetentionWeeklyOutput ¶
type PolicyVMRetentionWeeklyOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionWeeklyOutput) Count ¶
func (o PolicyVMRetentionWeeklyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionWeeklyOutput) ElementType ¶
func (PolicyVMRetentionWeeklyOutput) ElementType() reflect.Type
func (PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutput ¶
func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutput() PolicyVMRetentionWeeklyOutput
func (PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutputWithContext ¶
func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyOutput
func (PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutput ¶
func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
func (PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext ¶
func (o PolicyVMRetentionWeeklyOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
func (PolicyVMRetentionWeeklyOutput) Weekdays ¶
func (o PolicyVMRetentionWeeklyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyVMRetentionWeeklyPtrInput ¶
type PolicyVMRetentionWeeklyPtrInput interface { pulumi.Input ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput ToPolicyVMRetentionWeeklyPtrOutputWithContext(context.Context) PolicyVMRetentionWeeklyPtrOutput }
PolicyVMRetentionWeeklyPtrInput is an input type that accepts PolicyVMRetentionWeeklyArgs, PolicyVMRetentionWeeklyPtr and PolicyVMRetentionWeeklyPtrOutput values. You can construct a concrete instance of `PolicyVMRetentionWeeklyPtrInput` via:
PolicyVMRetentionWeeklyArgs{...} or: nil
func PolicyVMRetentionWeeklyPtr ¶
func PolicyVMRetentionWeeklyPtr(v *PolicyVMRetentionWeeklyArgs) PolicyVMRetentionWeeklyPtrInput
type PolicyVMRetentionWeeklyPtrOutput ¶
type PolicyVMRetentionWeeklyPtrOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionWeeklyPtrOutput) Count ¶
func (o PolicyVMRetentionWeeklyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionWeeklyPtrOutput) Elem ¶
func (o PolicyVMRetentionWeeklyPtrOutput) Elem() PolicyVMRetentionWeeklyOutput
func (PolicyVMRetentionWeeklyPtrOutput) ElementType ¶
func (PolicyVMRetentionWeeklyPtrOutput) ElementType() reflect.Type
func (PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutput ¶
func (o PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutput() PolicyVMRetentionWeeklyPtrOutput
func (PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext ¶
func (o PolicyVMRetentionWeeklyPtrOutput) ToPolicyVMRetentionWeeklyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionWeeklyPtrOutput
func (PolicyVMRetentionWeeklyPtrOutput) Weekdays ¶
func (o PolicyVMRetentionWeeklyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
type PolicyVMRetentionYearly ¶
type PolicyVMRetentionYearly struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count int `pulumi:"count"` // The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Months []string `pulumi:"months"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays []string `pulumi:"weekdays"` // The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`. Weeks []string `pulumi:"weeks"` }
type PolicyVMRetentionYearlyArgs ¶
type PolicyVMRetentionYearlyArgs struct { // The number of yearly backups to keep. Must be between `1` and `9999` Count pulumi.IntInput `pulumi:"count"` // The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Months pulumi.StringArrayInput `pulumi:"months"` // The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`. Weekdays pulumi.StringArrayInput `pulumi:"weekdays"` // The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`. Weeks pulumi.StringArrayInput `pulumi:"weeks"` }
func (PolicyVMRetentionYearlyArgs) ElementType ¶
func (PolicyVMRetentionYearlyArgs) ElementType() reflect.Type
func (PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutput ¶
func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutput() PolicyVMRetentionYearlyOutput
func (PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutputWithContext ¶
func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyOutput
func (PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutput ¶
func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
func (PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutputWithContext ¶
func (i PolicyVMRetentionYearlyArgs) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
type PolicyVMRetentionYearlyInput ¶
type PolicyVMRetentionYearlyInput interface { pulumi.Input ToPolicyVMRetentionYearlyOutput() PolicyVMRetentionYearlyOutput ToPolicyVMRetentionYearlyOutputWithContext(context.Context) PolicyVMRetentionYearlyOutput }
PolicyVMRetentionYearlyInput is an input type that accepts PolicyVMRetentionYearlyArgs and PolicyVMRetentionYearlyOutput values. You can construct a concrete instance of `PolicyVMRetentionYearlyInput` via:
PolicyVMRetentionYearlyArgs{...}
type PolicyVMRetentionYearlyOutput ¶
type PolicyVMRetentionYearlyOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionYearlyOutput) Count ¶
func (o PolicyVMRetentionYearlyOutput) Count() pulumi.IntOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionYearlyOutput) ElementType ¶
func (PolicyVMRetentionYearlyOutput) ElementType() reflect.Type
func (PolicyVMRetentionYearlyOutput) Months ¶
func (o PolicyVMRetentionYearlyOutput) Months() pulumi.StringArrayOutput
The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
func (PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutput ¶
func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutput() PolicyVMRetentionYearlyOutput
func (PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutputWithContext ¶
func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyOutput
func (PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutput ¶
func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
func (PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext ¶
func (o PolicyVMRetentionYearlyOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
func (PolicyVMRetentionYearlyOutput) Weekdays ¶
func (o PolicyVMRetentionYearlyOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyVMRetentionYearlyOutput) Weeks ¶
func (o PolicyVMRetentionYearlyOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyVMRetentionYearlyPtrInput ¶
type PolicyVMRetentionYearlyPtrInput interface { pulumi.Input ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput ToPolicyVMRetentionYearlyPtrOutputWithContext(context.Context) PolicyVMRetentionYearlyPtrOutput }
PolicyVMRetentionYearlyPtrInput is an input type that accepts PolicyVMRetentionYearlyArgs, PolicyVMRetentionYearlyPtr and PolicyVMRetentionYearlyPtrOutput values. You can construct a concrete instance of `PolicyVMRetentionYearlyPtrInput` via:
PolicyVMRetentionYearlyArgs{...} or: nil
func PolicyVMRetentionYearlyPtr ¶
func PolicyVMRetentionYearlyPtr(v *PolicyVMRetentionYearlyArgs) PolicyVMRetentionYearlyPtrInput
type PolicyVMRetentionYearlyPtrOutput ¶
type PolicyVMRetentionYearlyPtrOutput struct{ *pulumi.OutputState }
func (PolicyVMRetentionYearlyPtrOutput) Count ¶
func (o PolicyVMRetentionYearlyPtrOutput) Count() pulumi.IntPtrOutput
The number of yearly backups to keep. Must be between `1` and `9999`
func (PolicyVMRetentionYearlyPtrOutput) Elem ¶
func (o PolicyVMRetentionYearlyPtrOutput) Elem() PolicyVMRetentionYearlyOutput
func (PolicyVMRetentionYearlyPtrOutput) ElementType ¶
func (PolicyVMRetentionYearlyPtrOutput) ElementType() reflect.Type
func (PolicyVMRetentionYearlyPtrOutput) Months ¶
func (o PolicyVMRetentionYearlyPtrOutput) Months() pulumi.StringArrayOutput
The months of the year to retain backups of. Must be one of `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`.
func (PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutput ¶
func (o PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutput() PolicyVMRetentionYearlyPtrOutput
func (PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext ¶
func (o PolicyVMRetentionYearlyPtrOutput) ToPolicyVMRetentionYearlyPtrOutputWithContext(ctx context.Context) PolicyVMRetentionYearlyPtrOutput
func (PolicyVMRetentionYearlyPtrOutput) Weekdays ¶
func (o PolicyVMRetentionYearlyPtrOutput) Weekdays() pulumi.StringArrayOutput
The weekday backups to retain . Must be one of `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` or `Saturday`.
func (PolicyVMRetentionYearlyPtrOutput) Weeks ¶
func (o PolicyVMRetentionYearlyPtrOutput) Weeks() pulumi.StringArrayOutput
The weeks of the month to retain backups of. Must be one of `First`, `Second`, `Third`, `Fourth`, `Last`.
type PolicyVMState ¶
type PolicyVMState struct { // Configures the Policy backup frequency, times & days as documented in the `backup` block below. Backup PolicyVMBackupPtrInput // Specifies the instant restore retention range in days. InstantRestoreRetentionDays pulumi.IntPtrInput // Specifies the name of the Backup Policy. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringPtrInput // The name of the resource group in which to create the policy. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Configures the policy daily retention as documented in the `retentionDaily` block below. Required when backup frequency is `Daily`. RetentionDaily PolicyVMRetentionDailyPtrInput // Configures the policy monthly retention as documented in the `retentionMonthly` block below. RetentionMonthly PolicyVMRetentionMonthlyPtrInput // Configures the policy weekly retention as documented in the `retentionWeekly` block below. Required when backup frequency is `Weekly`. RetentionWeekly PolicyVMRetentionWeeklyPtrInput // Configures the policy yearly retention as documented in the `retentionYearly` block below. RetentionYearly PolicyVMRetentionYearlyPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Specifies the timezone. [the possible values are defined here](http://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Defaults to `UTC` Timezone pulumi.StringPtrInput }
func (PolicyVMState) ElementType ¶
func (PolicyVMState) ElementType() reflect.Type
type ProtectedFileShare ¶
type ProtectedFileShare struct { pulumi.StringOutput `pulumi:"backupPolicyId"` RecoveryVaultName pulumi.StringOutput `pulumi:"recoveryVaultName"` ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` SourceFileShareName pulumi.StringOutput `pulumi:"sourceFileShareName"` SourceStorageAccountId pulumi.StringOutput `pulumi:"sourceStorageAccountId"` }BackupPolicyId
Manages an Azure Backup Protected File Share to enable backups for file shares within an Azure Storage Account
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/recoveryservices" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } vault, err := recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{ Location: rg.Location, ResourceGroupName: rg.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } sa, err := storage.NewAccount(ctx, "sa", &storage.AccountArgs{ Location: rg.Location, ResourceGroupName: rg.Name, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), }) if err != nil { return err } exampleShare, err := storage.NewShare(ctx, "exampleShare", &storage.ShareArgs{ StorageAccountName: sa.Name, }) if err != nil { return err } _, err = backup.NewContainerStorageAccount(ctx, "protection-container", &backup.ContainerStorageAccountArgs{ ResourceGroupName: rg.Name, RecoveryVaultName: vault.Name, StorageAccountId: sa.ID(), }) if err != nil { return err } examplePolicyFileShare, err := backup.NewPolicyFileShare(ctx, "examplePolicyFileShare", &backup.PolicyFileShareArgs{ ResourceGroupName: rg.Name, RecoveryVaultName: vault.Name, Backup: &backup.PolicyFileShareBackupArgs{ Frequency: pulumi.String("Daily"), Time: pulumi.String("23:00"), }, RetentionDaily: &backup.PolicyFileShareRetentionDailyArgs{ Count: pulumi.Int(10), }, }) if err != nil { return err } _, err = backup.NewProtectedFileShare(ctx, "share1", &backup.ProtectedFileShareArgs{ ResourceGroupName: rg.Name, RecoveryVaultName: vault.Name, SourceStorageAccountId: protection_container.StorageAccountId, SourceFileShareName: exampleShare.Name, BackupPolicyId: examplePolicyFileShare.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Azure Backup Protected File Shares can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:backup/protectedFileShare:ProtectedFileShare item1 "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/example-recovery-vault/backupFabrics/Azure/protectionContainers/StorageContainer;storage;group2;example-storage-account/protectedItems/AzureFileShare;3f6e3108a45793581bcbd1c61c87a3b2ceeb4ff4bc02a95ce9d1022b23722935"
```
-> **NOTE** The ID requires quoting as there are semicolons. This user unfriendly ID can be found in the Deployments of the used resourcegroup, look for an Deployment which starts with `ConfigureAFSProtection-`, click then `Go to resource`.
func GetProtectedFileShare ¶
func GetProtectedFileShare(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProtectedFileShareState, opts ...pulumi.ResourceOption) (*ProtectedFileShare, error)
GetProtectedFileShare gets an existing ProtectedFileShare resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewProtectedFileShare ¶
func NewProtectedFileShare(ctx *pulumi.Context, name string, args *ProtectedFileShareArgs, opts ...pulumi.ResourceOption) (*ProtectedFileShare, error)
NewProtectedFileShare registers a new resource with the given unique name, arguments, and options.
func (*ProtectedFileShare) ElementType ¶
func (*ProtectedFileShare) ElementType() reflect.Type
func (*ProtectedFileShare) ToProtectedFileShareOutput ¶
func (i *ProtectedFileShare) ToProtectedFileShareOutput() ProtectedFileShareOutput
func (*ProtectedFileShare) ToProtectedFileShareOutputWithContext ¶
func (i *ProtectedFileShare) ToProtectedFileShareOutputWithContext(ctx context.Context) ProtectedFileShareOutput
type ProtectedFileShareArgs ¶
type ProtectedFileShareArgs struct { pulumi.StringInput RecoveryVaultName pulumi.StringInput ResourceGroupName pulumi.StringInput SourceFileShareName pulumi.StringInput SourceStorageAccountId pulumi.StringInput }BackupPolicyId
The set of arguments for constructing a ProtectedFileShare resource.
func (ProtectedFileShareArgs) ElementType ¶
func (ProtectedFileShareArgs) ElementType() reflect.Type
type ProtectedFileShareArray ¶
type ProtectedFileShareArray []ProtectedFileShareInput
func (ProtectedFileShareArray) ElementType ¶
func (ProtectedFileShareArray) ElementType() reflect.Type
func (ProtectedFileShareArray) ToProtectedFileShareArrayOutput ¶
func (i ProtectedFileShareArray) ToProtectedFileShareArrayOutput() ProtectedFileShareArrayOutput
func (ProtectedFileShareArray) ToProtectedFileShareArrayOutputWithContext ¶
func (i ProtectedFileShareArray) ToProtectedFileShareArrayOutputWithContext(ctx context.Context) ProtectedFileShareArrayOutput
type ProtectedFileShareArrayInput ¶
ProtectedFileShareArrayInput is an input type that accepts ProtectedFileShareArray and ProtectedFileShareArrayOutput values. You can construct a concrete instance of `ProtectedFileShareArrayInput` via:
ProtectedFileShareArray{ ProtectedFileShareArgs{...} }
type ProtectedFileShareArrayOutput ¶
func (ProtectedFileShareArrayOutput) ElementType ¶
func (ProtectedFileShareArrayOutput) ElementType() reflect.Type
func (ProtectedFileShareArrayOutput) Index ¶
func (o ProtectedFileShareArrayOutput) Index(i pulumi.IntInput) ProtectedFileShareOutput
func (ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutput ¶
func (o ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutput() ProtectedFileShareArrayOutput
func (ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutputWithContext ¶
func (o ProtectedFileShareArrayOutput) ToProtectedFileShareArrayOutputWithContext(ctx context.Context) ProtectedFileShareArrayOutput
type ProtectedFileShareInput ¶
type ProtectedFileShareMap ¶
type ProtectedFileShareMap map[string]ProtectedFileShareInput
func (ProtectedFileShareMap) ElementType ¶
func (ProtectedFileShareMap) ElementType() reflect.Type
func (ProtectedFileShareMap) ToProtectedFileShareMapOutput ¶
func (i ProtectedFileShareMap) ToProtectedFileShareMapOutput() ProtectedFileShareMapOutput
func (ProtectedFileShareMap) ToProtectedFileShareMapOutputWithContext ¶
func (i ProtectedFileShareMap) ToProtectedFileShareMapOutputWithContext(ctx context.Context) ProtectedFileShareMapOutput
type ProtectedFileShareMapInput ¶
ProtectedFileShareMapInput is an input type that accepts ProtectedFileShareMap and ProtectedFileShareMapOutput values. You can construct a concrete instance of `ProtectedFileShareMapInput` via:
ProtectedFileShareMap{ "key": ProtectedFileShareArgs{...} }
type ProtectedFileShareMapOutput ¶
func (ProtectedFileShareMapOutput) ElementType ¶
func (ProtectedFileShareMapOutput) ElementType() reflect.Type
func (ProtectedFileShareMapOutput) MapIndex ¶
func (o ProtectedFileShareMapOutput) MapIndex(k pulumi.StringInput) ProtectedFileShareOutput
func (ProtectedFileShareMapOutput) ToProtectedFileShareMapOutput ¶
func (o ProtectedFileShareMapOutput) ToProtectedFileShareMapOutput() ProtectedFileShareMapOutput
func (ProtectedFileShareMapOutput) ToProtectedFileShareMapOutputWithContext ¶
func (o ProtectedFileShareMapOutput) ToProtectedFileShareMapOutputWithContext(ctx context.Context) ProtectedFileShareMapOutput
type ProtectedFileShareOutput ¶
func (ProtectedFileShareOutput) ElementType ¶
func (ProtectedFileShareOutput) ElementType() reflect.Type
func (ProtectedFileShareOutput) ToProtectedFileShareOutput ¶
func (o ProtectedFileShareOutput) ToProtectedFileShareOutput() ProtectedFileShareOutput
func (ProtectedFileShareOutput) ToProtectedFileShareOutputWithContext ¶
func (o ProtectedFileShareOutput) ToProtectedFileShareOutputWithContext(ctx context.Context) ProtectedFileShareOutput
type ProtectedFileShareState ¶
type ProtectedFileShareState struct { pulumi.StringPtrInput RecoveryVaultName pulumi.StringPtrInput ResourceGroupName pulumi.StringPtrInput SourceFileShareName pulumi.StringPtrInput SourceStorageAccountId pulumi.StringPtrInput }BackupPolicyId
func (ProtectedFileShareState) ElementType ¶
func (ProtectedFileShareState) ElementType() reflect.Type
type ProtectedVM ¶
type ProtectedVM struct { pulumi.CustomResourceState // Specifies the id of the backup policy to use. BackupPolicyId pulumi.StringOutput `pulumi:"backupPolicyId"` // A list of Disks' Logical Unit Numbers(LUN) to be excluded for VM Protection. ExcludeDiskLuns pulumi.IntArrayOutput `pulumi:"excludeDiskLuns"` // A list of Disks' Logical Unit Numbers(LUN) to be included for VM Protection. IncludeDiskLuns pulumi.IntArrayOutput `pulumi:"includeDiskLuns"` // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringOutput `pulumi:"recoveryVaultName"` // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the ID of the VM to backup. Changing this forces a new resource to be created. SourceVmId pulumi.StringOutput `pulumi:"sourceVmId"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages Azure Backup for an Azure VM
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/backup" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/recoveryservices" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleVault, err := recoveryservices.NewVault(ctx, "exampleVault", &recoveryservices.VaultArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } examplePolicyVM, err := backup.NewPolicyVM(ctx, "examplePolicyVM", &backup.PolicyVMArgs{ ResourceGroupName: exampleResourceGroup.Name, RecoveryVaultName: exampleVault.Name, Backup: &backup.PolicyVMBackupArgs{ Frequency: pulumi.String("Daily"), Time: pulumi.String("23:00"), }, }) if err != nil { return err } _, err = backup.NewProtectedVM(ctx, "vm1", &backup.ProtectedVMArgs{ ResourceGroupName: exampleResourceGroup.Name, RecoveryVaultName: exampleVault.Name, SourceVmId: pulumi.Any(azurerm_virtual_machine.Example.Id), BackupPolicyId: examplePolicyVM.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Recovery Services Protected VMs can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:backup/protectedVM:ProtectedVM item1 "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/example-recovery-vault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;group1;vm1/protectedItems/vm;iaasvmcontainerv2;group1;vm1"
```
Note the ID requires quoting as there are semicolons
func GetProtectedVM ¶
func GetProtectedVM(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProtectedVMState, opts ...pulumi.ResourceOption) (*ProtectedVM, error)
GetProtectedVM gets an existing ProtectedVM resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewProtectedVM ¶
func NewProtectedVM(ctx *pulumi.Context, name string, args *ProtectedVMArgs, opts ...pulumi.ResourceOption) (*ProtectedVM, error)
NewProtectedVM registers a new resource with the given unique name, arguments, and options.
func (*ProtectedVM) ElementType ¶
func (*ProtectedVM) ElementType() reflect.Type
func (*ProtectedVM) ToProtectedVMOutput ¶
func (i *ProtectedVM) ToProtectedVMOutput() ProtectedVMOutput
func (*ProtectedVM) ToProtectedVMOutputWithContext ¶
func (i *ProtectedVM) ToProtectedVMOutputWithContext(ctx context.Context) ProtectedVMOutput
type ProtectedVMArgs ¶
type ProtectedVMArgs struct { // Specifies the id of the backup policy to use. BackupPolicyId pulumi.StringInput // A list of Disks' Logical Unit Numbers(LUN) to be excluded for VM Protection. ExcludeDiskLuns pulumi.IntArrayInput // A list of Disks' Logical Unit Numbers(LUN) to be included for VM Protection. IncludeDiskLuns pulumi.IntArrayInput // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringInput // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Specifies the ID of the VM to backup. Changing this forces a new resource to be created. SourceVmId pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a ProtectedVM resource.
func (ProtectedVMArgs) ElementType ¶
func (ProtectedVMArgs) ElementType() reflect.Type
type ProtectedVMArray ¶
type ProtectedVMArray []ProtectedVMInput
func (ProtectedVMArray) ElementType ¶
func (ProtectedVMArray) ElementType() reflect.Type
func (ProtectedVMArray) ToProtectedVMArrayOutput ¶
func (i ProtectedVMArray) ToProtectedVMArrayOutput() ProtectedVMArrayOutput
func (ProtectedVMArray) ToProtectedVMArrayOutputWithContext ¶
func (i ProtectedVMArray) ToProtectedVMArrayOutputWithContext(ctx context.Context) ProtectedVMArrayOutput
type ProtectedVMArrayInput ¶
type ProtectedVMArrayInput interface { pulumi.Input ToProtectedVMArrayOutput() ProtectedVMArrayOutput ToProtectedVMArrayOutputWithContext(context.Context) ProtectedVMArrayOutput }
ProtectedVMArrayInput is an input type that accepts ProtectedVMArray and ProtectedVMArrayOutput values. You can construct a concrete instance of `ProtectedVMArrayInput` via:
ProtectedVMArray{ ProtectedVMArgs{...} }
type ProtectedVMArrayOutput ¶
type ProtectedVMArrayOutput struct{ *pulumi.OutputState }
func (ProtectedVMArrayOutput) ElementType ¶
func (ProtectedVMArrayOutput) ElementType() reflect.Type
func (ProtectedVMArrayOutput) Index ¶
func (o ProtectedVMArrayOutput) Index(i pulumi.IntInput) ProtectedVMOutput
func (ProtectedVMArrayOutput) ToProtectedVMArrayOutput ¶
func (o ProtectedVMArrayOutput) ToProtectedVMArrayOutput() ProtectedVMArrayOutput
func (ProtectedVMArrayOutput) ToProtectedVMArrayOutputWithContext ¶
func (o ProtectedVMArrayOutput) ToProtectedVMArrayOutputWithContext(ctx context.Context) ProtectedVMArrayOutput
type ProtectedVMInput ¶
type ProtectedVMInput interface { pulumi.Input ToProtectedVMOutput() ProtectedVMOutput ToProtectedVMOutputWithContext(ctx context.Context) ProtectedVMOutput }
type ProtectedVMMap ¶
type ProtectedVMMap map[string]ProtectedVMInput
func (ProtectedVMMap) ElementType ¶
func (ProtectedVMMap) ElementType() reflect.Type
func (ProtectedVMMap) ToProtectedVMMapOutput ¶
func (i ProtectedVMMap) ToProtectedVMMapOutput() ProtectedVMMapOutput
func (ProtectedVMMap) ToProtectedVMMapOutputWithContext ¶
func (i ProtectedVMMap) ToProtectedVMMapOutputWithContext(ctx context.Context) ProtectedVMMapOutput
type ProtectedVMMapInput ¶
type ProtectedVMMapInput interface { pulumi.Input ToProtectedVMMapOutput() ProtectedVMMapOutput ToProtectedVMMapOutputWithContext(context.Context) ProtectedVMMapOutput }
ProtectedVMMapInput is an input type that accepts ProtectedVMMap and ProtectedVMMapOutput values. You can construct a concrete instance of `ProtectedVMMapInput` via:
ProtectedVMMap{ "key": ProtectedVMArgs{...} }
type ProtectedVMMapOutput ¶
type ProtectedVMMapOutput struct{ *pulumi.OutputState }
func (ProtectedVMMapOutput) ElementType ¶
func (ProtectedVMMapOutput) ElementType() reflect.Type
func (ProtectedVMMapOutput) MapIndex ¶
func (o ProtectedVMMapOutput) MapIndex(k pulumi.StringInput) ProtectedVMOutput
func (ProtectedVMMapOutput) ToProtectedVMMapOutput ¶
func (o ProtectedVMMapOutput) ToProtectedVMMapOutput() ProtectedVMMapOutput
func (ProtectedVMMapOutput) ToProtectedVMMapOutputWithContext ¶
func (o ProtectedVMMapOutput) ToProtectedVMMapOutputWithContext(ctx context.Context) ProtectedVMMapOutput
type ProtectedVMOutput ¶
type ProtectedVMOutput struct{ *pulumi.OutputState }
func (ProtectedVMOutput) ElementType ¶
func (ProtectedVMOutput) ElementType() reflect.Type
func (ProtectedVMOutput) ToProtectedVMOutput ¶
func (o ProtectedVMOutput) ToProtectedVMOutput() ProtectedVMOutput
func (ProtectedVMOutput) ToProtectedVMOutputWithContext ¶
func (o ProtectedVMOutput) ToProtectedVMOutputWithContext(ctx context.Context) ProtectedVMOutput
type ProtectedVMState ¶
type ProtectedVMState struct { // Specifies the id of the backup policy to use. BackupPolicyId pulumi.StringPtrInput // A list of Disks' Logical Unit Numbers(LUN) to be excluded for VM Protection. ExcludeDiskLuns pulumi.IntArrayInput // A list of Disks' Logical Unit Numbers(LUN) to be included for VM Protection. IncludeDiskLuns pulumi.IntArrayInput // Specifies the name of the Recovery Services Vault to use. Changing this forces a new resource to be created. RecoveryVaultName pulumi.StringPtrInput // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Specifies the ID of the VM to backup. Changing this forces a new resource to be created. SourceVmId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (ProtectedVMState) ElementType ¶
func (ProtectedVMState) ElementType() reflect.Type