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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFramework
.static interface
A list of parameters for a control.static interface
A framework consists of one or more controls.static interface
Contains detailed information about all of the controls of a framework.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnFramework
(Construct scope, String id, CfnFrameworkProps props) Create a newAWS::Backup::Framework
.protected
CfnFramework
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFramework
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setFrameworkControls
(List<Object> value) Contains detailed information about all of the controls of a framework.void
setFrameworkControls
(IResolvable value) Contains detailed information about all of the controls of a framework.void
setFrameworkDescription
(String value) An optional description of the framework with a maximum 1,024 characters.void
setFrameworkName
(String value) The unique name of a framework.void
setFrameworkTags
(List<Object> value) A list of tags with which to tag your framework.void
setFrameworkTags
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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 progress
or 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
Active
when 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:
getCfnProperties
in 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.
-