Documentation ¶
Index ¶
- type BackupInstanceBlogStorage
- type BackupInstanceBlogStorageArgs
- type BackupInstanceBlogStorageArray
- func (BackupInstanceBlogStorageArray) ElementType() reflect.Type
- func (i BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutput() BackupInstanceBlogStorageArrayOutput
- func (i BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutputWithContext(ctx context.Context) BackupInstanceBlogStorageArrayOutput
- type BackupInstanceBlogStorageArrayInput
- type BackupInstanceBlogStorageArrayOutput
- func (BackupInstanceBlogStorageArrayOutput) ElementType() reflect.Type
- func (o BackupInstanceBlogStorageArrayOutput) Index(i pulumi.IntInput) BackupInstanceBlogStorageOutput
- func (o BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutput() BackupInstanceBlogStorageArrayOutput
- func (o BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutputWithContext(ctx context.Context) BackupInstanceBlogStorageArrayOutput
- type BackupInstanceBlogStorageInput
- type BackupInstanceBlogStorageMap
- func (BackupInstanceBlogStorageMap) ElementType() reflect.Type
- func (i BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutput() BackupInstanceBlogStorageMapOutput
- func (i BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutputWithContext(ctx context.Context) BackupInstanceBlogStorageMapOutput
- type BackupInstanceBlogStorageMapInput
- type BackupInstanceBlogStorageMapOutput
- func (BackupInstanceBlogStorageMapOutput) ElementType() reflect.Type
- func (o BackupInstanceBlogStorageMapOutput) MapIndex(k pulumi.StringInput) BackupInstanceBlogStorageOutput
- func (o BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutput() BackupInstanceBlogStorageMapOutput
- func (o BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutputWithContext(ctx context.Context) BackupInstanceBlogStorageMapOutput
- type BackupInstanceBlogStorageOutput
- func (o BackupInstanceBlogStorageOutput) BackupPolicyId() pulumi.StringOutput
- func (BackupInstanceBlogStorageOutput) ElementType() reflect.Type
- func (o BackupInstanceBlogStorageOutput) Location() pulumi.StringOutput
- func (o BackupInstanceBlogStorageOutput) Name() pulumi.StringOutput
- func (o BackupInstanceBlogStorageOutput) StorageAccountId() pulumi.StringOutput
- func (o BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutput() BackupInstanceBlogStorageOutput
- func (o BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutputWithContext(ctx context.Context) BackupInstanceBlogStorageOutput
- func (o BackupInstanceBlogStorageOutput) VaultId() pulumi.StringOutput
- type BackupInstanceBlogStorageState
- type BackupInstanceDisk
- type BackupInstanceDiskArgs
- type BackupInstanceDiskArray
- type BackupInstanceDiskArrayInput
- type BackupInstanceDiskArrayOutput
- func (BackupInstanceDiskArrayOutput) ElementType() reflect.Type
- func (o BackupInstanceDiskArrayOutput) Index(i pulumi.IntInput) BackupInstanceDiskOutput
- func (o BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutput() BackupInstanceDiskArrayOutput
- func (o BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutputWithContext(ctx context.Context) BackupInstanceDiskArrayOutput
- type BackupInstanceDiskInput
- type BackupInstanceDiskMap
- type BackupInstanceDiskMapInput
- type BackupInstanceDiskMapOutput
- func (BackupInstanceDiskMapOutput) ElementType() reflect.Type
- func (o BackupInstanceDiskMapOutput) MapIndex(k pulumi.StringInput) BackupInstanceDiskOutput
- func (o BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutput() BackupInstanceDiskMapOutput
- func (o BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutputWithContext(ctx context.Context) BackupInstanceDiskMapOutput
- type BackupInstanceDiskOutput
- func (o BackupInstanceDiskOutput) BackupPolicyId() pulumi.StringOutput
- func (o BackupInstanceDiskOutput) DiskId() pulumi.StringOutput
- func (BackupInstanceDiskOutput) ElementType() reflect.Type
- func (o BackupInstanceDiskOutput) Location() pulumi.StringOutput
- func (o BackupInstanceDiskOutput) Name() pulumi.StringOutput
- func (o BackupInstanceDiskOutput) SnapshotResourceGroupName() pulumi.StringOutput
- func (o BackupInstanceDiskOutput) ToBackupInstanceDiskOutput() BackupInstanceDiskOutput
- func (o BackupInstanceDiskOutput) ToBackupInstanceDiskOutputWithContext(ctx context.Context) BackupInstanceDiskOutput
- func (o BackupInstanceDiskOutput) VaultId() pulumi.StringOutput
- type BackupInstanceDiskState
- type BackupInstancePostgresql
- type BackupInstancePostgresqlArgs
- type BackupInstancePostgresqlArray
- func (BackupInstancePostgresqlArray) ElementType() reflect.Type
- func (i BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutput() BackupInstancePostgresqlArrayOutput
- func (i BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutputWithContext(ctx context.Context) BackupInstancePostgresqlArrayOutput
- type BackupInstancePostgresqlArrayInput
- type BackupInstancePostgresqlArrayOutput
- func (BackupInstancePostgresqlArrayOutput) ElementType() reflect.Type
- func (o BackupInstancePostgresqlArrayOutput) Index(i pulumi.IntInput) BackupInstancePostgresqlOutput
- func (o BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutput() BackupInstancePostgresqlArrayOutput
- func (o BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutputWithContext(ctx context.Context) BackupInstancePostgresqlArrayOutput
- type BackupInstancePostgresqlInput
- type BackupInstancePostgresqlMap
- func (BackupInstancePostgresqlMap) ElementType() reflect.Type
- func (i BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutput() BackupInstancePostgresqlMapOutput
- func (i BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutputWithContext(ctx context.Context) BackupInstancePostgresqlMapOutput
- type BackupInstancePostgresqlMapInput
- type BackupInstancePostgresqlMapOutput
- func (BackupInstancePostgresqlMapOutput) ElementType() reflect.Type
- func (o BackupInstancePostgresqlMapOutput) MapIndex(k pulumi.StringInput) BackupInstancePostgresqlOutput
- func (o BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutput() BackupInstancePostgresqlMapOutput
- func (o BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutputWithContext(ctx context.Context) BackupInstancePostgresqlMapOutput
- type BackupInstancePostgresqlOutput
- func (o BackupInstancePostgresqlOutput) BackupPolicyId() pulumi.StringOutput
- func (o BackupInstancePostgresqlOutput) DatabaseCredentialKeyVaultSecretId() pulumi.StringPtrOutput
- func (o BackupInstancePostgresqlOutput) DatabaseId() pulumi.StringOutput
- func (BackupInstancePostgresqlOutput) ElementType() reflect.Type
- func (o BackupInstancePostgresqlOutput) Location() pulumi.StringOutput
- func (o BackupInstancePostgresqlOutput) Name() pulumi.StringOutput
- func (o BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutput() BackupInstancePostgresqlOutput
- func (o BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutputWithContext(ctx context.Context) BackupInstancePostgresqlOutput
- func (o BackupInstancePostgresqlOutput) VaultId() pulumi.StringOutput
- type BackupInstancePostgresqlState
- type BackupPolicyBlobStorage
- type BackupPolicyBlobStorageArgs
- type BackupPolicyBlobStorageArray
- func (BackupPolicyBlobStorageArray) ElementType() reflect.Type
- func (i BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutput() BackupPolicyBlobStorageArrayOutput
- func (i BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutputWithContext(ctx context.Context) BackupPolicyBlobStorageArrayOutput
- type BackupPolicyBlobStorageArrayInput
- type BackupPolicyBlobStorageArrayOutput
- func (BackupPolicyBlobStorageArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyBlobStorageArrayOutput) Index(i pulumi.IntInput) BackupPolicyBlobStorageOutput
- func (o BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutput() BackupPolicyBlobStorageArrayOutput
- func (o BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutputWithContext(ctx context.Context) BackupPolicyBlobStorageArrayOutput
- type BackupPolicyBlobStorageInput
- type BackupPolicyBlobStorageMap
- func (BackupPolicyBlobStorageMap) ElementType() reflect.Type
- func (i BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutput() BackupPolicyBlobStorageMapOutput
- func (i BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutputWithContext(ctx context.Context) BackupPolicyBlobStorageMapOutput
- type BackupPolicyBlobStorageMapInput
- type BackupPolicyBlobStorageMapOutput
- func (BackupPolicyBlobStorageMapOutput) ElementType() reflect.Type
- func (o BackupPolicyBlobStorageMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyBlobStorageOutput
- func (o BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutput() BackupPolicyBlobStorageMapOutput
- func (o BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutputWithContext(ctx context.Context) BackupPolicyBlobStorageMapOutput
- type BackupPolicyBlobStorageOutput
- func (BackupPolicyBlobStorageOutput) ElementType() reflect.Type
- func (o BackupPolicyBlobStorageOutput) Name() pulumi.StringOutput
- func (o BackupPolicyBlobStorageOutput) RetentionDuration() pulumi.StringOutput
- func (o BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutput() BackupPolicyBlobStorageOutput
- func (o BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutputWithContext(ctx context.Context) BackupPolicyBlobStorageOutput
- func (o BackupPolicyBlobStorageOutput) VaultId() pulumi.StringOutput
- type BackupPolicyBlobStorageState
- type BackupPolicyDisk
- type BackupPolicyDiskArgs
- type BackupPolicyDiskArray
- type BackupPolicyDiskArrayInput
- type BackupPolicyDiskArrayOutput
- func (BackupPolicyDiskArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskArrayOutput) Index(i pulumi.IntInput) BackupPolicyDiskOutput
- func (o BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutput() BackupPolicyDiskArrayOutput
- func (o BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutputWithContext(ctx context.Context) BackupPolicyDiskArrayOutput
- type BackupPolicyDiskInput
- type BackupPolicyDiskMap
- type BackupPolicyDiskMapInput
- type BackupPolicyDiskMapOutput
- func (BackupPolicyDiskMapOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyDiskOutput
- func (o BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutput() BackupPolicyDiskMapOutput
- func (o BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutputWithContext(ctx context.Context) BackupPolicyDiskMapOutput
- type BackupPolicyDiskOutput
- func (o BackupPolicyDiskOutput) BackupRepeatingTimeIntervals() pulumi.StringArrayOutput
- func (o BackupPolicyDiskOutput) DefaultRetentionDuration() pulumi.StringOutput
- func (BackupPolicyDiskOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskOutput) Name() pulumi.StringOutput
- func (o BackupPolicyDiskOutput) RetentionRules() BackupPolicyDiskRetentionRuleArrayOutput
- func (o BackupPolicyDiskOutput) ToBackupPolicyDiskOutput() BackupPolicyDiskOutput
- func (o BackupPolicyDiskOutput) ToBackupPolicyDiskOutputWithContext(ctx context.Context) BackupPolicyDiskOutput
- func (o BackupPolicyDiskOutput) VaultId() pulumi.StringOutput
- type BackupPolicyDiskRetentionRule
- type BackupPolicyDiskRetentionRuleArgs
- func (BackupPolicyDiskRetentionRuleArgs) ElementType() reflect.Type
- func (i BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutput() BackupPolicyDiskRetentionRuleOutput
- func (i BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleOutput
- type BackupPolicyDiskRetentionRuleArray
- func (BackupPolicyDiskRetentionRuleArray) ElementType() reflect.Type
- func (i BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutput() BackupPolicyDiskRetentionRuleArrayOutput
- func (i BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleArrayOutput
- type BackupPolicyDiskRetentionRuleArrayInput
- type BackupPolicyDiskRetentionRuleArrayOutput
- func (BackupPolicyDiskRetentionRuleArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskRetentionRuleArrayOutput) Index(i pulumi.IntInput) BackupPolicyDiskRetentionRuleOutput
- func (o BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutput() BackupPolicyDiskRetentionRuleArrayOutput
- func (o BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleArrayOutput
- type BackupPolicyDiskRetentionRuleCriteria
- type BackupPolicyDiskRetentionRuleCriteriaArgs
- func (BackupPolicyDiskRetentionRuleCriteriaArgs) ElementType() reflect.Type
- func (i BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutput() BackupPolicyDiskRetentionRuleCriteriaOutput
- func (i BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleCriteriaOutput
- type BackupPolicyDiskRetentionRuleCriteriaInput
- type BackupPolicyDiskRetentionRuleCriteriaOutput
- func (o BackupPolicyDiskRetentionRuleCriteriaOutput) AbsoluteCriteria() pulumi.StringPtrOutput
- func (BackupPolicyDiskRetentionRuleCriteriaOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutput() BackupPolicyDiskRetentionRuleCriteriaOutput
- func (o BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleCriteriaOutput
- type BackupPolicyDiskRetentionRuleInput
- type BackupPolicyDiskRetentionRuleOutput
- func (o BackupPolicyDiskRetentionRuleOutput) Criteria() BackupPolicyDiskRetentionRuleCriteriaOutput
- func (o BackupPolicyDiskRetentionRuleOutput) Duration() pulumi.StringOutput
- func (BackupPolicyDiskRetentionRuleOutput) ElementType() reflect.Type
- func (o BackupPolicyDiskRetentionRuleOutput) Name() pulumi.StringOutput
- func (o BackupPolicyDiskRetentionRuleOutput) Priority() pulumi.IntOutput
- func (o BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutput() BackupPolicyDiskRetentionRuleOutput
- func (o BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleOutput
- type BackupPolicyDiskState
- type BackupPolicyPostgresql
- type BackupPolicyPostgresqlArgs
- type BackupPolicyPostgresqlArray
- func (BackupPolicyPostgresqlArray) ElementType() reflect.Type
- func (i BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutput() BackupPolicyPostgresqlArrayOutput
- func (i BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlArrayOutput
- type BackupPolicyPostgresqlArrayInput
- type BackupPolicyPostgresqlArrayOutput
- func (BackupPolicyPostgresqlArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlArrayOutput) Index(i pulumi.IntInput) BackupPolicyPostgresqlOutput
- func (o BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutput() BackupPolicyPostgresqlArrayOutput
- func (o BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlArrayOutput
- type BackupPolicyPostgresqlInput
- type BackupPolicyPostgresqlMap
- type BackupPolicyPostgresqlMapInput
- type BackupPolicyPostgresqlMapOutput
- func (BackupPolicyPostgresqlMapOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyPostgresqlOutput
- func (o BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutput() BackupPolicyPostgresqlMapOutput
- func (o BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutputWithContext(ctx context.Context) BackupPolicyPostgresqlMapOutput
- type BackupPolicyPostgresqlOutput
- func (o BackupPolicyPostgresqlOutput) BackupRepeatingTimeIntervals() pulumi.StringArrayOutput
- func (o BackupPolicyPostgresqlOutput) DefaultRetentionDuration() pulumi.StringOutput
- func (BackupPolicyPostgresqlOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlOutput) Name() pulumi.StringOutput
- func (o BackupPolicyPostgresqlOutput) ResourceGroupName() pulumi.StringOutput
- func (o BackupPolicyPostgresqlOutput) RetentionRules() BackupPolicyPostgresqlRetentionRuleArrayOutput
- func (o BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutput() BackupPolicyPostgresqlOutput
- func (o BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutputWithContext(ctx context.Context) BackupPolicyPostgresqlOutput
- func (o BackupPolicyPostgresqlOutput) VaultName() pulumi.StringOutput
- type BackupPolicyPostgresqlRetentionRule
- type BackupPolicyPostgresqlRetentionRuleArgs
- func (BackupPolicyPostgresqlRetentionRuleArgs) ElementType() reflect.Type
- func (i BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutput() BackupPolicyPostgresqlRetentionRuleOutput
- func (i BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleOutput
- type BackupPolicyPostgresqlRetentionRuleArray
- func (BackupPolicyPostgresqlRetentionRuleArray) ElementType() reflect.Type
- func (i BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutput() BackupPolicyPostgresqlRetentionRuleArrayOutput
- func (i BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleArrayOutput
- type BackupPolicyPostgresqlRetentionRuleArrayInput
- type BackupPolicyPostgresqlRetentionRuleArrayOutput
- func (BackupPolicyPostgresqlRetentionRuleArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlRetentionRuleArrayOutput) Index(i pulumi.IntInput) BackupPolicyPostgresqlRetentionRuleOutput
- func (o BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutput() BackupPolicyPostgresqlRetentionRuleArrayOutput
- func (o BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleArrayOutput
- type BackupPolicyPostgresqlRetentionRuleCriteria
- type BackupPolicyPostgresqlRetentionRuleCriteriaArgs
- func (BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ElementType() reflect.Type
- func (i BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- func (i BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- type BackupPolicyPostgresqlRetentionRuleCriteriaInput
- type BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) AbsoluteCriteria() pulumi.StringPtrOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) DaysOfWeeks() pulumi.StringArrayOutput
- func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) MonthsOfYears() pulumi.StringArrayOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ScheduledBackupTimes() pulumi.StringArrayOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) WeeksOfMonths() pulumi.StringArrayOutput
- type BackupPolicyPostgresqlRetentionRuleInput
- type BackupPolicyPostgresqlRetentionRuleOutput
- func (o BackupPolicyPostgresqlRetentionRuleOutput) Criteria() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
- func (o BackupPolicyPostgresqlRetentionRuleOutput) Duration() pulumi.StringOutput
- func (BackupPolicyPostgresqlRetentionRuleOutput) ElementType() reflect.Type
- func (o BackupPolicyPostgresqlRetentionRuleOutput) Name() pulumi.StringOutput
- func (o BackupPolicyPostgresqlRetentionRuleOutput) Priority() pulumi.IntOutput
- func (o BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutput() BackupPolicyPostgresqlRetentionRuleOutput
- func (o BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleOutput
- type BackupPolicyPostgresqlState
- type BackupVault
- type BackupVaultArgs
- type BackupVaultArray
- type BackupVaultArrayInput
- type BackupVaultArrayOutput
- func (BackupVaultArrayOutput) ElementType() reflect.Type
- func (o BackupVaultArrayOutput) Index(i pulumi.IntInput) BackupVaultOutput
- func (o BackupVaultArrayOutput) ToBackupVaultArrayOutput() BackupVaultArrayOutput
- func (o BackupVaultArrayOutput) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput
- type BackupVaultIdentity
- type BackupVaultIdentityArgs
- func (BackupVaultIdentityArgs) ElementType() reflect.Type
- func (i BackupVaultIdentityArgs) ToBackupVaultIdentityOutput() BackupVaultIdentityOutput
- func (i BackupVaultIdentityArgs) ToBackupVaultIdentityOutputWithContext(ctx context.Context) BackupVaultIdentityOutput
- func (i BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
- func (i BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
- type BackupVaultIdentityInput
- type BackupVaultIdentityOutput
- func (BackupVaultIdentityOutput) ElementType() reflect.Type
- func (o BackupVaultIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o BackupVaultIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o BackupVaultIdentityOutput) ToBackupVaultIdentityOutput() BackupVaultIdentityOutput
- func (o BackupVaultIdentityOutput) ToBackupVaultIdentityOutputWithContext(ctx context.Context) BackupVaultIdentityOutput
- func (o BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
- func (o BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
- func (o BackupVaultIdentityOutput) Type() pulumi.StringOutput
- type BackupVaultIdentityPtrInput
- type BackupVaultIdentityPtrOutput
- func (o BackupVaultIdentityPtrOutput) Elem() BackupVaultIdentityOutput
- func (BackupVaultIdentityPtrOutput) ElementType() reflect.Type
- func (o BackupVaultIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o BackupVaultIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
- func (o BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
- func (o BackupVaultIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type BackupVaultInput
- type BackupVaultMap
- type BackupVaultMapInput
- type BackupVaultMapOutput
- func (BackupVaultMapOutput) ElementType() reflect.Type
- func (o BackupVaultMapOutput) MapIndex(k pulumi.StringInput) BackupVaultOutput
- func (o BackupVaultMapOutput) ToBackupVaultMapOutput() BackupVaultMapOutput
- func (o BackupVaultMapOutput) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput
- type BackupVaultOutput
- func (o BackupVaultOutput) DatastoreType() pulumi.StringOutput
- func (BackupVaultOutput) ElementType() reflect.Type
- func (o BackupVaultOutput) Identity() BackupVaultIdentityPtrOutput
- func (o BackupVaultOutput) Location() pulumi.StringOutput
- func (o BackupVaultOutput) Name() pulumi.StringOutput
- func (o BackupVaultOutput) Redundancy() pulumi.StringOutput
- func (o BackupVaultOutput) ResourceGroupName() pulumi.StringOutput
- func (o BackupVaultOutput) Tags() pulumi.StringMapOutput
- func (o BackupVaultOutput) ToBackupVaultOutput() BackupVaultOutput
- func (o BackupVaultOutput) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput
- type BackupVaultState
- type GetBackupVaultIdentity
- type GetBackupVaultIdentityArgs
- type GetBackupVaultIdentityArray
- func (GetBackupVaultIdentityArray) ElementType() reflect.Type
- func (i GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutput() GetBackupVaultIdentityArrayOutput
- func (i GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutputWithContext(ctx context.Context) GetBackupVaultIdentityArrayOutput
- type GetBackupVaultIdentityArrayInput
- type GetBackupVaultIdentityArrayOutput
- func (GetBackupVaultIdentityArrayOutput) ElementType() reflect.Type
- func (o GetBackupVaultIdentityArrayOutput) Index(i pulumi.IntInput) GetBackupVaultIdentityOutput
- func (o GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutput() GetBackupVaultIdentityArrayOutput
- func (o GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutputWithContext(ctx context.Context) GetBackupVaultIdentityArrayOutput
- type GetBackupVaultIdentityInput
- type GetBackupVaultIdentityOutput
- func (GetBackupVaultIdentityOutput) ElementType() reflect.Type
- func (o GetBackupVaultIdentityOutput) PrincipalId() pulumi.StringOutput
- func (o GetBackupVaultIdentityOutput) TenantId() pulumi.StringOutput
- func (o GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutput() GetBackupVaultIdentityOutput
- func (o GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutputWithContext(ctx context.Context) GetBackupVaultIdentityOutput
- func (o GetBackupVaultIdentityOutput) Type() pulumi.StringOutput
- type LookupBackupVaultArgs
- type LookupBackupVaultOutputArgs
- type LookupBackupVaultResult
- type LookupBackupVaultResultOutput
- func (o LookupBackupVaultResultOutput) DatastoreType() pulumi.StringOutput
- func (LookupBackupVaultResultOutput) ElementType() reflect.Type
- func (o LookupBackupVaultResultOutput) Id() pulumi.StringOutput
- func (o LookupBackupVaultResultOutput) Identities() GetBackupVaultIdentityArrayOutput
- func (o LookupBackupVaultResultOutput) Location() pulumi.StringOutput
- func (o LookupBackupVaultResultOutput) Name() pulumi.StringOutput
- func (o LookupBackupVaultResultOutput) Redundancy() pulumi.StringOutput
- func (o LookupBackupVaultResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupBackupVaultResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutput() LookupBackupVaultResultOutput
- func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutputWithContext(ctx context.Context) LookupBackupVaultResultOutput
- type ResourceGuard
- type ResourceGuardArgs
- type ResourceGuardArray
- type ResourceGuardArrayInput
- type ResourceGuardArrayOutput
- func (ResourceGuardArrayOutput) ElementType() reflect.Type
- func (o ResourceGuardArrayOutput) Index(i pulumi.IntInput) ResourceGuardOutput
- func (o ResourceGuardArrayOutput) ToResourceGuardArrayOutput() ResourceGuardArrayOutput
- func (o ResourceGuardArrayOutput) ToResourceGuardArrayOutputWithContext(ctx context.Context) ResourceGuardArrayOutput
- type ResourceGuardInput
- type ResourceGuardMap
- type ResourceGuardMapInput
- type ResourceGuardMapOutput
- func (ResourceGuardMapOutput) ElementType() reflect.Type
- func (o ResourceGuardMapOutput) MapIndex(k pulumi.StringInput) ResourceGuardOutput
- func (o ResourceGuardMapOutput) ToResourceGuardMapOutput() ResourceGuardMapOutput
- func (o ResourceGuardMapOutput) ToResourceGuardMapOutputWithContext(ctx context.Context) ResourceGuardMapOutput
- type ResourceGuardOutput
- func (ResourceGuardOutput) ElementType() reflect.Type
- func (o ResourceGuardOutput) Location() pulumi.StringOutput
- func (o ResourceGuardOutput) Name() pulumi.StringOutput
- func (o ResourceGuardOutput) ResourceGroupName() pulumi.StringOutput
- func (o ResourceGuardOutput) Tags() pulumi.StringMapOutput
- func (o ResourceGuardOutput) ToResourceGuardOutput() ResourceGuardOutput
- func (o ResourceGuardOutput) ToResourceGuardOutputWithContext(ctx context.Context) ResourceGuardOutput
- func (o ResourceGuardOutput) VaultCriticalOperationExclusionLists() pulumi.StringArrayOutput
- type ResourceGuardState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInstanceBlogStorage ¶
type BackupInstanceBlogStorage struct { pulumi.CustomResourceState // The ID of the Backup Policy. BackupPolicyId pulumi.StringOutput `pulumi:"backupPolicyId"` // The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. Name pulumi.StringOutput `pulumi:"name"` // The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"` // The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. VaultId pulumi.StringOutput `pulumi:"vaultId"` }
Manages a Backup Instance Blob Storage.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage" "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 } exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), }) if err != nil { return err } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), Identity: &dataprotection.BackupVaultIdentityArgs{ Type: pulumi.String("SystemAssigned"), }, }) if err != nil { return err } exampleAssignment, err := authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{ Scope: exampleAccount.ID(), RoleDefinitionName: pulumi.String("Storage Account Backup Contributor"), PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput), }) if err != nil { return err } exampleBackupPolicyBlobStorage, err := dataprotection.NewBackupPolicyBlobStorage(ctx, "exampleBackupPolicyBlobStorage", &dataprotection.BackupPolicyBlobStorageArgs{ VaultId: exampleBackupVault.ID(), RetentionDuration: pulumi.String("P30D"), }) if err != nil { return err } _, err = dataprotection.NewBackupInstanceBlogStorage(ctx, "exampleBackupInstanceBlogStorage", &dataprotection.BackupInstanceBlogStorageArgs{ VaultId: exampleBackupVault.ID(), Location: exampleResourceGroup.Location, StorageAccountId: exampleAccount.ID(), BackupPolicyId: exampleBackupPolicyBlobStorage.ID(), }, pulumi.DependsOn([]pulumi.Resource{ exampleAssignment, })) if err != nil { return err } return nil }) }
```
## Import
Backup Instance Blob Storages can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupInstanceBlogStorage:BackupInstanceBlogStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1
```
func GetBackupInstanceBlogStorage ¶
func GetBackupInstanceBlogStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupInstanceBlogStorageState, opts ...pulumi.ResourceOption) (*BackupInstanceBlogStorage, error)
GetBackupInstanceBlogStorage gets an existing BackupInstanceBlogStorage 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 NewBackupInstanceBlogStorage ¶
func NewBackupInstanceBlogStorage(ctx *pulumi.Context, name string, args *BackupInstanceBlogStorageArgs, opts ...pulumi.ResourceOption) (*BackupInstanceBlogStorage, error)
NewBackupInstanceBlogStorage registers a new resource with the given unique name, arguments, and options.
func (*BackupInstanceBlogStorage) ElementType ¶
func (*BackupInstanceBlogStorage) ElementType() reflect.Type
func (*BackupInstanceBlogStorage) ToBackupInstanceBlogStorageOutput ¶
func (i *BackupInstanceBlogStorage) ToBackupInstanceBlogStorageOutput() BackupInstanceBlogStorageOutput
func (*BackupInstanceBlogStorage) ToBackupInstanceBlogStorageOutputWithContext ¶
func (i *BackupInstanceBlogStorage) ToBackupInstanceBlogStorageOutputWithContext(ctx context.Context) BackupInstanceBlogStorageOutput
type BackupInstanceBlogStorageArgs ¶
type BackupInstanceBlogStorageArgs struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringInput // The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. Name pulumi.StringPtrInput // The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. StorageAccountId pulumi.StringInput // The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. VaultId pulumi.StringInput }
The set of arguments for constructing a BackupInstanceBlogStorage resource.
func (BackupInstanceBlogStorageArgs) ElementType ¶
func (BackupInstanceBlogStorageArgs) ElementType() reflect.Type
type BackupInstanceBlogStorageArray ¶
type BackupInstanceBlogStorageArray []BackupInstanceBlogStorageInput
func (BackupInstanceBlogStorageArray) ElementType ¶
func (BackupInstanceBlogStorageArray) ElementType() reflect.Type
func (BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutput ¶
func (i BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutput() BackupInstanceBlogStorageArrayOutput
func (BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutputWithContext ¶
func (i BackupInstanceBlogStorageArray) ToBackupInstanceBlogStorageArrayOutputWithContext(ctx context.Context) BackupInstanceBlogStorageArrayOutput
type BackupInstanceBlogStorageArrayInput ¶
type BackupInstanceBlogStorageArrayInput interface { pulumi.Input ToBackupInstanceBlogStorageArrayOutput() BackupInstanceBlogStorageArrayOutput ToBackupInstanceBlogStorageArrayOutputWithContext(context.Context) BackupInstanceBlogStorageArrayOutput }
BackupInstanceBlogStorageArrayInput is an input type that accepts BackupInstanceBlogStorageArray and BackupInstanceBlogStorageArrayOutput values. You can construct a concrete instance of `BackupInstanceBlogStorageArrayInput` via:
BackupInstanceBlogStorageArray{ BackupInstanceBlogStorageArgs{...} }
type BackupInstanceBlogStorageArrayOutput ¶
type BackupInstanceBlogStorageArrayOutput struct{ *pulumi.OutputState }
func (BackupInstanceBlogStorageArrayOutput) ElementType ¶
func (BackupInstanceBlogStorageArrayOutput) ElementType() reflect.Type
func (BackupInstanceBlogStorageArrayOutput) Index ¶
func (o BackupInstanceBlogStorageArrayOutput) Index(i pulumi.IntInput) BackupInstanceBlogStorageOutput
func (BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutput ¶
func (o BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutput() BackupInstanceBlogStorageArrayOutput
func (BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutputWithContext ¶
func (o BackupInstanceBlogStorageArrayOutput) ToBackupInstanceBlogStorageArrayOutputWithContext(ctx context.Context) BackupInstanceBlogStorageArrayOutput
type BackupInstanceBlogStorageInput ¶
type BackupInstanceBlogStorageInput interface { pulumi.Input ToBackupInstanceBlogStorageOutput() BackupInstanceBlogStorageOutput ToBackupInstanceBlogStorageOutputWithContext(ctx context.Context) BackupInstanceBlogStorageOutput }
type BackupInstanceBlogStorageMap ¶
type BackupInstanceBlogStorageMap map[string]BackupInstanceBlogStorageInput
func (BackupInstanceBlogStorageMap) ElementType ¶
func (BackupInstanceBlogStorageMap) ElementType() reflect.Type
func (BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutput ¶
func (i BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutput() BackupInstanceBlogStorageMapOutput
func (BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutputWithContext ¶
func (i BackupInstanceBlogStorageMap) ToBackupInstanceBlogStorageMapOutputWithContext(ctx context.Context) BackupInstanceBlogStorageMapOutput
type BackupInstanceBlogStorageMapInput ¶
type BackupInstanceBlogStorageMapInput interface { pulumi.Input ToBackupInstanceBlogStorageMapOutput() BackupInstanceBlogStorageMapOutput ToBackupInstanceBlogStorageMapOutputWithContext(context.Context) BackupInstanceBlogStorageMapOutput }
BackupInstanceBlogStorageMapInput is an input type that accepts BackupInstanceBlogStorageMap and BackupInstanceBlogStorageMapOutput values. You can construct a concrete instance of `BackupInstanceBlogStorageMapInput` via:
BackupInstanceBlogStorageMap{ "key": BackupInstanceBlogStorageArgs{...} }
type BackupInstanceBlogStorageMapOutput ¶
type BackupInstanceBlogStorageMapOutput struct{ *pulumi.OutputState }
func (BackupInstanceBlogStorageMapOutput) ElementType ¶
func (BackupInstanceBlogStorageMapOutput) ElementType() reflect.Type
func (BackupInstanceBlogStorageMapOutput) MapIndex ¶
func (o BackupInstanceBlogStorageMapOutput) MapIndex(k pulumi.StringInput) BackupInstanceBlogStorageOutput
func (BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutput ¶
func (o BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutput() BackupInstanceBlogStorageMapOutput
func (BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutputWithContext ¶
func (o BackupInstanceBlogStorageMapOutput) ToBackupInstanceBlogStorageMapOutputWithContext(ctx context.Context) BackupInstanceBlogStorageMapOutput
type BackupInstanceBlogStorageOutput ¶
type BackupInstanceBlogStorageOutput struct{ *pulumi.OutputState }
func (BackupInstanceBlogStorageOutput) BackupPolicyId ¶ added in v5.5.0
func (o BackupInstanceBlogStorageOutput) BackupPolicyId() pulumi.StringOutput
The ID of the Backup Policy.
func (BackupInstanceBlogStorageOutput) ElementType ¶
func (BackupInstanceBlogStorageOutput) ElementType() reflect.Type
func (BackupInstanceBlogStorageOutput) Location ¶ added in v5.5.0
func (o BackupInstanceBlogStorageOutput) Location() pulumi.StringOutput
The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created.
func (BackupInstanceBlogStorageOutput) Name ¶ added in v5.5.0
func (o BackupInstanceBlogStorageOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created.
func (BackupInstanceBlogStorageOutput) StorageAccountId ¶ added in v5.5.0
func (o BackupInstanceBlogStorageOutput) StorageAccountId() pulumi.StringOutput
The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created.
func (BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutput ¶
func (o BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutput() BackupInstanceBlogStorageOutput
func (BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutputWithContext ¶
func (o BackupInstanceBlogStorageOutput) ToBackupInstanceBlogStorageOutputWithContext(ctx context.Context) BackupInstanceBlogStorageOutput
func (BackupInstanceBlogStorageOutput) VaultId ¶ added in v5.5.0
func (o BackupInstanceBlogStorageOutput) VaultId() pulumi.StringOutput
The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created.
type BackupInstanceBlogStorageState ¶
type BackupInstanceBlogStorageState struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringPtrInput // The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. Name pulumi.StringPtrInput // The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. StorageAccountId pulumi.StringPtrInput // The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. VaultId pulumi.StringPtrInput }
func (BackupInstanceBlogStorageState) ElementType ¶
func (BackupInstanceBlogStorageState) ElementType() reflect.Type
type BackupInstanceDisk ¶
type BackupInstanceDisk struct { pulumi.CustomResourceState // The ID of the Backup Policy. BackupPolicyId pulumi.StringOutput `pulumi:"backupPolicyId"` // The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created. DiskId pulumi.StringOutput `pulumi:"diskId"` // The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created. SnapshotResourceGroupName pulumi.StringOutput `pulumi:"snapshotResourceGroupName"` // The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. VaultId pulumi.StringOutput `pulumi:"vaultId"` }
Manages a Backup Instance to back up Disk.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 } exampleManagedDisk, err := compute.NewManagedDisk(ctx, "exampleManagedDisk", &compute.ManagedDiskArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, StorageAccountType: pulumi.String("Standard_LRS"), CreateOption: pulumi.String("Empty"), DiskSizeGb: pulumi.Int(1), }) if err != nil { return err } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), Identity: &dataprotection.BackupVaultIdentityArgs{ Type: pulumi.String("SystemAssigned"), }, }) if err != nil { return err } _, err = authorization.NewAssignment(ctx, "example1", &authorization.AssignmentArgs{ Scope: exampleResourceGroup.ID(), RoleDefinitionName: pulumi.String("Disk Snapshot Contributor"), PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput), }) if err != nil { return err } _, err = authorization.NewAssignment(ctx, "example2", &authorization.AssignmentArgs{ Scope: exampleManagedDisk.ID(), RoleDefinitionName: pulumi.String("Disk Backup Reader"), PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput), }) if err != nil { return err } exampleBackupPolicyDisk, err := dataprotection.NewBackupPolicyDisk(ctx, "exampleBackupPolicyDisk", &dataprotection.BackupPolicyDiskArgs{ VaultId: exampleBackupVault.ID(), BackupRepeatingTimeIntervals: pulumi.StringArray{ pulumi.String("R/2021-05-19T06:33:16+00:00/PT4H"), }, DefaultRetentionDuration: pulumi.String("P7D"), }) if err != nil { return err } _, err = dataprotection.NewBackupInstanceDisk(ctx, "exampleBackupInstanceDisk", &dataprotection.BackupInstanceDiskArgs{ Location: exampleBackupVault.Location, VaultId: exampleBackupVault.ID(), DiskId: exampleManagedDisk.ID(), SnapshotResourceGroupName: exampleResourceGroup.Name, BackupPolicyId: exampleBackupPolicyDisk.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Backup Instance Disks can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupInstanceDisk:BackupInstanceDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1
```
func GetBackupInstanceDisk ¶
func GetBackupInstanceDisk(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupInstanceDiskState, opts ...pulumi.ResourceOption) (*BackupInstanceDisk, error)
GetBackupInstanceDisk gets an existing BackupInstanceDisk 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 NewBackupInstanceDisk ¶
func NewBackupInstanceDisk(ctx *pulumi.Context, name string, args *BackupInstanceDiskArgs, opts ...pulumi.ResourceOption) (*BackupInstanceDisk, error)
NewBackupInstanceDisk registers a new resource with the given unique name, arguments, and options.
func (*BackupInstanceDisk) ElementType ¶
func (*BackupInstanceDisk) ElementType() reflect.Type
func (*BackupInstanceDisk) ToBackupInstanceDiskOutput ¶
func (i *BackupInstanceDisk) ToBackupInstanceDiskOutput() BackupInstanceDiskOutput
func (*BackupInstanceDisk) ToBackupInstanceDiskOutputWithContext ¶
func (i *BackupInstanceDisk) ToBackupInstanceDiskOutputWithContext(ctx context.Context) BackupInstanceDiskOutput
type BackupInstanceDiskArgs ¶
type BackupInstanceDiskArgs struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringInput // The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created. DiskId pulumi.StringInput // The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created. Name pulumi.StringPtrInput // The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created. SnapshotResourceGroupName pulumi.StringInput // The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. VaultId pulumi.StringInput }
The set of arguments for constructing a BackupInstanceDisk resource.
func (BackupInstanceDiskArgs) ElementType ¶
func (BackupInstanceDiskArgs) ElementType() reflect.Type
type BackupInstanceDiskArray ¶
type BackupInstanceDiskArray []BackupInstanceDiskInput
func (BackupInstanceDiskArray) ElementType ¶
func (BackupInstanceDiskArray) ElementType() reflect.Type
func (BackupInstanceDiskArray) ToBackupInstanceDiskArrayOutput ¶
func (i BackupInstanceDiskArray) ToBackupInstanceDiskArrayOutput() BackupInstanceDiskArrayOutput
func (BackupInstanceDiskArray) ToBackupInstanceDiskArrayOutputWithContext ¶
func (i BackupInstanceDiskArray) ToBackupInstanceDiskArrayOutputWithContext(ctx context.Context) BackupInstanceDiskArrayOutput
type BackupInstanceDiskArrayInput ¶
type BackupInstanceDiskArrayInput interface { pulumi.Input ToBackupInstanceDiskArrayOutput() BackupInstanceDiskArrayOutput ToBackupInstanceDiskArrayOutputWithContext(context.Context) BackupInstanceDiskArrayOutput }
BackupInstanceDiskArrayInput is an input type that accepts BackupInstanceDiskArray and BackupInstanceDiskArrayOutput values. You can construct a concrete instance of `BackupInstanceDiskArrayInput` via:
BackupInstanceDiskArray{ BackupInstanceDiskArgs{...} }
type BackupInstanceDiskArrayOutput ¶
type BackupInstanceDiskArrayOutput struct{ *pulumi.OutputState }
func (BackupInstanceDiskArrayOutput) ElementType ¶
func (BackupInstanceDiskArrayOutput) ElementType() reflect.Type
func (BackupInstanceDiskArrayOutput) Index ¶
func (o BackupInstanceDiskArrayOutput) Index(i pulumi.IntInput) BackupInstanceDiskOutput
func (BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutput ¶
func (o BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutput() BackupInstanceDiskArrayOutput
func (BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutputWithContext ¶
func (o BackupInstanceDiskArrayOutput) ToBackupInstanceDiskArrayOutputWithContext(ctx context.Context) BackupInstanceDiskArrayOutput
type BackupInstanceDiskInput ¶
type BackupInstanceDiskInput interface { pulumi.Input ToBackupInstanceDiskOutput() BackupInstanceDiskOutput ToBackupInstanceDiskOutputWithContext(ctx context.Context) BackupInstanceDiskOutput }
type BackupInstanceDiskMap ¶
type BackupInstanceDiskMap map[string]BackupInstanceDiskInput
func (BackupInstanceDiskMap) ElementType ¶
func (BackupInstanceDiskMap) ElementType() reflect.Type
func (BackupInstanceDiskMap) ToBackupInstanceDiskMapOutput ¶
func (i BackupInstanceDiskMap) ToBackupInstanceDiskMapOutput() BackupInstanceDiskMapOutput
func (BackupInstanceDiskMap) ToBackupInstanceDiskMapOutputWithContext ¶
func (i BackupInstanceDiskMap) ToBackupInstanceDiskMapOutputWithContext(ctx context.Context) BackupInstanceDiskMapOutput
type BackupInstanceDiskMapInput ¶
type BackupInstanceDiskMapInput interface { pulumi.Input ToBackupInstanceDiskMapOutput() BackupInstanceDiskMapOutput ToBackupInstanceDiskMapOutputWithContext(context.Context) BackupInstanceDiskMapOutput }
BackupInstanceDiskMapInput is an input type that accepts BackupInstanceDiskMap and BackupInstanceDiskMapOutput values. You can construct a concrete instance of `BackupInstanceDiskMapInput` via:
BackupInstanceDiskMap{ "key": BackupInstanceDiskArgs{...} }
type BackupInstanceDiskMapOutput ¶
type BackupInstanceDiskMapOutput struct{ *pulumi.OutputState }
func (BackupInstanceDiskMapOutput) ElementType ¶
func (BackupInstanceDiskMapOutput) ElementType() reflect.Type
func (BackupInstanceDiskMapOutput) MapIndex ¶
func (o BackupInstanceDiskMapOutput) MapIndex(k pulumi.StringInput) BackupInstanceDiskOutput
func (BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutput ¶
func (o BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutput() BackupInstanceDiskMapOutput
func (BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutputWithContext ¶
func (o BackupInstanceDiskMapOutput) ToBackupInstanceDiskMapOutputWithContext(ctx context.Context) BackupInstanceDiskMapOutput
type BackupInstanceDiskOutput ¶
type BackupInstanceDiskOutput struct{ *pulumi.OutputState }
func (BackupInstanceDiskOutput) BackupPolicyId ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) BackupPolicyId() pulumi.StringOutput
The ID of the Backup Policy.
func (BackupInstanceDiskOutput) DiskId ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) DiskId() pulumi.StringOutput
The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
func (BackupInstanceDiskOutput) ElementType ¶
func (BackupInstanceDiskOutput) ElementType() reflect.Type
func (BackupInstanceDiskOutput) Location ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) Location() pulumi.StringOutput
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
func (BackupInstanceDiskOutput) Name ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
func (BackupInstanceDiskOutput) SnapshotResourceGroupName ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) SnapshotResourceGroupName() pulumi.StringOutput
The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
func (BackupInstanceDiskOutput) ToBackupInstanceDiskOutput ¶
func (o BackupInstanceDiskOutput) ToBackupInstanceDiskOutput() BackupInstanceDiskOutput
func (BackupInstanceDiskOutput) ToBackupInstanceDiskOutputWithContext ¶
func (o BackupInstanceDiskOutput) ToBackupInstanceDiskOutputWithContext(ctx context.Context) BackupInstanceDiskOutput
func (BackupInstanceDiskOutput) VaultId ¶ added in v5.5.0
func (o BackupInstanceDiskOutput) VaultId() pulumi.StringOutput
The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
type BackupInstanceDiskState ¶
type BackupInstanceDiskState struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringPtrInput // The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created. DiskId pulumi.StringPtrInput // The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created. Name pulumi.StringPtrInput // The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created. SnapshotResourceGroupName pulumi.StringPtrInput // The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created. VaultId pulumi.StringPtrInput }
func (BackupInstanceDiskState) ElementType ¶
func (BackupInstanceDiskState) ElementType() reflect.Type
type BackupInstancePostgresql ¶
type BackupInstancePostgresql struct { pulumi.CustomResourceState // The ID of the Backup Policy. BackupPolicyId pulumi.StringOutput `pulumi:"backupPolicyId"` // The ID or versionless ID of the key vault secret which stores the connection string of the database. DatabaseCredentialKeyVaultSecretId pulumi.StringPtrOutput `pulumi:"databaseCredentialKeyVaultSecretId"` // The ID of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. DatabaseId pulumi.StringOutput `pulumi:"databaseId"` // The location of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Backup Instance PostgreSQL. Changing this forces a new Backup Instance PostgreSQL to be created. Name pulumi.StringOutput `pulumi:"name"` // The ID of the Backup Vault within which the PostgreSQL Backup Instance should exist. Changing this forces a new Backup Instance PostgreSQL to be created. VaultId pulumi.StringOutput `pulumi:"vaultId"` }
Manages a Backup Instance to back up PostgreSQL.
> **Note:** Before using this resource, there are some prerequisite permissions for configure backup and restore. See more details from <https://docs.microsoft.com/azure/backup/backup-azure-database-postgresql#prerequisite-permissions-for-configure-backup-and-restore>.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/postgresql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleServer, err := postgresql.NewServer(ctx, "exampleServer", &postgresql.ServerArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, SkuName: pulumi.String("B_Gen5_2"), StorageMb: pulumi.Int(5120), BackupRetentionDays: pulumi.Int(7), GeoRedundantBackupEnabled: pulumi.Bool(false), AutoGrowEnabled: pulumi.Bool(true), AdministratorLogin: pulumi.String("psqladmin"), AdministratorLoginPassword: pulumi.String("H@Sh1CoR3!"), Version: pulumi.String("9.5"), SslEnforcementEnabled: pulumi.Bool(true), }) if err != nil { return err } _, err = postgresql.NewFirewallRule(ctx, "exampleFirewallRule", &postgresql.FirewallRuleArgs{ ResourceGroupName: exampleResourceGroup.Name, ServerName: exampleServer.Name, StartIpAddress: pulumi.String("0.0.0.0"), EndIpAddress: pulumi.String("0.0.0.0"), }) if err != nil { return err } exampleDatabase, err := postgresql.NewDatabase(ctx, "exampleDatabase", &postgresql.DatabaseArgs{ ResourceGroupName: exampleResourceGroup.Name, ServerName: exampleServer.Name, Charset: pulumi.String("UTF8"), Collation: pulumi.String("English_United States.1252"), }) if err != nil { return err } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), Identity: &dataprotection.BackupVaultIdentityArgs{ Type: pulumi.String("SystemAssigned"), }, }) if err != nil { return err } exampleKeyVault, err := keyvault.NewKeyVault(ctx, "exampleKeyVault", &keyvault.KeyVaultArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, TenantId: *pulumi.String(current.TenantId), SkuName: pulumi.String("premium"), SoftDeleteRetentionDays: pulumi.Int(7), AccessPolicies: keyvault.KeyVaultAccessPolicyArray{ &keyvault.KeyVaultAccessPolicyArgs{ TenantId: *pulumi.String(current.TenantId), ObjectId: *pulumi.String(current.ObjectId), KeyPermissions: pulumi.StringArray{ pulumi.String("Create"), pulumi.String("Get"), }, SecretPermissions: pulumi.StringArray{ pulumi.String("Set"), pulumi.String("Get"), pulumi.String("Delete"), pulumi.String("Purge"), pulumi.String("Recover"), }, }, &keyvault.KeyVaultAccessPolicyArgs{ TenantId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.TenantId, nil }).(pulumi.StringPtrOutput), ObjectId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput), KeyPermissions: pulumi.StringArray{ pulumi.String("Create"), pulumi.String("Get"), }, SecretPermissions: pulumi.StringArray{ pulumi.String("Set"), pulumi.String("Get"), pulumi.String("Delete"), pulumi.String("Purge"), pulumi.String("Recover"), }, }, }, }) if err != nil { return err } exampleSecret, err := keyvault.NewSecret(ctx, "exampleSecret", &keyvault.SecretArgs{ Value: pulumi.All(exampleServer.Name, exampleDatabase.Name, exampleServer.Name).ApplyT(func(_args []interface{}) (string, error) { exampleServerName := _args[0].(string) exampleDatabaseName := _args[1].(string) exampleServerName1 := _args[2].(string) return fmt.Sprintf("Server=%v.postgres.database.azure.com;Database=%v;Port=5432;User Id=psqladmin@%v;Password=H@Sh1CoR3!;Ssl Mode=Require;", exampleServerName, exampleDatabaseName, exampleServerName1), nil }).(pulumi.StringOutput), KeyVaultId: exampleKeyVault.ID(), }) if err != nil { return err } exampleBackupPolicyPostgresql, err := dataprotection.NewBackupPolicyPostgresql(ctx, "exampleBackupPolicyPostgresql", &dataprotection.BackupPolicyPostgresqlArgs{ ResourceGroupName: exampleResourceGroup.Name, VaultName: exampleBackupVault.Name, BackupRepeatingTimeIntervals: pulumi.StringArray{ pulumi.String("R/2021-05-23T02:30:00+00:00/P1W"), }, DefaultRetentionDuration: pulumi.String("P4M"), }) if err != nil { return err } _, err = authorization.NewAssignment(ctx, "exampleAssignment", &authorization.AssignmentArgs{ Scope: exampleServer.ID(), RoleDefinitionName: pulumi.String("Reader"), PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput), }) if err != nil { return err } _, err = dataprotection.NewBackupInstancePostgresql(ctx, "exampleBackupInstancePostgresql", &dataprotection.BackupInstancePostgresqlArgs{ Location: exampleResourceGroup.Location, VaultId: exampleBackupVault.ID(), DatabaseId: exampleDatabase.ID(), BackupPolicyId: exampleBackupPolicyPostgresql.ID(), DatabaseCredentialKeyVaultSecretId: exampleSecret.VersionlessId, }) if err != nil { return err } return nil }) }
```
## Import
Backup Instance PostgreSQL can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupInstancePostgresql:BackupInstancePostgresql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1
```
func GetBackupInstancePostgresql ¶
func GetBackupInstancePostgresql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupInstancePostgresqlState, opts ...pulumi.ResourceOption) (*BackupInstancePostgresql, error)
GetBackupInstancePostgresql gets an existing BackupInstancePostgresql 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 NewBackupInstancePostgresql ¶
func NewBackupInstancePostgresql(ctx *pulumi.Context, name string, args *BackupInstancePostgresqlArgs, opts ...pulumi.ResourceOption) (*BackupInstancePostgresql, error)
NewBackupInstancePostgresql registers a new resource with the given unique name, arguments, and options.
func (*BackupInstancePostgresql) ElementType ¶
func (*BackupInstancePostgresql) ElementType() reflect.Type
func (*BackupInstancePostgresql) ToBackupInstancePostgresqlOutput ¶
func (i *BackupInstancePostgresql) ToBackupInstancePostgresqlOutput() BackupInstancePostgresqlOutput
func (*BackupInstancePostgresql) ToBackupInstancePostgresqlOutputWithContext ¶
func (i *BackupInstancePostgresql) ToBackupInstancePostgresqlOutputWithContext(ctx context.Context) BackupInstancePostgresqlOutput
type BackupInstancePostgresqlArgs ¶
type BackupInstancePostgresqlArgs struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringInput // The ID or versionless ID of the key vault secret which stores the connection string of the database. DatabaseCredentialKeyVaultSecretId pulumi.StringPtrInput // The ID of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. DatabaseId pulumi.StringInput // The location of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance PostgreSQL. Changing this forces a new Backup Instance PostgreSQL to be created. Name pulumi.StringPtrInput // The ID of the Backup Vault within which the PostgreSQL Backup Instance should exist. Changing this forces a new Backup Instance PostgreSQL to be created. VaultId pulumi.StringInput }
The set of arguments for constructing a BackupInstancePostgresql resource.
func (BackupInstancePostgresqlArgs) ElementType ¶
func (BackupInstancePostgresqlArgs) ElementType() reflect.Type
type BackupInstancePostgresqlArray ¶
type BackupInstancePostgresqlArray []BackupInstancePostgresqlInput
func (BackupInstancePostgresqlArray) ElementType ¶
func (BackupInstancePostgresqlArray) ElementType() reflect.Type
func (BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutput ¶
func (i BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutput() BackupInstancePostgresqlArrayOutput
func (BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutputWithContext ¶
func (i BackupInstancePostgresqlArray) ToBackupInstancePostgresqlArrayOutputWithContext(ctx context.Context) BackupInstancePostgresqlArrayOutput
type BackupInstancePostgresqlArrayInput ¶
type BackupInstancePostgresqlArrayInput interface { pulumi.Input ToBackupInstancePostgresqlArrayOutput() BackupInstancePostgresqlArrayOutput ToBackupInstancePostgresqlArrayOutputWithContext(context.Context) BackupInstancePostgresqlArrayOutput }
BackupInstancePostgresqlArrayInput is an input type that accepts BackupInstancePostgresqlArray and BackupInstancePostgresqlArrayOutput values. You can construct a concrete instance of `BackupInstancePostgresqlArrayInput` via:
BackupInstancePostgresqlArray{ BackupInstancePostgresqlArgs{...} }
type BackupInstancePostgresqlArrayOutput ¶
type BackupInstancePostgresqlArrayOutput struct{ *pulumi.OutputState }
func (BackupInstancePostgresqlArrayOutput) ElementType ¶
func (BackupInstancePostgresqlArrayOutput) ElementType() reflect.Type
func (BackupInstancePostgresqlArrayOutput) Index ¶
func (o BackupInstancePostgresqlArrayOutput) Index(i pulumi.IntInput) BackupInstancePostgresqlOutput
func (BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutput ¶
func (o BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutput() BackupInstancePostgresqlArrayOutput
func (BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutputWithContext ¶
func (o BackupInstancePostgresqlArrayOutput) ToBackupInstancePostgresqlArrayOutputWithContext(ctx context.Context) BackupInstancePostgresqlArrayOutput
type BackupInstancePostgresqlInput ¶
type BackupInstancePostgresqlInput interface { pulumi.Input ToBackupInstancePostgresqlOutput() BackupInstancePostgresqlOutput ToBackupInstancePostgresqlOutputWithContext(ctx context.Context) BackupInstancePostgresqlOutput }
type BackupInstancePostgresqlMap ¶
type BackupInstancePostgresqlMap map[string]BackupInstancePostgresqlInput
func (BackupInstancePostgresqlMap) ElementType ¶
func (BackupInstancePostgresqlMap) ElementType() reflect.Type
func (BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutput ¶
func (i BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutput() BackupInstancePostgresqlMapOutput
func (BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutputWithContext ¶
func (i BackupInstancePostgresqlMap) ToBackupInstancePostgresqlMapOutputWithContext(ctx context.Context) BackupInstancePostgresqlMapOutput
type BackupInstancePostgresqlMapInput ¶
type BackupInstancePostgresqlMapInput interface { pulumi.Input ToBackupInstancePostgresqlMapOutput() BackupInstancePostgresqlMapOutput ToBackupInstancePostgresqlMapOutputWithContext(context.Context) BackupInstancePostgresqlMapOutput }
BackupInstancePostgresqlMapInput is an input type that accepts BackupInstancePostgresqlMap and BackupInstancePostgresqlMapOutput values. You can construct a concrete instance of `BackupInstancePostgresqlMapInput` via:
BackupInstancePostgresqlMap{ "key": BackupInstancePostgresqlArgs{...} }
type BackupInstancePostgresqlMapOutput ¶
type BackupInstancePostgresqlMapOutput struct{ *pulumi.OutputState }
func (BackupInstancePostgresqlMapOutput) ElementType ¶
func (BackupInstancePostgresqlMapOutput) ElementType() reflect.Type
func (BackupInstancePostgresqlMapOutput) MapIndex ¶
func (o BackupInstancePostgresqlMapOutput) MapIndex(k pulumi.StringInput) BackupInstancePostgresqlOutput
func (BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutput ¶
func (o BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutput() BackupInstancePostgresqlMapOutput
func (BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutputWithContext ¶
func (o BackupInstancePostgresqlMapOutput) ToBackupInstancePostgresqlMapOutputWithContext(ctx context.Context) BackupInstancePostgresqlMapOutput
type BackupInstancePostgresqlOutput ¶
type BackupInstancePostgresqlOutput struct{ *pulumi.OutputState }
func (BackupInstancePostgresqlOutput) BackupPolicyId ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) BackupPolicyId() pulumi.StringOutput
The ID of the Backup Policy.
func (BackupInstancePostgresqlOutput) DatabaseCredentialKeyVaultSecretId ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) DatabaseCredentialKeyVaultSecretId() pulumi.StringPtrOutput
The ID or versionless ID of the key vault secret which stores the connection string of the database.
func (BackupInstancePostgresqlOutput) DatabaseId ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) DatabaseId() pulumi.StringOutput
The ID of the source database. Changing this forces a new Backup Instance PostgreSQL to be created.
func (BackupInstancePostgresqlOutput) ElementType ¶
func (BackupInstancePostgresqlOutput) ElementType() reflect.Type
func (BackupInstancePostgresqlOutput) Location ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) Location() pulumi.StringOutput
The location of the source database. Changing this forces a new Backup Instance PostgreSQL to be created.
func (BackupInstancePostgresqlOutput) Name ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Instance PostgreSQL. Changing this forces a new Backup Instance PostgreSQL to be created.
func (BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutput ¶
func (o BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutput() BackupInstancePostgresqlOutput
func (BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutputWithContext ¶
func (o BackupInstancePostgresqlOutput) ToBackupInstancePostgresqlOutputWithContext(ctx context.Context) BackupInstancePostgresqlOutput
func (BackupInstancePostgresqlOutput) VaultId ¶ added in v5.5.0
func (o BackupInstancePostgresqlOutput) VaultId() pulumi.StringOutput
The ID of the Backup Vault within which the PostgreSQL Backup Instance should exist. Changing this forces a new Backup Instance PostgreSQL to be created.
type BackupInstancePostgresqlState ¶
type BackupInstancePostgresqlState struct { // The ID of the Backup Policy. BackupPolicyId pulumi.StringPtrInput // The ID or versionless ID of the key vault secret which stores the connection string of the database. DatabaseCredentialKeyVaultSecretId pulumi.StringPtrInput // The ID of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. DatabaseId pulumi.StringPtrInput // The location of the source database. Changing this forces a new Backup Instance PostgreSQL to be created. Location pulumi.StringPtrInput // The name which should be used for this Backup Instance PostgreSQL. Changing this forces a new Backup Instance PostgreSQL to be created. Name pulumi.StringPtrInput // The ID of the Backup Vault within which the PostgreSQL Backup Instance should exist. Changing this forces a new Backup Instance PostgreSQL to be created. VaultId pulumi.StringPtrInput }
func (BackupInstancePostgresqlState) ElementType ¶
func (BackupInstancePostgresqlState) ElementType() reflect.Type
type BackupPolicyBlobStorage ¶
type BackupPolicyBlobStorage struct { pulumi.CustomResourceState // The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. Name pulumi.StringOutput `pulumi:"name"` // Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. RetentionDuration pulumi.StringOutput `pulumi:"retentionDuration"` // The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. VaultId pulumi.StringOutput `pulumi:"vaultId"` }
Manages a Backup Policy Blob Storage.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), }) if err != nil { return err } _, err = dataprotection.NewBackupPolicyBlobStorage(ctx, "exampleBackupPolicyBlobStorage", &dataprotection.BackupPolicyBlobStorageArgs{ VaultId: exampleBackupVault.ID(), RetentionDuration: pulumi.String("P30D"), }) if err != nil { return err } return nil }) }
```
## Import
Backup Policy Blob Storages can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupPolicyBlobStorage:BackupPolicyBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1
```
func GetBackupPolicyBlobStorage ¶
func GetBackupPolicyBlobStorage(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupPolicyBlobStorageState, opts ...pulumi.ResourceOption) (*BackupPolicyBlobStorage, error)
GetBackupPolicyBlobStorage gets an existing BackupPolicyBlobStorage 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 NewBackupPolicyBlobStorage ¶
func NewBackupPolicyBlobStorage(ctx *pulumi.Context, name string, args *BackupPolicyBlobStorageArgs, opts ...pulumi.ResourceOption) (*BackupPolicyBlobStorage, error)
NewBackupPolicyBlobStorage registers a new resource with the given unique name, arguments, and options.
func (*BackupPolicyBlobStorage) ElementType ¶
func (*BackupPolicyBlobStorage) ElementType() reflect.Type
func (*BackupPolicyBlobStorage) ToBackupPolicyBlobStorageOutput ¶
func (i *BackupPolicyBlobStorage) ToBackupPolicyBlobStorageOutput() BackupPolicyBlobStorageOutput
func (*BackupPolicyBlobStorage) ToBackupPolicyBlobStorageOutputWithContext ¶
func (i *BackupPolicyBlobStorage) ToBackupPolicyBlobStorageOutputWithContext(ctx context.Context) BackupPolicyBlobStorageOutput
type BackupPolicyBlobStorageArgs ¶
type BackupPolicyBlobStorageArgs struct { // The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. Name pulumi.StringPtrInput // Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. RetentionDuration pulumi.StringInput // The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. VaultId pulumi.StringInput }
The set of arguments for constructing a BackupPolicyBlobStorage resource.
func (BackupPolicyBlobStorageArgs) ElementType ¶
func (BackupPolicyBlobStorageArgs) ElementType() reflect.Type
type BackupPolicyBlobStorageArray ¶
type BackupPolicyBlobStorageArray []BackupPolicyBlobStorageInput
func (BackupPolicyBlobStorageArray) ElementType ¶
func (BackupPolicyBlobStorageArray) ElementType() reflect.Type
func (BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutput ¶
func (i BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutput() BackupPolicyBlobStorageArrayOutput
func (BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutputWithContext ¶
func (i BackupPolicyBlobStorageArray) ToBackupPolicyBlobStorageArrayOutputWithContext(ctx context.Context) BackupPolicyBlobStorageArrayOutput
type BackupPolicyBlobStorageArrayInput ¶
type BackupPolicyBlobStorageArrayInput interface { pulumi.Input ToBackupPolicyBlobStorageArrayOutput() BackupPolicyBlobStorageArrayOutput ToBackupPolicyBlobStorageArrayOutputWithContext(context.Context) BackupPolicyBlobStorageArrayOutput }
BackupPolicyBlobStorageArrayInput is an input type that accepts BackupPolicyBlobStorageArray and BackupPolicyBlobStorageArrayOutput values. You can construct a concrete instance of `BackupPolicyBlobStorageArrayInput` via:
BackupPolicyBlobStorageArray{ BackupPolicyBlobStorageArgs{...} }
type BackupPolicyBlobStorageArrayOutput ¶
type BackupPolicyBlobStorageArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyBlobStorageArrayOutput) ElementType ¶
func (BackupPolicyBlobStorageArrayOutput) ElementType() reflect.Type
func (BackupPolicyBlobStorageArrayOutput) Index ¶
func (o BackupPolicyBlobStorageArrayOutput) Index(i pulumi.IntInput) BackupPolicyBlobStorageOutput
func (BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutput ¶
func (o BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutput() BackupPolicyBlobStorageArrayOutput
func (BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutputWithContext ¶
func (o BackupPolicyBlobStorageArrayOutput) ToBackupPolicyBlobStorageArrayOutputWithContext(ctx context.Context) BackupPolicyBlobStorageArrayOutput
type BackupPolicyBlobStorageInput ¶
type BackupPolicyBlobStorageInput interface { pulumi.Input ToBackupPolicyBlobStorageOutput() BackupPolicyBlobStorageOutput ToBackupPolicyBlobStorageOutputWithContext(ctx context.Context) BackupPolicyBlobStorageOutput }
type BackupPolicyBlobStorageMap ¶
type BackupPolicyBlobStorageMap map[string]BackupPolicyBlobStorageInput
func (BackupPolicyBlobStorageMap) ElementType ¶
func (BackupPolicyBlobStorageMap) ElementType() reflect.Type
func (BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutput ¶
func (i BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutput() BackupPolicyBlobStorageMapOutput
func (BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutputWithContext ¶
func (i BackupPolicyBlobStorageMap) ToBackupPolicyBlobStorageMapOutputWithContext(ctx context.Context) BackupPolicyBlobStorageMapOutput
type BackupPolicyBlobStorageMapInput ¶
type BackupPolicyBlobStorageMapInput interface { pulumi.Input ToBackupPolicyBlobStorageMapOutput() BackupPolicyBlobStorageMapOutput ToBackupPolicyBlobStorageMapOutputWithContext(context.Context) BackupPolicyBlobStorageMapOutput }
BackupPolicyBlobStorageMapInput is an input type that accepts BackupPolicyBlobStorageMap and BackupPolicyBlobStorageMapOutput values. You can construct a concrete instance of `BackupPolicyBlobStorageMapInput` via:
BackupPolicyBlobStorageMap{ "key": BackupPolicyBlobStorageArgs{...} }
type BackupPolicyBlobStorageMapOutput ¶
type BackupPolicyBlobStorageMapOutput struct{ *pulumi.OutputState }
func (BackupPolicyBlobStorageMapOutput) ElementType ¶
func (BackupPolicyBlobStorageMapOutput) ElementType() reflect.Type
func (BackupPolicyBlobStorageMapOutput) MapIndex ¶
func (o BackupPolicyBlobStorageMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyBlobStorageOutput
func (BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutput ¶
func (o BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutput() BackupPolicyBlobStorageMapOutput
func (BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutputWithContext ¶
func (o BackupPolicyBlobStorageMapOutput) ToBackupPolicyBlobStorageMapOutputWithContext(ctx context.Context) BackupPolicyBlobStorageMapOutput
type BackupPolicyBlobStorageOutput ¶
type BackupPolicyBlobStorageOutput struct{ *pulumi.OutputState }
func (BackupPolicyBlobStorageOutput) ElementType ¶
func (BackupPolicyBlobStorageOutput) ElementType() reflect.Type
func (BackupPolicyBlobStorageOutput) Name ¶ added in v5.5.0
func (o BackupPolicyBlobStorageOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created.
func (BackupPolicyBlobStorageOutput) RetentionDuration ¶ added in v5.5.0
func (o BackupPolicyBlobStorageOutput) RetentionDuration() pulumi.StringOutput
Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created.
func (BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutput ¶
func (o BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutput() BackupPolicyBlobStorageOutput
func (BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutputWithContext ¶
func (o BackupPolicyBlobStorageOutput) ToBackupPolicyBlobStorageOutputWithContext(ctx context.Context) BackupPolicyBlobStorageOutput
func (BackupPolicyBlobStorageOutput) VaultId ¶ added in v5.5.0
func (o BackupPolicyBlobStorageOutput) VaultId() pulumi.StringOutput
The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created.
type BackupPolicyBlobStorageState ¶
type BackupPolicyBlobStorageState struct { // The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. Name pulumi.StringPtrInput // Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. RetentionDuration pulumi.StringPtrInput // The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. VaultId pulumi.StringPtrInput }
func (BackupPolicyBlobStorageState) ElementType ¶
func (BackupPolicyBlobStorageState) ElementType() reflect.Type
type BackupPolicyDisk ¶
type BackupPolicyDisk struct { pulumi.CustomResourceState // Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval . Changing this forces a new Backup Policy Disk to be created. BackupRepeatingTimeIntervals pulumi.StringArrayOutput `pulumi:"backupRepeatingTimeIntervals"` // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created. DefaultRetentionDuration pulumi.StringOutput `pulumi:"defaultRetentionDuration"` // The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created. Name pulumi.StringOutput `pulumi:"name"` // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Disk to be created. RetentionRules BackupPolicyDiskRetentionRuleArrayOutput `pulumi:"retentionRules"` // The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created. VaultId pulumi.StringOutput `pulumi:"vaultId"` }
Manages a Backup Policy Disk.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), }) if err != nil { return err } _, err = dataprotection.NewBackupPolicyDisk(ctx, "exampleBackupPolicyDisk", &dataprotection.BackupPolicyDiskArgs{ VaultId: exampleBackupVault.ID(), BackupRepeatingTimeIntervals: pulumi.StringArray{ pulumi.String("R/2021-05-19T06:33:16+00:00/PT4H"), }, DefaultRetentionDuration: pulumi.String("P7D"), RetentionRules: dataprotection.BackupPolicyDiskRetentionRuleArray{ &dataprotection.BackupPolicyDiskRetentionRuleArgs{ Name: pulumi.String("Daily"), Duration: pulumi.String("P7D"), Priority: pulumi.Int(25), Criteria: &dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs{ AbsoluteCriteria: pulumi.String("FirstOfDay"), }, }, &dataprotection.BackupPolicyDiskRetentionRuleArgs{ Name: pulumi.String("Weekly"), Duration: pulumi.String("P7D"), Priority: pulumi.Int(20), Criteria: &dataprotection.BackupPolicyDiskRetentionRuleCriteriaArgs{ AbsoluteCriteria: pulumi.String("FirstOfWeek"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
Backup Policy Disks can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupPolicyDisk:BackupPolicyDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1
```
func GetBackupPolicyDisk ¶
func GetBackupPolicyDisk(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupPolicyDiskState, opts ...pulumi.ResourceOption) (*BackupPolicyDisk, error)
GetBackupPolicyDisk gets an existing BackupPolicyDisk 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 NewBackupPolicyDisk ¶
func NewBackupPolicyDisk(ctx *pulumi.Context, name string, args *BackupPolicyDiskArgs, opts ...pulumi.ResourceOption) (*BackupPolicyDisk, error)
NewBackupPolicyDisk registers a new resource with the given unique name, arguments, and options.
func (*BackupPolicyDisk) ElementType ¶
func (*BackupPolicyDisk) ElementType() reflect.Type
func (*BackupPolicyDisk) ToBackupPolicyDiskOutput ¶
func (i *BackupPolicyDisk) ToBackupPolicyDiskOutput() BackupPolicyDiskOutput
func (*BackupPolicyDisk) ToBackupPolicyDiskOutputWithContext ¶
func (i *BackupPolicyDisk) ToBackupPolicyDiskOutputWithContext(ctx context.Context) BackupPolicyDiskOutput
type BackupPolicyDiskArgs ¶
type BackupPolicyDiskArgs struct { // Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval . Changing this forces a new Backup Policy Disk to be created. BackupRepeatingTimeIntervals pulumi.StringArrayInput // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created. DefaultRetentionDuration pulumi.StringInput // The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created. Name pulumi.StringPtrInput // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Disk to be created. RetentionRules BackupPolicyDiskRetentionRuleArrayInput // The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created. VaultId pulumi.StringInput }
The set of arguments for constructing a BackupPolicyDisk resource.
func (BackupPolicyDiskArgs) ElementType ¶
func (BackupPolicyDiskArgs) ElementType() reflect.Type
type BackupPolicyDiskArray ¶
type BackupPolicyDiskArray []BackupPolicyDiskInput
func (BackupPolicyDiskArray) ElementType ¶
func (BackupPolicyDiskArray) ElementType() reflect.Type
func (BackupPolicyDiskArray) ToBackupPolicyDiskArrayOutput ¶
func (i BackupPolicyDiskArray) ToBackupPolicyDiskArrayOutput() BackupPolicyDiskArrayOutput
func (BackupPolicyDiskArray) ToBackupPolicyDiskArrayOutputWithContext ¶
func (i BackupPolicyDiskArray) ToBackupPolicyDiskArrayOutputWithContext(ctx context.Context) BackupPolicyDiskArrayOutput
type BackupPolicyDiskArrayInput ¶
type BackupPolicyDiskArrayInput interface { pulumi.Input ToBackupPolicyDiskArrayOutput() BackupPolicyDiskArrayOutput ToBackupPolicyDiskArrayOutputWithContext(context.Context) BackupPolicyDiskArrayOutput }
BackupPolicyDiskArrayInput is an input type that accepts BackupPolicyDiskArray and BackupPolicyDiskArrayOutput values. You can construct a concrete instance of `BackupPolicyDiskArrayInput` via:
BackupPolicyDiskArray{ BackupPolicyDiskArgs{...} }
type BackupPolicyDiskArrayOutput ¶
type BackupPolicyDiskArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskArrayOutput) ElementType ¶
func (BackupPolicyDiskArrayOutput) ElementType() reflect.Type
func (BackupPolicyDiskArrayOutput) Index ¶
func (o BackupPolicyDiskArrayOutput) Index(i pulumi.IntInput) BackupPolicyDiskOutput
func (BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutput ¶
func (o BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutput() BackupPolicyDiskArrayOutput
func (BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutputWithContext ¶
func (o BackupPolicyDiskArrayOutput) ToBackupPolicyDiskArrayOutputWithContext(ctx context.Context) BackupPolicyDiskArrayOutput
type BackupPolicyDiskInput ¶
type BackupPolicyDiskInput interface { pulumi.Input ToBackupPolicyDiskOutput() BackupPolicyDiskOutput ToBackupPolicyDiskOutputWithContext(ctx context.Context) BackupPolicyDiskOutput }
type BackupPolicyDiskMap ¶
type BackupPolicyDiskMap map[string]BackupPolicyDiskInput
func (BackupPolicyDiskMap) ElementType ¶
func (BackupPolicyDiskMap) ElementType() reflect.Type
func (BackupPolicyDiskMap) ToBackupPolicyDiskMapOutput ¶
func (i BackupPolicyDiskMap) ToBackupPolicyDiskMapOutput() BackupPolicyDiskMapOutput
func (BackupPolicyDiskMap) ToBackupPolicyDiskMapOutputWithContext ¶
func (i BackupPolicyDiskMap) ToBackupPolicyDiskMapOutputWithContext(ctx context.Context) BackupPolicyDiskMapOutput
type BackupPolicyDiskMapInput ¶
type BackupPolicyDiskMapInput interface { pulumi.Input ToBackupPolicyDiskMapOutput() BackupPolicyDiskMapOutput ToBackupPolicyDiskMapOutputWithContext(context.Context) BackupPolicyDiskMapOutput }
BackupPolicyDiskMapInput is an input type that accepts BackupPolicyDiskMap and BackupPolicyDiskMapOutput values. You can construct a concrete instance of `BackupPolicyDiskMapInput` via:
BackupPolicyDiskMap{ "key": BackupPolicyDiskArgs{...} }
type BackupPolicyDiskMapOutput ¶
type BackupPolicyDiskMapOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskMapOutput) ElementType ¶
func (BackupPolicyDiskMapOutput) ElementType() reflect.Type
func (BackupPolicyDiskMapOutput) MapIndex ¶
func (o BackupPolicyDiskMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyDiskOutput
func (BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutput ¶
func (o BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutput() BackupPolicyDiskMapOutput
func (BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutputWithContext ¶
func (o BackupPolicyDiskMapOutput) ToBackupPolicyDiskMapOutputWithContext(ctx context.Context) BackupPolicyDiskMapOutput
type BackupPolicyDiskOutput ¶
type BackupPolicyDiskOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskOutput) BackupRepeatingTimeIntervals ¶ added in v5.5.0
func (o BackupPolicyDiskOutput) BackupRepeatingTimeIntervals() pulumi.StringArrayOutput
Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval . Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskOutput) DefaultRetentionDuration ¶ added in v5.5.0
func (o BackupPolicyDiskOutput) DefaultRetentionDuration() pulumi.StringOutput
The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskOutput) ElementType ¶
func (BackupPolicyDiskOutput) ElementType() reflect.Type
func (BackupPolicyDiskOutput) Name ¶ added in v5.5.0
func (o BackupPolicyDiskOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskOutput) RetentionRules ¶ added in v5.5.0
func (o BackupPolicyDiskOutput) RetentionRules() BackupPolicyDiskRetentionRuleArrayOutput
One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskOutput) ToBackupPolicyDiskOutput ¶
func (o BackupPolicyDiskOutput) ToBackupPolicyDiskOutput() BackupPolicyDiskOutput
func (BackupPolicyDiskOutput) ToBackupPolicyDiskOutputWithContext ¶
func (o BackupPolicyDiskOutput) ToBackupPolicyDiskOutputWithContext(ctx context.Context) BackupPolicyDiskOutput
func (BackupPolicyDiskOutput) VaultId ¶ added in v5.5.0
func (o BackupPolicyDiskOutput) VaultId() pulumi.StringOutput
The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created.
type BackupPolicyDiskRetentionRule ¶
type BackupPolicyDiskRetentionRule struct { // A `criteria` block as defined below. Changing this forces a new Backup Policy Disk to be created. Criteria BackupPolicyDiskRetentionRuleCriteria `pulumi:"criteria"` // Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created. Duration string `pulumi:"duration"` // The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created. Name string `pulumi:"name"` // Retention Tag priority. Changing this forces a new Backup Policy Disk to be created. Priority int `pulumi:"priority"` }
type BackupPolicyDiskRetentionRuleArgs ¶
type BackupPolicyDiskRetentionRuleArgs struct { // A `criteria` block as defined below. Changing this forces a new Backup Policy Disk to be created. Criteria BackupPolicyDiskRetentionRuleCriteriaInput `pulumi:"criteria"` // Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created. Duration pulumi.StringInput `pulumi:"duration"` // The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created. Name pulumi.StringInput `pulumi:"name"` // Retention Tag priority. Changing this forces a new Backup Policy Disk to be created. Priority pulumi.IntInput `pulumi:"priority"` }
func (BackupPolicyDiskRetentionRuleArgs) ElementType ¶
func (BackupPolicyDiskRetentionRuleArgs) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutput ¶
func (i BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutput() BackupPolicyDiskRetentionRuleOutput
func (BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutputWithContext ¶
func (i BackupPolicyDiskRetentionRuleArgs) ToBackupPolicyDiskRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleOutput
type BackupPolicyDiskRetentionRuleArray ¶
type BackupPolicyDiskRetentionRuleArray []BackupPolicyDiskRetentionRuleInput
func (BackupPolicyDiskRetentionRuleArray) ElementType ¶
func (BackupPolicyDiskRetentionRuleArray) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutput ¶
func (i BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutput() BackupPolicyDiskRetentionRuleArrayOutput
func (BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext ¶
func (i BackupPolicyDiskRetentionRuleArray) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleArrayOutput
type BackupPolicyDiskRetentionRuleArrayInput ¶
type BackupPolicyDiskRetentionRuleArrayInput interface { pulumi.Input ToBackupPolicyDiskRetentionRuleArrayOutput() BackupPolicyDiskRetentionRuleArrayOutput ToBackupPolicyDiskRetentionRuleArrayOutputWithContext(context.Context) BackupPolicyDiskRetentionRuleArrayOutput }
BackupPolicyDiskRetentionRuleArrayInput is an input type that accepts BackupPolicyDiskRetentionRuleArray and BackupPolicyDiskRetentionRuleArrayOutput values. You can construct a concrete instance of `BackupPolicyDiskRetentionRuleArrayInput` via:
BackupPolicyDiskRetentionRuleArray{ BackupPolicyDiskRetentionRuleArgs{...} }
type BackupPolicyDiskRetentionRuleArrayOutput ¶
type BackupPolicyDiskRetentionRuleArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskRetentionRuleArrayOutput) ElementType ¶
func (BackupPolicyDiskRetentionRuleArrayOutput) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutput ¶
func (o BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutput() BackupPolicyDiskRetentionRuleArrayOutput
func (BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext ¶
func (o BackupPolicyDiskRetentionRuleArrayOutput) ToBackupPolicyDiskRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleArrayOutput
type BackupPolicyDiskRetentionRuleCriteria ¶
type BackupPolicyDiskRetentionRuleCriteria struct { // Possible values are `FirstOfDay` and `FirstOfWeek`. Changing this forces a new Backup Policy Disk to be created. AbsoluteCriteria *string `pulumi:"absoluteCriteria"` }
type BackupPolicyDiskRetentionRuleCriteriaArgs ¶
type BackupPolicyDiskRetentionRuleCriteriaArgs struct { // Possible values are `FirstOfDay` and `FirstOfWeek`. Changing this forces a new Backup Policy Disk to be created. AbsoluteCriteria pulumi.StringPtrInput `pulumi:"absoluteCriteria"` }
func (BackupPolicyDiskRetentionRuleCriteriaArgs) ElementType ¶
func (BackupPolicyDiskRetentionRuleCriteriaArgs) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutput ¶
func (i BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutput() BackupPolicyDiskRetentionRuleCriteriaOutput
func (BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext ¶
func (i BackupPolicyDiskRetentionRuleCriteriaArgs) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleCriteriaOutput
type BackupPolicyDiskRetentionRuleCriteriaInput ¶
type BackupPolicyDiskRetentionRuleCriteriaInput interface { pulumi.Input ToBackupPolicyDiskRetentionRuleCriteriaOutput() BackupPolicyDiskRetentionRuleCriteriaOutput ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext(context.Context) BackupPolicyDiskRetentionRuleCriteriaOutput }
BackupPolicyDiskRetentionRuleCriteriaInput is an input type that accepts BackupPolicyDiskRetentionRuleCriteriaArgs and BackupPolicyDiskRetentionRuleCriteriaOutput values. You can construct a concrete instance of `BackupPolicyDiskRetentionRuleCriteriaInput` via:
BackupPolicyDiskRetentionRuleCriteriaArgs{...}
type BackupPolicyDiskRetentionRuleCriteriaOutput ¶
type BackupPolicyDiskRetentionRuleCriteriaOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskRetentionRuleCriteriaOutput) AbsoluteCriteria ¶
func (o BackupPolicyDiskRetentionRuleCriteriaOutput) AbsoluteCriteria() pulumi.StringPtrOutput
Possible values are `FirstOfDay` and `FirstOfWeek`. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskRetentionRuleCriteriaOutput) ElementType ¶
func (BackupPolicyDiskRetentionRuleCriteriaOutput) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutput ¶
func (o BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutput() BackupPolicyDiskRetentionRuleCriteriaOutput
func (BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext ¶
func (o BackupPolicyDiskRetentionRuleCriteriaOutput) ToBackupPolicyDiskRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleCriteriaOutput
type BackupPolicyDiskRetentionRuleInput ¶
type BackupPolicyDiskRetentionRuleInput interface { pulumi.Input ToBackupPolicyDiskRetentionRuleOutput() BackupPolicyDiskRetentionRuleOutput ToBackupPolicyDiskRetentionRuleOutputWithContext(context.Context) BackupPolicyDiskRetentionRuleOutput }
BackupPolicyDiskRetentionRuleInput is an input type that accepts BackupPolicyDiskRetentionRuleArgs and BackupPolicyDiskRetentionRuleOutput values. You can construct a concrete instance of `BackupPolicyDiskRetentionRuleInput` via:
BackupPolicyDiskRetentionRuleArgs{...}
type BackupPolicyDiskRetentionRuleOutput ¶
type BackupPolicyDiskRetentionRuleOutput struct{ *pulumi.OutputState }
func (BackupPolicyDiskRetentionRuleOutput) Criteria ¶
func (o BackupPolicyDiskRetentionRuleOutput) Criteria() BackupPolicyDiskRetentionRuleCriteriaOutput
A `criteria` block as defined below. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskRetentionRuleOutput) Duration ¶
func (o BackupPolicyDiskRetentionRuleOutput) Duration() pulumi.StringOutput
Duration of deletion after given timespan. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskRetentionRuleOutput) ElementType ¶
func (BackupPolicyDiskRetentionRuleOutput) ElementType() reflect.Type
func (BackupPolicyDiskRetentionRuleOutput) Name ¶
func (o BackupPolicyDiskRetentionRuleOutput) Name() pulumi.StringOutput
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskRetentionRuleOutput) Priority ¶
func (o BackupPolicyDiskRetentionRuleOutput) Priority() pulumi.IntOutput
Retention Tag priority. Changing this forces a new Backup Policy Disk to be created.
func (BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutput ¶
func (o BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutput() BackupPolicyDiskRetentionRuleOutput
func (BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutputWithContext ¶
func (o BackupPolicyDiskRetentionRuleOutput) ToBackupPolicyDiskRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyDiskRetentionRuleOutput
type BackupPolicyDiskState ¶
type BackupPolicyDiskState struct { // Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval . Changing this forces a new Backup Policy Disk to be created. BackupRepeatingTimeIntervals pulumi.StringArrayInput // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Disk to be created. DefaultRetentionDuration pulumi.StringPtrInput // The name which should be used for this Backup Policy Disk. Changing this forces a new Backup Policy Disk to be created. Name pulumi.StringPtrInput // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Disk to be created. RetentionRules BackupPolicyDiskRetentionRuleArrayInput // The ID of the Backup Vault within which the Backup Policy Disk should exist. Changing this forces a new Backup Policy Disk to be created. VaultId pulumi.StringPtrInput }
func (BackupPolicyDiskState) ElementType ¶
func (BackupPolicyDiskState) ElementType() reflect.Type
type BackupPolicyPostgresql ¶
type BackupPolicyPostgresql struct { pulumi.CustomResourceState // Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy PostgreSQL to be created. BackupRepeatingTimeIntervals pulumi.StringArrayOutput `pulumi:"backupRepeatingTimeIntervals"` // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created. DefaultRetentionDuration pulumi.StringOutput `pulumi:"defaultRetentionDuration"` // The name which should be used for this Backup Policy PostgreSQL. Changing this forces a new Backup Policy PostgreSQL to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy PostgreSQL to be created. RetentionRules BackupPolicyPostgresqlRetentionRuleArrayOutput `pulumi:"retentionRules"` // The name of the Backup Vault where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. VaultName pulumi.StringOutput `pulumi:"vaultName"` }
Manages a Backup Policy to back up PostgreSQL.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 } exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), }) if err != nil { return err } _, err = dataprotection.NewBackupPolicyPostgresql(ctx, "exampleBackupPolicyPostgresql", &dataprotection.BackupPolicyPostgresqlArgs{ ResourceGroupName: exampleResourceGroup.Name, VaultName: exampleBackupVault.Name, BackupRepeatingTimeIntervals: pulumi.StringArray{ pulumi.String("R/2021-05-23T02:30:00+00:00/P1W"), }, DefaultRetentionDuration: pulumi.String("P4M"), RetentionRules: dataprotection.BackupPolicyPostgresqlRetentionRuleArray{ &dataprotection.BackupPolicyPostgresqlRetentionRuleArgs{ Name: pulumi.String("weekly"), Duration: pulumi.String("P6M"), Priority: pulumi.Int(20), Criteria: &dataprotection.BackupPolicyPostgresqlRetentionRuleCriteriaArgs{ AbsoluteCriteria: pulumi.String("FirstOfWeek"), }, }, &dataprotection.BackupPolicyPostgresqlRetentionRuleArgs{ Name: pulumi.String("thursday"), Duration: pulumi.String("P1W"), Priority: pulumi.Int(25), Criteria: &dataprotection.BackupPolicyPostgresqlRetentionRuleCriteriaArgs{ DaysOfWeeks: pulumi.StringArray{ pulumi.String("Thursday"), }, ScheduledBackupTimes: pulumi.StringArray{ pulumi.String("2021-05-23T02:30:00Z"), }, }, }, &dataprotection.BackupPolicyPostgresqlRetentionRuleArgs{ Name: pulumi.String("monthly"), Duration: pulumi.String("P1D"), Priority: pulumi.Int(15), Criteria: &dataprotection.BackupPolicyPostgresqlRetentionRuleCriteriaArgs{ WeeksOfMonths: pulumi.StringArray{ pulumi.String("First"), pulumi.String("Last"), }, DaysOfWeeks: pulumi.StringArray{ pulumi.String("Tuesday"), }, ScheduledBackupTimes: pulumi.StringArray{ pulumi.String("2021-05-23T02:30:00Z"), }, }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
Backup Policy PostgreSQL's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupPolicyPostgresql:BackupPolicyPostgresql example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1
```
func GetBackupPolicyPostgresql ¶
func GetBackupPolicyPostgresql(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupPolicyPostgresqlState, opts ...pulumi.ResourceOption) (*BackupPolicyPostgresql, error)
GetBackupPolicyPostgresql gets an existing BackupPolicyPostgresql 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 NewBackupPolicyPostgresql ¶
func NewBackupPolicyPostgresql(ctx *pulumi.Context, name string, args *BackupPolicyPostgresqlArgs, opts ...pulumi.ResourceOption) (*BackupPolicyPostgresql, error)
NewBackupPolicyPostgresql registers a new resource with the given unique name, arguments, and options.
func (*BackupPolicyPostgresql) ElementType ¶
func (*BackupPolicyPostgresql) ElementType() reflect.Type
func (*BackupPolicyPostgresql) ToBackupPolicyPostgresqlOutput ¶
func (i *BackupPolicyPostgresql) ToBackupPolicyPostgresqlOutput() BackupPolicyPostgresqlOutput
func (*BackupPolicyPostgresql) ToBackupPolicyPostgresqlOutputWithContext ¶
func (i *BackupPolicyPostgresql) ToBackupPolicyPostgresqlOutputWithContext(ctx context.Context) BackupPolicyPostgresqlOutput
type BackupPolicyPostgresqlArgs ¶
type BackupPolicyPostgresqlArgs struct { // Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy PostgreSQL to be created. BackupRepeatingTimeIntervals pulumi.StringArrayInput // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created. DefaultRetentionDuration pulumi.StringInput // The name which should be used for this Backup Policy PostgreSQL. Changing this forces a new Backup Policy PostgreSQL to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. ResourceGroupName pulumi.StringInput // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy PostgreSQL to be created. RetentionRules BackupPolicyPostgresqlRetentionRuleArrayInput // The name of the Backup Vault where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. VaultName pulumi.StringInput }
The set of arguments for constructing a BackupPolicyPostgresql resource.
func (BackupPolicyPostgresqlArgs) ElementType ¶
func (BackupPolicyPostgresqlArgs) ElementType() reflect.Type
type BackupPolicyPostgresqlArray ¶
type BackupPolicyPostgresqlArray []BackupPolicyPostgresqlInput
func (BackupPolicyPostgresqlArray) ElementType ¶
func (BackupPolicyPostgresqlArray) ElementType() reflect.Type
func (BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutput ¶
func (i BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutput() BackupPolicyPostgresqlArrayOutput
func (BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutputWithContext ¶
func (i BackupPolicyPostgresqlArray) ToBackupPolicyPostgresqlArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlArrayOutput
type BackupPolicyPostgresqlArrayInput ¶
type BackupPolicyPostgresqlArrayInput interface { pulumi.Input ToBackupPolicyPostgresqlArrayOutput() BackupPolicyPostgresqlArrayOutput ToBackupPolicyPostgresqlArrayOutputWithContext(context.Context) BackupPolicyPostgresqlArrayOutput }
BackupPolicyPostgresqlArrayInput is an input type that accepts BackupPolicyPostgresqlArray and BackupPolicyPostgresqlArrayOutput values. You can construct a concrete instance of `BackupPolicyPostgresqlArrayInput` via:
BackupPolicyPostgresqlArray{ BackupPolicyPostgresqlArgs{...} }
type BackupPolicyPostgresqlArrayOutput ¶
type BackupPolicyPostgresqlArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlArrayOutput) ElementType ¶
func (BackupPolicyPostgresqlArrayOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlArrayOutput) Index ¶
func (o BackupPolicyPostgresqlArrayOutput) Index(i pulumi.IntInput) BackupPolicyPostgresqlOutput
func (BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutput ¶
func (o BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutput() BackupPolicyPostgresqlArrayOutput
func (BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutputWithContext ¶
func (o BackupPolicyPostgresqlArrayOutput) ToBackupPolicyPostgresqlArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlArrayOutput
type BackupPolicyPostgresqlInput ¶
type BackupPolicyPostgresqlInput interface { pulumi.Input ToBackupPolicyPostgresqlOutput() BackupPolicyPostgresqlOutput ToBackupPolicyPostgresqlOutputWithContext(ctx context.Context) BackupPolicyPostgresqlOutput }
type BackupPolicyPostgresqlMap ¶
type BackupPolicyPostgresqlMap map[string]BackupPolicyPostgresqlInput
func (BackupPolicyPostgresqlMap) ElementType ¶
func (BackupPolicyPostgresqlMap) ElementType() reflect.Type
func (BackupPolicyPostgresqlMap) ToBackupPolicyPostgresqlMapOutput ¶
func (i BackupPolicyPostgresqlMap) ToBackupPolicyPostgresqlMapOutput() BackupPolicyPostgresqlMapOutput
func (BackupPolicyPostgresqlMap) ToBackupPolicyPostgresqlMapOutputWithContext ¶
func (i BackupPolicyPostgresqlMap) ToBackupPolicyPostgresqlMapOutputWithContext(ctx context.Context) BackupPolicyPostgresqlMapOutput
type BackupPolicyPostgresqlMapInput ¶
type BackupPolicyPostgresqlMapInput interface { pulumi.Input ToBackupPolicyPostgresqlMapOutput() BackupPolicyPostgresqlMapOutput ToBackupPolicyPostgresqlMapOutputWithContext(context.Context) BackupPolicyPostgresqlMapOutput }
BackupPolicyPostgresqlMapInput is an input type that accepts BackupPolicyPostgresqlMap and BackupPolicyPostgresqlMapOutput values. You can construct a concrete instance of `BackupPolicyPostgresqlMapInput` via:
BackupPolicyPostgresqlMap{ "key": BackupPolicyPostgresqlArgs{...} }
type BackupPolicyPostgresqlMapOutput ¶
type BackupPolicyPostgresqlMapOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlMapOutput) ElementType ¶
func (BackupPolicyPostgresqlMapOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlMapOutput) MapIndex ¶
func (o BackupPolicyPostgresqlMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyPostgresqlOutput
func (BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutput ¶
func (o BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutput() BackupPolicyPostgresqlMapOutput
func (BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutputWithContext ¶
func (o BackupPolicyPostgresqlMapOutput) ToBackupPolicyPostgresqlMapOutputWithContext(ctx context.Context) BackupPolicyPostgresqlMapOutput
type BackupPolicyPostgresqlOutput ¶
type BackupPolicyPostgresqlOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlOutput) BackupRepeatingTimeIntervals ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) BackupRepeatingTimeIntervals() pulumi.StringArrayOutput
Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlOutput) DefaultRetentionDuration ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) DefaultRetentionDuration() pulumi.StringOutput
The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlOutput) ElementType ¶
func (BackupPolicyPostgresqlOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlOutput) Name ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) Name() pulumi.StringOutput
The name which should be used for this Backup Policy PostgreSQL. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlOutput) ResourceGroupName ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlOutput) RetentionRules ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) RetentionRules() BackupPolicyPostgresqlRetentionRuleArrayOutput
One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutput ¶
func (o BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutput() BackupPolicyPostgresqlOutput
func (BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutputWithContext ¶
func (o BackupPolicyPostgresqlOutput) ToBackupPolicyPostgresqlOutputWithContext(ctx context.Context) BackupPolicyPostgresqlOutput
func (BackupPolicyPostgresqlOutput) VaultName ¶ added in v5.5.0
func (o BackupPolicyPostgresqlOutput) VaultName() pulumi.StringOutput
The name of the Backup Vault where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created.
type BackupPolicyPostgresqlRetentionRule ¶
type BackupPolicyPostgresqlRetentionRule struct { // A `criteria` block as defined below. Changing this forces a new Backup Policy PostgreSQL to be created. Criteria BackupPolicyPostgresqlRetentionRuleCriteria `pulumi:"criteria"` // Duration after which the backup is deleted. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created. Duration string `pulumi:"duration"` // The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL to be created. Name string `pulumi:"name"` // Specifies the priority of the rule. The priority number must be unique for each rule. The lower the priority number, the higher the priority of the rule. Changing this forces a new Backup Policy PostgreSQL to be created. Priority int `pulumi:"priority"` }
type BackupPolicyPostgresqlRetentionRuleArgs ¶
type BackupPolicyPostgresqlRetentionRuleArgs struct { // A `criteria` block as defined below. Changing this forces a new Backup Policy PostgreSQL to be created. Criteria BackupPolicyPostgresqlRetentionRuleCriteriaInput `pulumi:"criteria"` // Duration after which the backup is deleted. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created. Duration pulumi.StringInput `pulumi:"duration"` // The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL to be created. Name pulumi.StringInput `pulumi:"name"` // Specifies the priority of the rule. The priority number must be unique for each rule. The lower the priority number, the higher the priority of the rule. Changing this forces a new Backup Policy PostgreSQL to be created. Priority pulumi.IntInput `pulumi:"priority"` }
func (BackupPolicyPostgresqlRetentionRuleArgs) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleArgs) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutput ¶
func (i BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutput() BackupPolicyPostgresqlRetentionRuleOutput
func (BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext ¶
func (i BackupPolicyPostgresqlRetentionRuleArgs) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleOutput
type BackupPolicyPostgresqlRetentionRuleArray ¶
type BackupPolicyPostgresqlRetentionRuleArray []BackupPolicyPostgresqlRetentionRuleInput
func (BackupPolicyPostgresqlRetentionRuleArray) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleArray) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutput ¶
func (i BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutput() BackupPolicyPostgresqlRetentionRuleArrayOutput
func (BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext ¶
func (i BackupPolicyPostgresqlRetentionRuleArray) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleArrayOutput
type BackupPolicyPostgresqlRetentionRuleArrayInput ¶
type BackupPolicyPostgresqlRetentionRuleArrayInput interface { pulumi.Input ToBackupPolicyPostgresqlRetentionRuleArrayOutput() BackupPolicyPostgresqlRetentionRuleArrayOutput ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext(context.Context) BackupPolicyPostgresqlRetentionRuleArrayOutput }
BackupPolicyPostgresqlRetentionRuleArrayInput is an input type that accepts BackupPolicyPostgresqlRetentionRuleArray and BackupPolicyPostgresqlRetentionRuleArrayOutput values. You can construct a concrete instance of `BackupPolicyPostgresqlRetentionRuleArrayInput` via:
BackupPolicyPostgresqlRetentionRuleArray{ BackupPolicyPostgresqlRetentionRuleArgs{...} }
type BackupPolicyPostgresqlRetentionRuleArrayOutput ¶
type BackupPolicyPostgresqlRetentionRuleArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlRetentionRuleArrayOutput) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleArrayOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutput ¶
func (o BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutput() BackupPolicyPostgresqlRetentionRuleArrayOutput
func (BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext ¶
func (o BackupPolicyPostgresqlRetentionRuleArrayOutput) ToBackupPolicyPostgresqlRetentionRuleArrayOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleArrayOutput
type BackupPolicyPostgresqlRetentionRuleCriteria ¶
type BackupPolicyPostgresqlRetentionRuleCriteria struct { // Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy PostgreSQL to be created. AbsoluteCriteria *string `pulumi:"absoluteCriteria"` // Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy PostgreSQL to be created. DaysOfWeeks []string `pulumi:"daysOfWeeks"` // Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy PostgreSQL to be created. MonthsOfYears []string `pulumi:"monthsOfYears"` // Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy PostgreSQL to be created. ScheduledBackupTimes []string `pulumi:"scheduledBackupTimes"` // Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy PostgreSQL to be created. WeeksOfMonths []string `pulumi:"weeksOfMonths"` }
type BackupPolicyPostgresqlRetentionRuleCriteriaArgs ¶
type BackupPolicyPostgresqlRetentionRuleCriteriaArgs struct { // Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy PostgreSQL to be created. AbsoluteCriteria pulumi.StringPtrInput `pulumi:"absoluteCriteria"` // Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy PostgreSQL to be created. DaysOfWeeks pulumi.StringArrayInput `pulumi:"daysOfWeeks"` // Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy PostgreSQL to be created. MonthsOfYears pulumi.StringArrayInput `pulumi:"monthsOfYears"` // Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy PostgreSQL to be created. ScheduledBackupTimes pulumi.StringArrayInput `pulumi:"scheduledBackupTimes"` // Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy PostgreSQL to be created. WeeksOfMonths pulumi.StringArrayInput `pulumi:"weeksOfMonths"` }
func (BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput ¶
func (i BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
func (BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext ¶
func (i BackupPolicyPostgresqlRetentionRuleCriteriaArgs) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleCriteriaOutput
type BackupPolicyPostgresqlRetentionRuleCriteriaInput ¶
type BackupPolicyPostgresqlRetentionRuleCriteriaInput interface { pulumi.Input ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput() BackupPolicyPostgresqlRetentionRuleCriteriaOutput ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext(context.Context) BackupPolicyPostgresqlRetentionRuleCriteriaOutput }
BackupPolicyPostgresqlRetentionRuleCriteriaInput is an input type that accepts BackupPolicyPostgresqlRetentionRuleCriteriaArgs and BackupPolicyPostgresqlRetentionRuleCriteriaOutput values. You can construct a concrete instance of `BackupPolicyPostgresqlRetentionRuleCriteriaInput` via:
BackupPolicyPostgresqlRetentionRuleCriteriaArgs{...}
type BackupPolicyPostgresqlRetentionRuleCriteriaOutput ¶
type BackupPolicyPostgresqlRetentionRuleCriteriaOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) AbsoluteCriteria ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) AbsoluteCriteria() pulumi.StringPtrOutput
Possible values are `AllBackup`, `FirstOfDay`, `FirstOfWeek`, `FirstOfMonth` and `FirstOfYear`. These values mean the first successful backup of the day/week/month/year. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) DaysOfWeeks ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) DaysOfWeeks() pulumi.StringArrayOutput
Possible values are `Monday`, `Tuesday`, `Thursday`, `Friday`, `Saturday` and `Sunday`. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) MonthsOfYears ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) MonthsOfYears() pulumi.StringArrayOutput
Possible values are `January`, `February`, `March`, `April`, `May`, `June`, `July`, `August`, `September`, `October`, `November` and `December`. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ScheduledBackupTimes ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ScheduledBackupTimes() pulumi.StringArrayOutput
Specifies a list of backup times for backup in the `RFC3339` format. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutput() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) ToBackupPolicyPostgresqlRetentionRuleCriteriaOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleCriteriaOutput
func (BackupPolicyPostgresqlRetentionRuleCriteriaOutput) WeeksOfMonths ¶
func (o BackupPolicyPostgresqlRetentionRuleCriteriaOutput) WeeksOfMonths() pulumi.StringArrayOutput
Possible values are `First`, `Second`, `Third`, `Fourth` and `Last`. Changing this forces a new Backup Policy PostgreSQL to be created.
type BackupPolicyPostgresqlRetentionRuleInput ¶
type BackupPolicyPostgresqlRetentionRuleInput interface { pulumi.Input ToBackupPolicyPostgresqlRetentionRuleOutput() BackupPolicyPostgresqlRetentionRuleOutput ToBackupPolicyPostgresqlRetentionRuleOutputWithContext(context.Context) BackupPolicyPostgresqlRetentionRuleOutput }
BackupPolicyPostgresqlRetentionRuleInput is an input type that accepts BackupPolicyPostgresqlRetentionRuleArgs and BackupPolicyPostgresqlRetentionRuleOutput values. You can construct a concrete instance of `BackupPolicyPostgresqlRetentionRuleInput` via:
BackupPolicyPostgresqlRetentionRuleArgs{...}
type BackupPolicyPostgresqlRetentionRuleOutput ¶
type BackupPolicyPostgresqlRetentionRuleOutput struct{ *pulumi.OutputState }
func (BackupPolicyPostgresqlRetentionRuleOutput) Criteria ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) Criteria() BackupPolicyPostgresqlRetentionRuleCriteriaOutput
A `criteria` block as defined below. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleOutput) Duration ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) Duration() pulumi.StringOutput
Duration after which the backup is deleted. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleOutput) ElementType ¶
func (BackupPolicyPostgresqlRetentionRuleOutput) ElementType() reflect.Type
func (BackupPolicyPostgresqlRetentionRuleOutput) Name ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) Name() pulumi.StringOutput
The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleOutput) Priority ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) Priority() pulumi.IntOutput
Specifies the priority of the rule. The priority number must be unique for each rule. The lower the priority number, the higher the priority of the rule. Changing this forces a new Backup Policy PostgreSQL to be created.
func (BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutput ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutput() BackupPolicyPostgresqlRetentionRuleOutput
func (BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext ¶
func (o BackupPolicyPostgresqlRetentionRuleOutput) ToBackupPolicyPostgresqlRetentionRuleOutputWithContext(ctx context.Context) BackupPolicyPostgresqlRetentionRuleOutput
type BackupPolicyPostgresqlState ¶
type BackupPolicyPostgresqlState struct { // Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy PostgreSQL to be created. BackupRepeatingTimeIntervals pulumi.StringArrayInput // The duration of default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy PostgreSQL to be created. DefaultRetentionDuration pulumi.StringPtrInput // The name which should be used for this Backup Policy PostgreSQL. Changing this forces a new Backup Policy PostgreSQL to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. ResourceGroupName pulumi.StringPtrInput // One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy PostgreSQL to be created. RetentionRules BackupPolicyPostgresqlRetentionRuleArrayInput // The name of the Backup Vault where the Backup Policy PostgreSQL should exist. Changing this forces a new Backup Policy PostgreSQL to be created. VaultName pulumi.StringPtrInput }
func (BackupPolicyPostgresqlState) ElementType ¶
func (BackupPolicyPostgresqlState) ElementType() reflect.Type
type BackupVault ¶
type BackupVault struct { pulumi.CustomResourceState // Specifies the type of the data store. Possible values are `ArchiveStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. DatastoreType pulumi.StringOutput `pulumi:"datastoreType"` // An `identity` block as defined below. Identity BackupVaultIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the backup storage redundancy. Possible values are `GeoRedundant` and `LocallyRedundant`. Changing this forces a new Backup Vault to be created. Redundancy pulumi.StringOutput `pulumi:"redundancy"` // The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Backup Vault. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Backup Vault.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 = dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DatastoreType: pulumi.String("VaultStore"), Redundancy: pulumi.String("LocallyRedundant"), }) if err != nil { return err } return nil }) }
```
## Import
Backup Vaults can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1
```
func GetBackupVault ¶
func GetBackupVault(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupVaultState, opts ...pulumi.ResourceOption) (*BackupVault, error)
GetBackupVault gets an existing BackupVault 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 NewBackupVault ¶
func NewBackupVault(ctx *pulumi.Context, name string, args *BackupVaultArgs, opts ...pulumi.ResourceOption) (*BackupVault, error)
NewBackupVault registers a new resource with the given unique name, arguments, and options.
func (*BackupVault) ElementType ¶
func (*BackupVault) ElementType() reflect.Type
func (*BackupVault) ToBackupVaultOutput ¶
func (i *BackupVault) ToBackupVaultOutput() BackupVaultOutput
func (*BackupVault) ToBackupVaultOutputWithContext ¶
func (i *BackupVault) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput
type BackupVaultArgs ¶
type BackupVaultArgs struct { // Specifies the type of the data store. Possible values are `ArchiveStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. DatastoreType pulumi.StringInput // An `identity` block as defined below. Identity BackupVaultIdentityPtrInput // The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. Location pulumi.StringPtrInput // Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created. Name pulumi.StringPtrInput // Specifies the backup storage redundancy. Possible values are `GeoRedundant` and `LocallyRedundant`. Changing this forces a new Backup Vault to be created. Redundancy pulumi.StringInput // The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Backup Vault. Tags pulumi.StringMapInput }
The set of arguments for constructing a BackupVault resource.
func (BackupVaultArgs) ElementType ¶
func (BackupVaultArgs) ElementType() reflect.Type
type BackupVaultArray ¶
type BackupVaultArray []BackupVaultInput
func (BackupVaultArray) ElementType ¶
func (BackupVaultArray) ElementType() reflect.Type
func (BackupVaultArray) ToBackupVaultArrayOutput ¶
func (i BackupVaultArray) ToBackupVaultArrayOutput() BackupVaultArrayOutput
func (BackupVaultArray) ToBackupVaultArrayOutputWithContext ¶
func (i BackupVaultArray) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput
type BackupVaultArrayInput ¶
type BackupVaultArrayInput interface { pulumi.Input ToBackupVaultArrayOutput() BackupVaultArrayOutput ToBackupVaultArrayOutputWithContext(context.Context) BackupVaultArrayOutput }
BackupVaultArrayInput is an input type that accepts BackupVaultArray and BackupVaultArrayOutput values. You can construct a concrete instance of `BackupVaultArrayInput` via:
BackupVaultArray{ BackupVaultArgs{...} }
type BackupVaultArrayOutput ¶
type BackupVaultArrayOutput struct{ *pulumi.OutputState }
func (BackupVaultArrayOutput) ElementType ¶
func (BackupVaultArrayOutput) ElementType() reflect.Type
func (BackupVaultArrayOutput) Index ¶
func (o BackupVaultArrayOutput) Index(i pulumi.IntInput) BackupVaultOutput
func (BackupVaultArrayOutput) ToBackupVaultArrayOutput ¶
func (o BackupVaultArrayOutput) ToBackupVaultArrayOutput() BackupVaultArrayOutput
func (BackupVaultArrayOutput) ToBackupVaultArrayOutputWithContext ¶
func (o BackupVaultArrayOutput) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput
type BackupVaultIdentity ¶
type BackupVaultIdentity struct { // The Principal ID for the Service Principal associated with the Identity of this Backup Vault. PrincipalId *string `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this Backup Vault. TenantId *string `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this Backup Vault. The only possible value is `SystemAssigned`. Type string `pulumi:"type"` }
type BackupVaultIdentityArgs ¶
type BackupVaultIdentityArgs struct { // The Principal ID for the Service Principal associated with the Identity of this Backup Vault. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this Backup Vault. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this Backup Vault. The only possible value is `SystemAssigned`. Type pulumi.StringInput `pulumi:"type"` }
func (BackupVaultIdentityArgs) ElementType ¶
func (BackupVaultIdentityArgs) ElementType() reflect.Type
func (BackupVaultIdentityArgs) ToBackupVaultIdentityOutput ¶
func (i BackupVaultIdentityArgs) ToBackupVaultIdentityOutput() BackupVaultIdentityOutput
func (BackupVaultIdentityArgs) ToBackupVaultIdentityOutputWithContext ¶
func (i BackupVaultIdentityArgs) ToBackupVaultIdentityOutputWithContext(ctx context.Context) BackupVaultIdentityOutput
func (BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutput ¶
func (i BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
func (BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutputWithContext ¶
func (i BackupVaultIdentityArgs) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
type BackupVaultIdentityInput ¶
type BackupVaultIdentityInput interface { pulumi.Input ToBackupVaultIdentityOutput() BackupVaultIdentityOutput ToBackupVaultIdentityOutputWithContext(context.Context) BackupVaultIdentityOutput }
BackupVaultIdentityInput is an input type that accepts BackupVaultIdentityArgs and BackupVaultIdentityOutput values. You can construct a concrete instance of `BackupVaultIdentityInput` via:
BackupVaultIdentityArgs{...}
type BackupVaultIdentityOutput ¶
type BackupVaultIdentityOutput struct{ *pulumi.OutputState }
func (BackupVaultIdentityOutput) ElementType ¶
func (BackupVaultIdentityOutput) ElementType() reflect.Type
func (BackupVaultIdentityOutput) PrincipalId ¶
func (o BackupVaultIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this Backup Vault.
func (BackupVaultIdentityOutput) TenantId ¶
func (o BackupVaultIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this Backup Vault.
func (BackupVaultIdentityOutput) ToBackupVaultIdentityOutput ¶
func (o BackupVaultIdentityOutput) ToBackupVaultIdentityOutput() BackupVaultIdentityOutput
func (BackupVaultIdentityOutput) ToBackupVaultIdentityOutputWithContext ¶
func (o BackupVaultIdentityOutput) ToBackupVaultIdentityOutputWithContext(ctx context.Context) BackupVaultIdentityOutput
func (BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutput ¶
func (o BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
func (BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutputWithContext ¶
func (o BackupVaultIdentityOutput) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
func (BackupVaultIdentityOutput) Type ¶
func (o BackupVaultIdentityOutput) Type() pulumi.StringOutput
Specifies the type of Managed Service Identity that should be configured on this Backup Vault. The only possible value is `SystemAssigned`.
type BackupVaultIdentityPtrInput ¶
type BackupVaultIdentityPtrInput interface { pulumi.Input ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput ToBackupVaultIdentityPtrOutputWithContext(context.Context) BackupVaultIdentityPtrOutput }
BackupVaultIdentityPtrInput is an input type that accepts BackupVaultIdentityArgs, BackupVaultIdentityPtr and BackupVaultIdentityPtrOutput values. You can construct a concrete instance of `BackupVaultIdentityPtrInput` via:
BackupVaultIdentityArgs{...} or: nil
func BackupVaultIdentityPtr ¶
func BackupVaultIdentityPtr(v *BackupVaultIdentityArgs) BackupVaultIdentityPtrInput
type BackupVaultIdentityPtrOutput ¶
type BackupVaultIdentityPtrOutput struct{ *pulumi.OutputState }
func (BackupVaultIdentityPtrOutput) Elem ¶
func (o BackupVaultIdentityPtrOutput) Elem() BackupVaultIdentityOutput
func (BackupVaultIdentityPtrOutput) ElementType ¶
func (BackupVaultIdentityPtrOutput) ElementType() reflect.Type
func (BackupVaultIdentityPtrOutput) PrincipalId ¶
func (o BackupVaultIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this Backup Vault.
func (BackupVaultIdentityPtrOutput) TenantId ¶
func (o BackupVaultIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this Backup Vault.
func (BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutput ¶
func (o BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutput() BackupVaultIdentityPtrOutput
func (BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutputWithContext ¶
func (o BackupVaultIdentityPtrOutput) ToBackupVaultIdentityPtrOutputWithContext(ctx context.Context) BackupVaultIdentityPtrOutput
func (BackupVaultIdentityPtrOutput) Type ¶
func (o BackupVaultIdentityPtrOutput) Type() pulumi.StringPtrOutput
Specifies the type of Managed Service Identity that should be configured on this Backup Vault. The only possible value is `SystemAssigned`.
type BackupVaultInput ¶
type BackupVaultInput interface { pulumi.Input ToBackupVaultOutput() BackupVaultOutput ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput }
type BackupVaultMap ¶
type BackupVaultMap map[string]BackupVaultInput
func (BackupVaultMap) ElementType ¶
func (BackupVaultMap) ElementType() reflect.Type
func (BackupVaultMap) ToBackupVaultMapOutput ¶
func (i BackupVaultMap) ToBackupVaultMapOutput() BackupVaultMapOutput
func (BackupVaultMap) ToBackupVaultMapOutputWithContext ¶
func (i BackupVaultMap) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput
type BackupVaultMapInput ¶
type BackupVaultMapInput interface { pulumi.Input ToBackupVaultMapOutput() BackupVaultMapOutput ToBackupVaultMapOutputWithContext(context.Context) BackupVaultMapOutput }
BackupVaultMapInput is an input type that accepts BackupVaultMap and BackupVaultMapOutput values. You can construct a concrete instance of `BackupVaultMapInput` via:
BackupVaultMap{ "key": BackupVaultArgs{...} }
type BackupVaultMapOutput ¶
type BackupVaultMapOutput struct{ *pulumi.OutputState }
func (BackupVaultMapOutput) ElementType ¶
func (BackupVaultMapOutput) ElementType() reflect.Type
func (BackupVaultMapOutput) MapIndex ¶
func (o BackupVaultMapOutput) MapIndex(k pulumi.StringInput) BackupVaultOutput
func (BackupVaultMapOutput) ToBackupVaultMapOutput ¶
func (o BackupVaultMapOutput) ToBackupVaultMapOutput() BackupVaultMapOutput
func (BackupVaultMapOutput) ToBackupVaultMapOutputWithContext ¶
func (o BackupVaultMapOutput) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput
type BackupVaultOutput ¶
type BackupVaultOutput struct{ *pulumi.OutputState }
func (BackupVaultOutput) DatastoreType ¶ added in v5.5.0
func (o BackupVaultOutput) DatastoreType() pulumi.StringOutput
Specifies the type of the data store. Possible values are `ArchiveStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created.
func (BackupVaultOutput) ElementType ¶
func (BackupVaultOutput) ElementType() reflect.Type
func (BackupVaultOutput) Identity ¶ added in v5.5.0
func (o BackupVaultOutput) Identity() BackupVaultIdentityPtrOutput
An `identity` block as defined below.
func (BackupVaultOutput) Location ¶ added in v5.5.0
func (o BackupVaultOutput) Location() pulumi.StringOutput
The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created.
func (BackupVaultOutput) Name ¶ added in v5.5.0
func (o BackupVaultOutput) Name() pulumi.StringOutput
Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created.
func (BackupVaultOutput) Redundancy ¶ added in v5.5.0
func (o BackupVaultOutput) Redundancy() pulumi.StringOutput
Specifies the backup storage redundancy. Possible values are `GeoRedundant` and `LocallyRedundant`. Changing this forces a new Backup Vault to be created.
func (BackupVaultOutput) ResourceGroupName ¶ added in v5.5.0
func (o BackupVaultOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created.
func (BackupVaultOutput) Tags ¶ added in v5.5.0
func (o BackupVaultOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Backup Vault.
func (BackupVaultOutput) ToBackupVaultOutput ¶
func (o BackupVaultOutput) ToBackupVaultOutput() BackupVaultOutput
func (BackupVaultOutput) ToBackupVaultOutputWithContext ¶
func (o BackupVaultOutput) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput
type BackupVaultState ¶
type BackupVaultState struct { // Specifies the type of the data store. Possible values are `ArchiveStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. DatastoreType pulumi.StringPtrInput // An `identity` block as defined below. Identity BackupVaultIdentityPtrInput // The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. Location pulumi.StringPtrInput // Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created. Name pulumi.StringPtrInput // Specifies the backup storage redundancy. Possible values are `GeoRedundant` and `LocallyRedundant`. Changing this forces a new Backup Vault to be created. Redundancy pulumi.StringPtrInput // The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Backup Vault. Tags pulumi.StringMapInput }
func (BackupVaultState) ElementType ¶
func (BackupVaultState) ElementType() reflect.Type
type GetBackupVaultIdentity ¶
type GetBackupVaultIdentity struct { // The Principal ID of the System Assigned Managed Service Identity that is configured on this Backup Vault. PrincipalId string `pulumi:"principalId"` // The Tenant ID of the System Assigned Managed Service Identity that is configured on this Backup Vault. TenantId string `pulumi:"tenantId"` // The type of Managed Service Identity that is configured on this Backup Vault. Type string `pulumi:"type"` }
type GetBackupVaultIdentityArgs ¶
type GetBackupVaultIdentityArgs struct { // The Principal ID of the System Assigned Managed Service Identity that is configured on this Backup Vault. PrincipalId pulumi.StringInput `pulumi:"principalId"` // The Tenant ID of the System Assigned Managed Service Identity that is configured on this Backup Vault. TenantId pulumi.StringInput `pulumi:"tenantId"` // The type of Managed Service Identity that is configured on this Backup Vault. Type pulumi.StringInput `pulumi:"type"` }
func (GetBackupVaultIdentityArgs) ElementType ¶
func (GetBackupVaultIdentityArgs) ElementType() reflect.Type
func (GetBackupVaultIdentityArgs) ToGetBackupVaultIdentityOutput ¶
func (i GetBackupVaultIdentityArgs) ToGetBackupVaultIdentityOutput() GetBackupVaultIdentityOutput
func (GetBackupVaultIdentityArgs) ToGetBackupVaultIdentityOutputWithContext ¶
func (i GetBackupVaultIdentityArgs) ToGetBackupVaultIdentityOutputWithContext(ctx context.Context) GetBackupVaultIdentityOutput
type GetBackupVaultIdentityArray ¶
type GetBackupVaultIdentityArray []GetBackupVaultIdentityInput
func (GetBackupVaultIdentityArray) ElementType ¶
func (GetBackupVaultIdentityArray) ElementType() reflect.Type
func (GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutput ¶
func (i GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutput() GetBackupVaultIdentityArrayOutput
func (GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutputWithContext ¶
func (i GetBackupVaultIdentityArray) ToGetBackupVaultIdentityArrayOutputWithContext(ctx context.Context) GetBackupVaultIdentityArrayOutput
type GetBackupVaultIdentityArrayInput ¶
type GetBackupVaultIdentityArrayInput interface { pulumi.Input ToGetBackupVaultIdentityArrayOutput() GetBackupVaultIdentityArrayOutput ToGetBackupVaultIdentityArrayOutputWithContext(context.Context) GetBackupVaultIdentityArrayOutput }
GetBackupVaultIdentityArrayInput is an input type that accepts GetBackupVaultIdentityArray and GetBackupVaultIdentityArrayOutput values. You can construct a concrete instance of `GetBackupVaultIdentityArrayInput` via:
GetBackupVaultIdentityArray{ GetBackupVaultIdentityArgs{...} }
type GetBackupVaultIdentityArrayOutput ¶
type GetBackupVaultIdentityArrayOutput struct{ *pulumi.OutputState }
func (GetBackupVaultIdentityArrayOutput) ElementType ¶
func (GetBackupVaultIdentityArrayOutput) ElementType() reflect.Type
func (GetBackupVaultIdentityArrayOutput) Index ¶
func (o GetBackupVaultIdentityArrayOutput) Index(i pulumi.IntInput) GetBackupVaultIdentityOutput
func (GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutput ¶
func (o GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutput() GetBackupVaultIdentityArrayOutput
func (GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutputWithContext ¶
func (o GetBackupVaultIdentityArrayOutput) ToGetBackupVaultIdentityArrayOutputWithContext(ctx context.Context) GetBackupVaultIdentityArrayOutput
type GetBackupVaultIdentityInput ¶
type GetBackupVaultIdentityInput interface { pulumi.Input ToGetBackupVaultIdentityOutput() GetBackupVaultIdentityOutput ToGetBackupVaultIdentityOutputWithContext(context.Context) GetBackupVaultIdentityOutput }
GetBackupVaultIdentityInput is an input type that accepts GetBackupVaultIdentityArgs and GetBackupVaultIdentityOutput values. You can construct a concrete instance of `GetBackupVaultIdentityInput` via:
GetBackupVaultIdentityArgs{...}
type GetBackupVaultIdentityOutput ¶
type GetBackupVaultIdentityOutput struct{ *pulumi.OutputState }
func (GetBackupVaultIdentityOutput) ElementType ¶
func (GetBackupVaultIdentityOutput) ElementType() reflect.Type
func (GetBackupVaultIdentityOutput) PrincipalId ¶
func (o GetBackupVaultIdentityOutput) PrincipalId() pulumi.StringOutput
The Principal ID of the System Assigned Managed Service Identity that is configured on this Backup Vault.
func (GetBackupVaultIdentityOutput) TenantId ¶
func (o GetBackupVaultIdentityOutput) TenantId() pulumi.StringOutput
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Backup Vault.
func (GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutput ¶
func (o GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutput() GetBackupVaultIdentityOutput
func (GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutputWithContext ¶
func (o GetBackupVaultIdentityOutput) ToGetBackupVaultIdentityOutputWithContext(ctx context.Context) GetBackupVaultIdentityOutput
func (GetBackupVaultIdentityOutput) Type ¶
func (o GetBackupVaultIdentityOutput) Type() pulumi.StringOutput
The type of Managed Service Identity that is configured on this Backup Vault.
type LookupBackupVaultArgs ¶
type LookupBackupVaultArgs struct { // Specifies the name of the Backup Vault. Name string `pulumi:"name"` // The name of the Resource Group where the Backup Vault exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getBackupVault.
type LookupBackupVaultOutputArgs ¶
type LookupBackupVaultOutputArgs struct { // Specifies the name of the Backup Vault. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Backup Vault exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getBackupVault.
func (LookupBackupVaultOutputArgs) ElementType ¶
func (LookupBackupVaultOutputArgs) ElementType() reflect.Type
type LookupBackupVaultResult ¶
type LookupBackupVaultResult struct { // Specifies the type of the data store. DatastoreType string `pulumi:"datastoreType"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A `identity` block as defined below. Identities []GetBackupVaultIdentity `pulumi:"identities"` // The Azure Region where the Backup Vault exists. Location string `pulumi:"location"` Name string `pulumi:"name"` // Specifies the backup storage redundancy. Redundancy string `pulumi:"redundancy"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags which are assigned to the Backup Vault. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getBackupVault.
func LookupBackupVault ¶
func LookupBackupVault(ctx *pulumi.Context, args *LookupBackupVaultArgs, opts ...pulumi.InvokeOption) (*LookupBackupVaultResult, error)
Use this data source to access information about an existing Backup Vault.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := dataprotection.LookupBackupVault(ctx, &dataprotection.LookupBackupVaultArgs{ Name: "existing-backup-vault", ResourceGroupName: "existing-resource-group", }, nil) if err != nil { return err } ctx.Export("azurermDataProtectionBackupVaultId", data.Azurerm_vpn_gateway.Example.Id) ctx.Export("azurermDataProtectionBackupVaultPrincipalId", example.Identities[0].PrincipalId) return nil }) }
```
type LookupBackupVaultResultOutput ¶
type LookupBackupVaultResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBackupVault.
func LookupBackupVaultOutput ¶
func LookupBackupVaultOutput(ctx *pulumi.Context, args LookupBackupVaultOutputArgs, opts ...pulumi.InvokeOption) LookupBackupVaultResultOutput
func (LookupBackupVaultResultOutput) DatastoreType ¶
func (o LookupBackupVaultResultOutput) DatastoreType() pulumi.StringOutput
Specifies the type of the data store.
func (LookupBackupVaultResultOutput) ElementType ¶
func (LookupBackupVaultResultOutput) ElementType() reflect.Type
func (LookupBackupVaultResultOutput) Id ¶
func (o LookupBackupVaultResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupBackupVaultResultOutput) Identities ¶
func (o LookupBackupVaultResultOutput) Identities() GetBackupVaultIdentityArrayOutput
A `identity` block as defined below.
func (LookupBackupVaultResultOutput) Location ¶
func (o LookupBackupVaultResultOutput) Location() pulumi.StringOutput
The Azure Region where the Backup Vault exists.
func (LookupBackupVaultResultOutput) Name ¶
func (o LookupBackupVaultResultOutput) Name() pulumi.StringOutput
func (LookupBackupVaultResultOutput) Redundancy ¶
func (o LookupBackupVaultResultOutput) Redundancy() pulumi.StringOutput
Specifies the backup storage redundancy.
func (LookupBackupVaultResultOutput) ResourceGroupName ¶
func (o LookupBackupVaultResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupBackupVaultResultOutput) Tags ¶
func (o LookupBackupVaultResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags which are assigned to the Backup Vault.
func (LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutput ¶
func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutput() LookupBackupVaultResultOutput
func (LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutputWithContext ¶
func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutputWithContext(ctx context.Context) LookupBackupVaultResultOutput
type ResourceGuard ¶ added in v5.12.0
type ResourceGuard struct { pulumi.CustomResourceState // The Azure Region where the Resource Guard should exist. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the Resource Guard. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Resource Guard should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Resource Guard. Tags pulumi.StringMapOutput `pulumi:"tags"` // A list of the critical operations which are not protected by this Resource Guard. VaultCriticalOperationExclusionLists pulumi.StringArrayOutput `pulumi:"vaultCriticalOperationExclusionLists"` }
Manages a Resource Guard.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection" "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 = dataprotection.NewResourceGuard(ctx, "exampleResourceGuard", &dataprotection.ResourceGuardArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, }) if err != nil { return err } return nil }) }
```
## Import
Resource Guards can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:dataprotection/resourceGuard:ResourceGuard example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/resourceGuards/resourceGuard1
```
func GetResourceGuard ¶ added in v5.12.0
func GetResourceGuard(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ResourceGuardState, opts ...pulumi.ResourceOption) (*ResourceGuard, error)
GetResourceGuard gets an existing ResourceGuard 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 NewResourceGuard ¶ added in v5.12.0
func NewResourceGuard(ctx *pulumi.Context, name string, args *ResourceGuardArgs, opts ...pulumi.ResourceOption) (*ResourceGuard, error)
NewResourceGuard registers a new resource with the given unique name, arguments, and options.
func (*ResourceGuard) ElementType ¶ added in v5.12.0
func (*ResourceGuard) ElementType() reflect.Type
func (*ResourceGuard) ToResourceGuardOutput ¶ added in v5.12.0
func (i *ResourceGuard) ToResourceGuardOutput() ResourceGuardOutput
func (*ResourceGuard) ToResourceGuardOutputWithContext ¶ added in v5.12.0
func (i *ResourceGuard) ToResourceGuardOutputWithContext(ctx context.Context) ResourceGuardOutput
type ResourceGuardArgs ¶ added in v5.12.0
type ResourceGuardArgs struct { // The Azure Region where the Resource Guard should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the Resource Guard. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Resource Guard should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Resource Guard. Tags pulumi.StringMapInput // A list of the critical operations which are not protected by this Resource Guard. VaultCriticalOperationExclusionLists pulumi.StringArrayInput }
The set of arguments for constructing a ResourceGuard resource.
func (ResourceGuardArgs) ElementType ¶ added in v5.12.0
func (ResourceGuardArgs) ElementType() reflect.Type
type ResourceGuardArray ¶ added in v5.12.0
type ResourceGuardArray []ResourceGuardInput
func (ResourceGuardArray) ElementType ¶ added in v5.12.0
func (ResourceGuardArray) ElementType() reflect.Type
func (ResourceGuardArray) ToResourceGuardArrayOutput ¶ added in v5.12.0
func (i ResourceGuardArray) ToResourceGuardArrayOutput() ResourceGuardArrayOutput
func (ResourceGuardArray) ToResourceGuardArrayOutputWithContext ¶ added in v5.12.0
func (i ResourceGuardArray) ToResourceGuardArrayOutputWithContext(ctx context.Context) ResourceGuardArrayOutput
type ResourceGuardArrayInput ¶ added in v5.12.0
type ResourceGuardArrayInput interface { pulumi.Input ToResourceGuardArrayOutput() ResourceGuardArrayOutput ToResourceGuardArrayOutputWithContext(context.Context) ResourceGuardArrayOutput }
ResourceGuardArrayInput is an input type that accepts ResourceGuardArray and ResourceGuardArrayOutput values. You can construct a concrete instance of `ResourceGuardArrayInput` via:
ResourceGuardArray{ ResourceGuardArgs{...} }
type ResourceGuardArrayOutput ¶ added in v5.12.0
type ResourceGuardArrayOutput struct{ *pulumi.OutputState }
func (ResourceGuardArrayOutput) ElementType ¶ added in v5.12.0
func (ResourceGuardArrayOutput) ElementType() reflect.Type
func (ResourceGuardArrayOutput) Index ¶ added in v5.12.0
func (o ResourceGuardArrayOutput) Index(i pulumi.IntInput) ResourceGuardOutput
func (ResourceGuardArrayOutput) ToResourceGuardArrayOutput ¶ added in v5.12.0
func (o ResourceGuardArrayOutput) ToResourceGuardArrayOutput() ResourceGuardArrayOutput
func (ResourceGuardArrayOutput) ToResourceGuardArrayOutputWithContext ¶ added in v5.12.0
func (o ResourceGuardArrayOutput) ToResourceGuardArrayOutputWithContext(ctx context.Context) ResourceGuardArrayOutput
type ResourceGuardInput ¶ added in v5.12.0
type ResourceGuardInput interface { pulumi.Input ToResourceGuardOutput() ResourceGuardOutput ToResourceGuardOutputWithContext(ctx context.Context) ResourceGuardOutput }
type ResourceGuardMap ¶ added in v5.12.0
type ResourceGuardMap map[string]ResourceGuardInput
func (ResourceGuardMap) ElementType ¶ added in v5.12.0
func (ResourceGuardMap) ElementType() reflect.Type
func (ResourceGuardMap) ToResourceGuardMapOutput ¶ added in v5.12.0
func (i ResourceGuardMap) ToResourceGuardMapOutput() ResourceGuardMapOutput
func (ResourceGuardMap) ToResourceGuardMapOutputWithContext ¶ added in v5.12.0
func (i ResourceGuardMap) ToResourceGuardMapOutputWithContext(ctx context.Context) ResourceGuardMapOutput
type ResourceGuardMapInput ¶ added in v5.12.0
type ResourceGuardMapInput interface { pulumi.Input ToResourceGuardMapOutput() ResourceGuardMapOutput ToResourceGuardMapOutputWithContext(context.Context) ResourceGuardMapOutput }
ResourceGuardMapInput is an input type that accepts ResourceGuardMap and ResourceGuardMapOutput values. You can construct a concrete instance of `ResourceGuardMapInput` via:
ResourceGuardMap{ "key": ResourceGuardArgs{...} }
type ResourceGuardMapOutput ¶ added in v5.12.0
type ResourceGuardMapOutput struct{ *pulumi.OutputState }
func (ResourceGuardMapOutput) ElementType ¶ added in v5.12.0
func (ResourceGuardMapOutput) ElementType() reflect.Type
func (ResourceGuardMapOutput) MapIndex ¶ added in v5.12.0
func (o ResourceGuardMapOutput) MapIndex(k pulumi.StringInput) ResourceGuardOutput
func (ResourceGuardMapOutput) ToResourceGuardMapOutput ¶ added in v5.12.0
func (o ResourceGuardMapOutput) ToResourceGuardMapOutput() ResourceGuardMapOutput
func (ResourceGuardMapOutput) ToResourceGuardMapOutputWithContext ¶ added in v5.12.0
func (o ResourceGuardMapOutput) ToResourceGuardMapOutputWithContext(ctx context.Context) ResourceGuardMapOutput
type ResourceGuardOutput ¶ added in v5.12.0
type ResourceGuardOutput struct{ *pulumi.OutputState }
func (ResourceGuardOutput) ElementType ¶ added in v5.12.0
func (ResourceGuardOutput) ElementType() reflect.Type
func (ResourceGuardOutput) Location ¶ added in v5.12.0
func (o ResourceGuardOutput) Location() pulumi.StringOutput
The Azure Region where the Resource Guard should exist. Changing this forces a new resource to be created.
func (ResourceGuardOutput) Name ¶ added in v5.12.0
func (o ResourceGuardOutput) Name() pulumi.StringOutput
The name of the Resource Guard. Changing this forces a new resource to be created.
func (ResourceGuardOutput) ResourceGroupName ¶ added in v5.12.0
func (o ResourceGuardOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Resource Guard should exist. Changing this forces a new resource to be created.
func (ResourceGuardOutput) Tags ¶ added in v5.12.0
func (o ResourceGuardOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Resource Guard.
func (ResourceGuardOutput) ToResourceGuardOutput ¶ added in v5.12.0
func (o ResourceGuardOutput) ToResourceGuardOutput() ResourceGuardOutput
func (ResourceGuardOutput) ToResourceGuardOutputWithContext ¶ added in v5.12.0
func (o ResourceGuardOutput) ToResourceGuardOutputWithContext(ctx context.Context) ResourceGuardOutput
func (ResourceGuardOutput) VaultCriticalOperationExclusionLists ¶ added in v5.12.0
func (o ResourceGuardOutput) VaultCriticalOperationExclusionLists() pulumi.StringArrayOutput
A list of the critical operations which are not protected by this Resource Guard.
type ResourceGuardState ¶ added in v5.12.0
type ResourceGuardState struct { // The Azure Region where the Resource Guard should exist. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the Resource Guard. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Resource Guard should exist. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Resource Guard. Tags pulumi.StringMapInput // A list of the critical operations which are not protected by this Resource Guard. VaultCriticalOperationExclusionLists pulumi.StringArrayInput }
func (ResourceGuardState) ElementType ¶ added in v5.12.0
func (ResourceGuardState) ElementType() reflect.Type