CfnSecurityRequirementPackProps Struct
Properties for defining a CfnSecurityRequirementPack.
| 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_securityagent as securityagent } from 'aws-cdk-lib';
const cfnSecurityRequirementPackProps: securityagent.CfnSecurityRequirementPackProps = {
name: 'name',
// the properties below are optional
description: 'description',
kmsKeyId: 'kmsKeyId',
securityRequirements: [{
description: 'description',
domain: 'domain',
evaluation: 'evaluation',
name: 'name',
// the properties below are optional
remediation: 'remediation',
}],
status: 'status',
tags: [{
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_securityagent as securityagent
cfn_security_requirement_pack_props = securityagent.CfnSecurityRequirementPackProps(
name="name",
# the properties below are optional
description="description",
kms_key_id="kmsKeyId",
security_requirements=[securityagent.CfnSecurityRequirementPack.SecurityRequirementProperty(
description="description",
domain="domain",
evaluation="evaluation",
name="name",
# the properties below are optional
remediation="remediation"
)],
status="status",
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.securityagent.*;
CfnSecurityRequirementPackProps cfnSecurityRequirementPackProps = CfnSecurityRequirementPackProps.builder()
.name("name")
// the properties below are optional
.description("description")
.kmsKeyId("kmsKeyId")
.securityRequirements(List.of(SecurityRequirementProperty.builder()
.description("description")
.domain("domain")
.evaluation("evaluation")
.name("name")
// the properties below are optional
.remediation("remediation")
.build()))
.status("status")
.tags(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.SecurityAgent;
var cfnSecurityRequirementPackProps = new CfnSecurityRequirementPackProps {
Name = "name",
// the properties below are optional
Description = "description",
KmsKeyId = "kmsKeyId",
SecurityRequirements = new [] { new SecurityRequirementProperty {
Description = "description",
Domain = "domain",
Evaluation = "evaluation",
Name = "name",
// the properties below are optional
Remediation = "remediation"
} },
Status = "status",
Tags = 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"
cfnSecurityRequirementPackProps := &CfnSecurityRequirementPackProps{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
KmsKeyId: jsii.String("kmsKeyId"),
SecurityRequirements: []interface{}{
&SecurityRequirementProperty{
Description: jsii.String("description"),
Domain: jsii.String("domain"),
Evaluation: jsii.String("evaluation"),
Name: jsii.String("name"),
// the properties below are optional
Remediation: jsii.String("remediation"),
},
},
Status: jsii.String("status"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Description of the pack.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #KMS key for client-side encryption of pack contents.
Name of the security requirement pack.
securityRequirementsoptionalIResolvable | IResolvable | CfnSecurityRequirementPack.security_requirementsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SecurityRequirementProperty]]]securityRequirementsoptionalIResolvableSecurityRequirementsoptionalIResolvableSecurityRequirementsoptionalinterface{} #Security requirements within this pack.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #Whether the pack is enabled or disabled.