Show / Hide Table of Contents

Class BackupSelection

A backup selection.

Inheritance
object
Resource
BackupSelection
Implements
IResource
IConstruct
IDependable
IEnvironmentAware
IGrantable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BackupSelection : Resource, IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable
Syntax (vb)
Public Class BackupSelection Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.Backup;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.Interfaces.Backup;

            IBackupPlanRef backupPlanRef;
            BackupResource backupResource;
            Role role;

            var backupSelection = new BackupSelection(this, "MyBackupSelection", new BackupSelectionProps {
                BackupPlan = backupPlanRef,
                Resources = new [] { backupResource },

                // the properties below are optional
                AllowRestores = false,
                BackupSelectionName = "backupSelectionName",
                DisableDefaultBackupPolicy = false,
                Role = role
            });

Synopsis

Constructors

BackupSelection(Construct, string, IBackupSelectionProps)

A backup selection.

Properties

BackupPlanId

The identifier of the backup plan.

GrantPrincipal

The principal to grant permissions to.

PROPERTY_INJECTION_ID

Uniquely identifies this class.

SelectionId

The identifier of the backup selection.

Constructors

BackupSelection(Construct, string, IBackupSelectionProps)

A backup selection.

public BackupSelection(Construct scope, string id, IBackupSelectionProps props)
Parameters
scope Construct
id string
props IBackupSelectionProps
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.Backup;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.Interfaces.Backup;

            IBackupPlanRef backupPlanRef;
            BackupResource backupResource;
            Role role;

            var backupSelection = new BackupSelection(this, "MyBackupSelection", new BackupSelectionProps {
                BackupPlan = backupPlanRef,
                Resources = new [] { backupResource },

                // the properties below are optional
                AllowRestores = false,
                BackupSelectionName = "backupSelectionName",
                DisableDefaultBackupPolicy = false,
                Role = role
            });

Properties

BackupPlanId

The identifier of the backup plan.

public virtual string BackupPlanId { get; }
Property Value

string

Remarks

Attribute: true

GrantPrincipal

The principal to grant permissions to.

public virtual IPrincipal GrantPrincipal { get; }
Property Value

IPrincipal

Remarks

ExampleMetadata: fixture=_generated

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

SelectionId

The identifier of the backup selection.

public virtual string SelectionId { get; }
Property Value

string

Remarks

Attribute: true

Implements

IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
IGrantable
Back to top Generated by DocFX