@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.850Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIGrantable.Jsii$Default, IGrantable.Jsii$ProxyIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
BackupSelection(software.constructs.Construct scope,
String id,
BackupSelectionProps props) |
protected |
BackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BackupSelection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBackupPlanId()
The identifier of the backup plan.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
String |
getSelectionId()
The identifier of the backup selection.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BackupSelection(software.amazon.jsii.JsiiObjectRef objRef)
protected BackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public BackupSelection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
BackupSelectionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public String getBackupPlanId()
@Stability(value=Stable) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Stable) @NotNull public String getSelectionId()
Copyright © 2022. All rights reserved.