Class CfnFramework
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Backup::Framework.
Creates a framework with one or more controls. 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 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 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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFramework.static interfaceA list of 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnFramework(Construct scope, String id, CfnFrameworkProps props) Create a newAWS::Backup::Framework.protectedCfnFramework(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFramework(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.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 list of tags with which to tag your framework.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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<Object> value) A list of tags with which to tag your framework.voidsetFrameworkTags(IResolvable value) A list of tags with which to tag your framework.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnFrameworkProps props) Create a newAWS::Backup::Framework.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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 . -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFrameworkControls
Contains detailed information about all of the controls of a framework.Each framework must contain at least one control.
-
setFrameworkControls
Contains detailed information about all of the controls of a framework.Each framework must contain at least one control.
-
setFrameworkControls
Contains detailed information about all of the controls of a framework.Each framework must contain at least one control.
-
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.This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
-
setFrameworkName
The unique name of a framework.This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
-
getFrameworkTags
A list of tags with which to tag your framework. -
setFrameworkTags
A list of tags with which to tag your framework. -
setFrameworkTags
A list of tags with which to tag your framework.
-