Class CfnFramework
- All Implemented Interfaces:
IInspectable,IFrameworkRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A framework is a collection of controls that you can use to evaluate your backup practices. By using pre-built customizable controls to define your policies, you can evaluate whether your backup practices comply with your policies and which resources are not yet in compliance.
For a sample 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 controlScope;
CfnFramework cfnFramework = CfnFramework.Builder.create(this, "MyCfnFramework")
.frameworkControls(List.of(FrameworkControlProperty.builder()
.controlName("controlName")
// the properties below are optional
.controlInputParameters(List.of(ControlInputParameterProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.controlScope(controlScope)
.build()))
// the properties below are optional
.frameworkDescription("frameworkDescription")
.frameworkName("frameworkName")
.frameworkTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFramework.static interfaceThe parameters for a control.static interfaceA framework consists of one or more controls.static interfaceContains detailed information about all of the controls of a framework.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.backup.IFrameworkRef
IFrameworkRef.Jsii$Default, IFrameworkRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFramework(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFramework(software.amazon.jsii.JsiiObjectRef objRef) CfnFramework(software.constructs.Construct scope, String id, CfnFrameworkProps props) Create a newAWS::Backup::Framework. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForFramework(IFrameworkRef resource) The UTC time when you created your framework.Depolyment status refers to whether your framework has completed deployment.The Amazon Resource Name (ARN) of your framework.Framework status refers to whether you have turned on resource tracking for all of your resources.Tag Manager which manages the tags for this resource.Contains detailed information about all of the controls of a framework.An optional description of the framework with a maximum 1,024 characters.The unique name of a framework.A reference to a Framework resource.The tags to assign to your framework.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFramework.renderProperties(Map<String, Object> props) voidsetFrameworkControls(List<Object> value) Contains detailed information about all of the controls of a framework.voidsetFrameworkControls(IResolvable value) Contains detailed information about all of the controls of a framework.voidsetFrameworkDescription(String value) An optional description of the framework with a maximum 1,024 characters.voidsetFrameworkName(String value) The unique name of a framework.voidsetFrameworkTags(List<CfnTag> value) The tags to assign to your framework.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFramework
protected CfnFramework(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFramework
protected CfnFramework(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFramework
@Stability(Stable) public CfnFramework(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFrameworkProps props) Create a newAWS::Backup::Framework.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForFramework
- Parameters:
resource- This parameter is required.
-
isCfnFramework
Checks whether the given object is a CfnFramework.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
The UTC time when you created your framework. -
getAttrDeploymentStatus
Depolyment status refers to whether your framework has completed deployment.This status is usually
Completed, but might also beCreate in progressor another status. For a list of statuses, see Framework compliance status in the Developer Guide . -
getAttrFrameworkArn
The Amazon Resource Name (ARN) of your framework. -
getAttrFrameworkStatus
Framework status refers to whether you have turned on resource tracking for all of your resources.This status is
Activewhen you turn on all resources the framework evaluates. For other statuses and steps to correct them, see Framework compliance status in the Developer Guide . -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFrameworkRef
A reference to a Framework resource.- Specified by:
getFrameworkRefin interfaceIFrameworkRef
-
getFrameworkControls
Contains detailed information about all of the controls of a framework.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFramework.FrameworkControlProperty> -
setFrameworkControls
Contains detailed information about all of the controls of a framework. -
setFrameworkControls
Contains detailed information about all of the controls of a framework. -
getFrameworkDescription
An optional description of the framework with a maximum 1,024 characters. -
setFrameworkDescription
An optional description of the framework with a maximum 1,024 characters. -
getFrameworkName
The unique name of a framework. -
setFrameworkName
The unique name of a framework. -
getFrameworkTags
The tags to assign to your framework. -
setFrameworkTags
The tags to assign to your framework.
-