CfnFrameworkProps Struct
Properties for defining a CfnFramework.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
declare const controlScope: any;
const cfnFrameworkProps: backup.CfnFrameworkProps = {
frameworkControls: [{
controlName: 'controlName',
// the properties below are optional
controlInputParameters: [{
parameterName: 'parameterName',
parameterValue: 'parameterValue',
}],
controlScope: controlScope,
}],
// the properties below are optional
frameworkDescription: 'frameworkDescription',
frameworkName: 'frameworkName',
frameworkTags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup
# control_scope: Any
cfn_framework_props = backup.CfnFrameworkProps(
framework_controls=[backup.CfnFramework.FrameworkControlProperty(
control_name="controlName",
# the properties below are optional
control_input_parameters=[backup.CfnFramework.ControlInputParameterProperty(
parameter_name="parameterName",
parameter_value="parameterValue"
)],
control_scope=control_scope
)],
# the properties below are optional
framework_description="frameworkDescription",
framework_name="frameworkName",
framework_tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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;
CfnFrameworkProps cfnFrameworkProps = CfnFrameworkProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var controlScope;
var cfnFrameworkProps = new CfnFrameworkProps {
FrameworkControls = new [] { new FrameworkControlProperty {
ControlName = "controlName",
// the properties below are optional
ControlInputParameters = new [] { new ControlInputParameterProperty {
ParameterName = "parameterName",
ParameterValue = "parameterValue"
} },
ControlScope = controlScope
} },
// the properties below are optional
FrameworkDescription = "frameworkDescription",
FrameworkName = "frameworkName",
FrameworkTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var controlScope interface{}
cfnFrameworkProps := &CfnFrameworkProps{
FrameworkControls: []interface{}{
&FrameworkControlProperty{
ControlName: jsii.String("controlName"),
// the properties below are optional
ControlInputParameters: []interface{}{
&ControlInputParameterProperty{
ParameterName: jsii.String("parameterName"),
ParameterValue: jsii.String("parameterValue"),
},
},
ControlScope: controlScope,
},
},
// the properties below are optional
FrameworkDescription: jsii.String("frameworkDescription"),
FrameworkName: jsii.String("frameworkName"),
FrameworkTags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
frameworkControlsIResolvable | IResolvable | CfnFramework.framework_controlstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FrameworkControlProperty]]]frameworkControlsIResolvableFrameworkControlsIResolvableFrameworkControlsinterface{} required #Contains detailed information about all of the controls of a framework.
Each framework must contain at least one control.
frameworkDescriptionoptionalstringframework_descriptionoptionalstrframeworkDescriptionoptionalStringFrameworkDescriptionoptionalstringFrameworkDescriptionoptional*string #An optional description of the framework with a maximum 1,024 characters.
frameworkNameoptionalstringframework_nameoptionalstrframeworkNameoptionalStringFrameworkNameoptionalstringFrameworkNameoptional*string #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 (_).