@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.612Z") public class BackupSelection extends Resource implements IGrantable
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.backup.*; import software.amazon.awscdk.services.iam.*; BackupPlan backupPlan; BackupResource backupResource; Role role; BackupSelection backupSelection = BackupSelection.Builder.create(this, "MyBackupSelection") .backupPlan(backupPlan) .resources(List.of(backupResource)) // the properties below are optional .allowRestores(false) .backupSelectionName("backupSelectionName") .role(role) .build();
Modifier and Type | Class and Description |
---|---|
static class |
BackupSelection.Builder
A fluent builder for
BackupSelection . |
IGrantable.Jsii$Default, IGrantable.Jsii$Proxy
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
BackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BackupSelection(software.amazon.jsii.JsiiObjectRef objRef) |
|
BackupSelection(software.constructs.Construct scope,
java.lang.String id,
BackupSelectionProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackupPlanId()
The identifier of the backup plan.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
java.lang.String |
getSelectionId()
The identifier of the backup selection.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected BackupSelection(software.amazon.jsii.JsiiObjectRef objRef)
protected BackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public BackupSelection(software.constructs.Construct scope, java.lang.String id, BackupSelectionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public java.lang.String getBackupPlanId()
public IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable
public java.lang.String getSelectionId()