CfnSecurityControlProps Struct
Properties for defining a CfnSecurityControl.
| 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_securityhub as securityhub } from 'aws-cdk-lib';
const cfnSecurityControlProps: securityhub.CfnSecurityControlProps = {
parameters: {
parametersKey: {
valueType: 'valueType',
// the properties below are optional
value: {
boolean: false,
double: 123,
enum: 'enum',
enumList: ['enumList'],
integer: 123,
integerList: [123],
string: 'string',
stringList: ['stringList'],
},
},
},
// the properties below are optional
lastUpdateReason: 'lastUpdateReason',
securityControlArn: 'securityControlArn',
securityControlId: 'securityControlId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityhub as securityhub
cfn_security_control_props = securityhub.CfnSecurityControlProps(
parameters={
"parameters_key": securityhub.CfnSecurityControl.ParameterConfigurationProperty(
value_type="valueType",
# the properties below are optional
value=securityhub.CfnSecurityControl.ParameterValueProperty(
boolean=False,
double=123,
enum="enum",
enum_list=["enumList"],
integer=123,
integer_list=[123],
string="string",
string_list=["stringList"]
)
)
},
# the properties below are optional
last_update_reason="lastUpdateReason",
security_control_arn="securityControlArn",
security_control_id="securityControlId"
)
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.securityhub.*;
CfnSecurityControlProps cfnSecurityControlProps = CfnSecurityControlProps.builder()
.parameters(Map.of(
"parametersKey", ParameterConfigurationProperty.builder()
.valueType("valueType")
// the properties below are optional
.value(ParameterValueProperty.builder()
.boolean(false)
.double(123)
.enum("enum")
.enumList(List.of("enumList"))
.integer(123)
.integerList(List.of(123))
.string("string")
.stringList(List.of("stringList"))
.build())
.build()))
// the properties below are optional
.lastUpdateReason("lastUpdateReason")
.securityControlArn("securityControlArn")
.securityControlId("securityControlId")
.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.SecurityHub;
var cfnSecurityControlProps = new CfnSecurityControlProps {
Parameters = new Dictionary<string, object> {
{ "parametersKey", new ParameterConfigurationProperty {
ValueType = "valueType",
// the properties below are optional
Value = new ParameterValueProperty {
Boolean = false,
Double = 123,
Enum = "enum",
EnumList = new [] { "enumList" },
Integer = 123,
IntegerList = new [] { 123 },
String = "string",
StringList = new [] { "stringList" }
}
} }
},
// the properties below are optional
LastUpdateReason = "lastUpdateReason",
SecurityControlArn = "securityControlArn",
SecurityControlId = "securityControlId"
};
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"
cfnSecurityControlProps := &CfnSecurityControlProps{
Parameters: map[string]interface{}{
"parametersKey": &ParameterConfigurationProperty{
"valueType": jsii.String("valueType"),
// the properties below are optional
"value": &ParameterValueProperty{
"boolean": jsii.Boolean(false),
"double": jsii.Number(123),
"enum": jsii.String("enum"),
"enumList": []*string{
jsii.String("enumList"),
},
"integer": jsii.Number(123),
"integerList": []interface{}{
jsii.Number(123),
},
"string": jsii.String("string"),
"stringList": []*string{
jsii.String("stringList"),
},
},
},
},
// the properties below are optional
LastUpdateReason: jsii.String("lastUpdateReason"),
SecurityControlArn: jsii.String("securityControlArn"),
SecurityControlId: jsii.String("securityControlId"),
}
Properties
lastUpdateReasonoptionalstringlast_update_reasonoptionalstrlastUpdateReasonoptionalStringLastUpdateReasonoptionalstringLastUpdateReasonoptional*string #The most recent reason for updating the customizable properties of a security control.
notes
This differs from the UpdateReason field of the BatchUpdateStandardsControlAssociations API, which tracks the reason for updating the enablement status of a control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
parametersIResolvable | { [key: string]: IResolvable | CfnSecurityControl.parameterstyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ParameterConfigurationProperty]]]parametersIResolvableParametersIResolvableParametersinterface{} required #An object that identifies the name of a control parameter, its current value, and whether it has been customized.
securityControlArnoptionalstringsecurity_control_arnoptionalstrsecurityControlArnoptionalStringSecurityControlArnoptionalstringSecurityControlArnoptional*string #The Amazon Resource Name (ARN) for a security control across standards, such as `arn:aws:securityhub:eu-central-1:123456789012:security-control/S3.1` . This parameter doesn't mention a specific standard.
securityControlIdoptionalstringsecurity_control_idoptionalstrsecurityControlIdoptionalStringSecurityControlIdoptionalstringSecurityControlIdoptional*string #The unique identifier of a security control across standards.
Values for this field typically consist of an AWS service name and a number, such as APIGateway.3.