@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.857Z") @Stability(value=Stable) public class CfnBackupSelection extends CfnResource implements IInspectable
Specifies a set of resources to assign to a backup plan.
For a sample AWS CloudFormation template, see the AWS Backup Developer Guide .
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.*;
Object conditions;
CfnBackupSelection cfnBackupSelection = CfnBackupSelection.Builder.create(this, "MyCfnBackupSelection")
.backupPlanId("backupPlanId")
.backupSelection(BackupSelectionResourceTypeProperty.builder()
.iamRoleArn("iamRoleArn")
.selectionName("selectionName")
// the properties below are optional
.conditions(conditions)
.listOfTags(List.of(ConditionResourceTypeProperty.builder()
.conditionKey("conditionKey")
.conditionType("conditionType")
.conditionValue("conditionValue")
.build()))
.notResources(List.of("notResources"))
.resources(List.of("resources"))
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnBackupSelection.BackupSelectionResourceTypeProperty
Specifies an object containing properties used to assign a set of resources to a backup plan.
|
static class |
CfnBackupSelection.Builder
A fluent builder for
CfnBackupSelection. |
static interface |
CfnBackupSelection.ConditionResourceTypeProperty
Specifies an object that contains an array of triplets made up of a condition type (such as `STRINGEQUALS` ), a key, and a value.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnBackupSelection(software.constructs.Construct scope,
String id,
CfnBackupSelectionProps props)
Create a new `AWS::Backup::BackupSelection`.
|
protected |
CfnBackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBackupSelection(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrBackupPlanId()
Uniquely identifies a backup plan.
|
String |
getAttrId()
Uniquely identifies the backup selection.
|
String |
getAttrSelectionId()
Uniquely identifies a request to assign a set of resources to a backup plan.
|
String |
getBackupPlanId()
Uniquely identifies a backup plan.
|
Object |
getBackupSelection()
Specifies the body of a request to assign a set of resources to a backup plan.
|
protected Map<String,Object> |
getCfnProperties() |
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBackupPlanId(String value)
Uniquely identifies a backup plan.
|
void |
setBackupSelection(CfnBackupSelection.BackupSelectionResourceTypeProperty value)
Specifies the body of a request to assign a set of resources to a backup plan.
|
void |
setBackupSelection(IResolvable value)
Specifies the body of a request to assign a set of resources to a backup plan.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnBackupSelection(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBackupSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnBackupSelection(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnBackupSelectionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrBackupPlanId()
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull public String getAttrSelectionId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getBackupPlanId()
@Stability(value=Stable)
public void setBackupPlanId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getBackupSelection()
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
@Stability(value=Stable)
public void setBackupSelection(@NotNull
CfnBackupSelection.BackupSelectionResourceTypeProperty value)
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
@Stability(value=Stable)
public void setBackupSelection(@NotNull
IResolvable value)
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
Copyright © 2022. All rights reserved.