ibm.CosBackupPolicy
Explore with Pulumi AI
Create CosBackupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CosBackupPolicy(name: string, args: CosBackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def CosBackupPolicy(resource_name: str,
args: CosBackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CosBackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_type: Optional[str] = None,
bucket_crn: Optional[str] = None,
policy_name: Optional[str] = None,
target_backup_vault_crn: Optional[str] = None,
cos_backup_policy_id: Optional[str] = None,
timeouts: Optional[CosBackupPolicyTimeoutsArgs] = None)
func NewCosBackupPolicy(ctx *Context, name string, args CosBackupPolicyArgs, opts ...ResourceOption) (*CosBackupPolicy, error)
public CosBackupPolicy(string name, CosBackupPolicyArgs args, CustomResourceOptions? opts = null)
public CosBackupPolicy(String name, CosBackupPolicyArgs args)
public CosBackupPolicy(String name, CosBackupPolicyArgs args, CustomResourceOptions options)
type: ibm:CosBackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CosBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CosBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CosBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CosBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CosBackupPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cosBackupPolicyResource = new Ibm.CosBackupPolicy("cosBackupPolicyResource", new()
{
BackupType = "string",
BucketCrn = "string",
PolicyName = "string",
TargetBackupVaultCrn = "string",
CosBackupPolicyId = "string",
Timeouts = new Ibm.Inputs.CosBackupPolicyTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewCosBackupPolicy(ctx, "cosBackupPolicyResource", &ibm.CosBackupPolicyArgs{
BackupType: pulumi.String("string"),
BucketCrn: pulumi.String("string"),
PolicyName: pulumi.String("string"),
TargetBackupVaultCrn: pulumi.String("string"),
CosBackupPolicyId: pulumi.String("string"),
Timeouts: &ibm.CosBackupPolicyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cosBackupPolicyResource = new CosBackupPolicy("cosBackupPolicyResource", CosBackupPolicyArgs.builder()
.backupType("string")
.bucketCrn("string")
.policyName("string")
.targetBackupVaultCrn("string")
.cosBackupPolicyId("string")
.timeouts(CosBackupPolicyTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cos_backup_policy_resource = ibm.CosBackupPolicy("cosBackupPolicyResource",
backup_type="string",
bucket_crn="string",
policy_name="string",
target_backup_vault_crn="string",
cos_backup_policy_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const cosBackupPolicyResource = new ibm.CosBackupPolicy("cosBackupPolicyResource", {
backupType: "string",
bucketCrn: "string",
policyName: "string",
targetBackupVaultCrn: "string",
cosBackupPolicyId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:CosBackupPolicy
properties:
backupType: string
bucketCrn: string
cosBackupPolicyId: string
policyName: string
targetBackupVaultCrn: string
timeouts:
create: string
delete: string
update: string
CosBackupPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CosBackupPolicy resource accepts the following input properties:
- Backup
Type string - The type of backup to support.
- Bucket
Crn string - Bucket Crn of the source bucket.
- Policy
Name string - Name of the backup policy to be applied on the source bucket.
- Target
Backup stringVault Crn - The CRN for a COS BackupVault.
- Cos
Backup stringPolicy Id - Timeouts
Cos
Backup Policy Timeouts
- Backup
Type string - The type of backup to support.
- Bucket
Crn string - Bucket Crn of the source bucket.
- Policy
Name string - Name of the backup policy to be applied on the source bucket.
- Target
Backup stringVault Crn - The CRN for a COS BackupVault.
- Cos
Backup stringPolicy Id - Timeouts
Cos
Backup Policy Timeouts Args
- backup
Type String - The type of backup to support.
- bucket
Crn String - Bucket Crn of the source bucket.
- policy
Name String - Name of the backup policy to be applied on the source bucket.
- target
Backup StringVault Crn - The CRN for a COS BackupVault.
- cos
Backup StringPolicy Id - timeouts
Cos
Backup Policy Timeouts
- backup
Type string - The type of backup to support.
- bucket
Crn string - Bucket Crn of the source bucket.
- policy
Name string - Name of the backup policy to be applied on the source bucket.
- target
Backup stringVault Crn - The CRN for a COS BackupVault.
- cos
Backup stringPolicy Id - timeouts
Cos
Backup Policy Timeouts
- backup_
type str - The type of backup to support.
- bucket_
crn str - Bucket Crn of the source bucket.
- policy_
name str - Name of the backup policy to be applied on the source bucket.
- target_
backup_ strvault_ crn - The CRN for a COS BackupVault.
- cos_
backup_ strpolicy_ id - timeouts
Cos
Backup Policy Timeouts Args
- backup
Type String - The type of backup to support.
- bucket
Crn String - Bucket Crn of the source bucket.
- policy
Name String - Name of the backup policy to be applied on the source bucket.
- target
Backup StringVault Crn - The CRN for a COS BackupVault.
- cos
Backup StringPolicy Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CosBackupPolicy resource produces the following output properties:
Look up Existing CosBackupPolicy Resource
Get an existing CosBackupPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CosBackupPolicyState, opts?: CustomResourceOptions): CosBackupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_type: Optional[str] = None,
bucket_crn: Optional[str] = None,
cos_backup_policy_id: Optional[str] = None,
policy_id: Optional[str] = None,
policy_name: Optional[str] = None,
target_backup_vault_crn: Optional[str] = None,
timeouts: Optional[CosBackupPolicyTimeoutsArgs] = None) -> CosBackupPolicy
func GetCosBackupPolicy(ctx *Context, name string, id IDInput, state *CosBackupPolicyState, opts ...ResourceOption) (*CosBackupPolicy, error)
public static CosBackupPolicy Get(string name, Input<string> id, CosBackupPolicyState? state, CustomResourceOptions? opts = null)
public static CosBackupPolicy get(String name, Output<String> id, CosBackupPolicyState state, CustomResourceOptions options)
resources: _: type: ibm:CosBackupPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Type string - The type of backup to support.
- Bucket
Crn string - Bucket Crn of the source bucket.
- Cos
Backup stringPolicy Id - Policy
Id string - Id of the backup policy applied on the source bucket
- Policy
Name string - Name of the backup policy to be applied on the source bucket.
- Target
Backup stringVault Crn - The CRN for a COS BackupVault.
- Timeouts
Cos
Backup Policy Timeouts
- Backup
Type string - The type of backup to support.
- Bucket
Crn string - Bucket Crn of the source bucket.
- Cos
Backup stringPolicy Id - Policy
Id string - Id of the backup policy applied on the source bucket
- Policy
Name string - Name of the backup policy to be applied on the source bucket.
- Target
Backup stringVault Crn - The CRN for a COS BackupVault.
- Timeouts
Cos
Backup Policy Timeouts Args
- backup
Type String - The type of backup to support.
- bucket
Crn String - Bucket Crn of the source bucket.
- cos
Backup StringPolicy Id - policy
Id String - Id of the backup policy applied on the source bucket
- policy
Name String - Name of the backup policy to be applied on the source bucket.
- target
Backup StringVault Crn - The CRN for a COS BackupVault.
- timeouts
Cos
Backup Policy Timeouts
- backup
Type string - The type of backup to support.
- bucket
Crn string - Bucket Crn of the source bucket.
- cos
Backup stringPolicy Id - policy
Id string - Id of the backup policy applied on the source bucket
- policy
Name string - Name of the backup policy to be applied on the source bucket.
- target
Backup stringVault Crn - The CRN for a COS BackupVault.
- timeouts
Cos
Backup Policy Timeouts
- backup_
type str - The type of backup to support.
- bucket_
crn str - Bucket Crn of the source bucket.
- cos_
backup_ strpolicy_ id - policy_
id str - Id of the backup policy applied on the source bucket
- policy_
name str - Name of the backup policy to be applied on the source bucket.
- target_
backup_ strvault_ crn - The CRN for a COS BackupVault.
- timeouts
Cos
Backup Policy Timeouts Args
- backup
Type String - The type of backup to support.
- bucket
Crn String - Bucket Crn of the source bucket.
- cos
Backup StringPolicy Id - policy
Id String - Id of the backup policy applied on the source bucket
- policy
Name String - Name of the backup policy to be applied on the source bucket.
- target
Backup StringVault Crn - The CRN for a COS BackupVault.
- timeouts Property Map
Supporting Types
CosBackupPolicyTimeouts, CosBackupPolicyTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.