# CfnFrameworkProps

Properties for defining a `CfnFramework`.

Used as props by: [CfnFramework](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnFramework.html)

- Source: Generated at build time
- Type last changed: v2.131.0 · 1 Mar 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `frameworkControls`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFramework.FrameworkControlProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnFramework.FrameworkControlProperty.html)[] (required) — Contains detailed information about all of the controls of a framework.

  Each framework must contain at least one control.

- `frameworkDescription`: string — An optional description of the framework with a maximum 1,024 characters.

- `frameworkName`: 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 (_).

- `frameworkTags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags to assign to your framework.
