class CfnPolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.FMS.Mixins.CfnPolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsfms/mixins#CfnPolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.fms.mixins.CfnPolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_fms.mixins.CfnPolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_fms » mixins » CfnPolicyPropsMixin |
Implements
IMixin
Extends
Mixin
An AWS Firewall Manager policy.
A Firewall Manager policy is specific to the individual policy type. If you want to enforce multiple policy types across accounts, you can create multiple policies. You can create more than one policy for each type.
If you add a new account to an organization that you created with AWS Organizations , Firewall Manager automatically applies the policy to the resources in that account that are within scope of the policy.
Policies require some setup to use. For more information, see the sections on prerequisites and getting started under Firewall Manager prerequisites .
Firewall Manager provides the following types of policies:
AWS WAF policy - This policy applies AWS WAF web ACL protections to specified accounts and resources.
Shield Advanced policy - This policy applies Shield Advanced protection to specified accounts and resources.
Security Groups policy - This type of policy gives you control over security groups that are in use throughout your organization in AWS Organizations and lets you enforce a baseline set of rules across your organization.
Network ACL policy - This type of policy gives you control over the network ACLs that are in use throughout your organization in AWS Organizations and lets you enforce a baseline set of first and last network ACL rules across your organization.
Network Firewall policy - This policy applies Network Firewall protection to your organization's VPCs.
DNS Firewall policy - This policy applies Amazon Route 53 Resolver DNS Firewall protections to your organization's VPCs.
Third-party firewall policy - This policy applies third-party firewall protections. Third-party firewalls are available by subscription through the AWS Marketplace console at AWS Marketplace .
Palo Alto Networks Cloud NGFW policy - This policy applies Palo Alto Networks Cloud Next Generation Firewall (NGFW) protections and Palo Alto Networks Cloud NGFW rulestacks to your organization's VPCs.
Fortigate CNF policy - This policy applies Fortigate Cloud Native Firewall (CNF) protections. Fortigate CNF is a cloud-centered solution that blocks Zero-Day threats and secures cloud infrastructures with industry-leading advanced threat prevention, smart web application firewalls (WAF), and API protection.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as fms_mixins } from '@aws-cdk/mixins-preview/aws-fms';
const cfnPolicyPropsMixin = new fms_mixins.CfnPolicyPropsMixin({
deleteAllPolicyResources: false,
excludeMap: {
account: ['account'],
orgunit: ['orgunit'],
},
excludeResourceTags: false,
includeMap: {
account: ['account'],
orgunit: ['orgunit'],
},
policyDescription: 'policyDescription',
policyName: 'policyName',
remediationEnabled: false,
resourcesCleanUp: false,
resourceSetIds: ['resourceSetIds'],
resourceTagLogicalOperator: 'resourceTagLogicalOperator',
resourceTags: [{
key: 'key',
value: 'value',
}],
resourceType: 'resourceType',
resourceTypeList: ['resourceTypeList'],
securityServicePolicyData: {
managedServiceData: 'managedServiceData',
policyOption: {
networkAclCommonPolicy: {
networkAclEntrySet: {
firstEntries: [{
cidrBlock: 'cidrBlock',
egress: false,
icmpTypeCode: {
code: 123,
type: 123,
},
ipv6CidrBlock: 'ipv6CidrBlock',
portRange: {
from: 123,
to: 123,
},
protocol: 'protocol',
ruleAction: 'ruleAction',
}],
forceRemediateForFirstEntries: false,
forceRemediateForLastEntries: false,
lastEntries: [{
cidrBlock: 'cidrBlock',
egress: false,
icmpTypeCode: {
code: 123,
type: 123,
},
ipv6CidrBlock: 'ipv6CidrBlock',
portRange: {
from: 123,
to: 123,
},
protocol: 'protocol',
ruleAction: 'ruleAction',
}],
},
},
networkFirewallPolicy: {
firewallDeploymentModel: 'firewallDeploymentModel',
},
thirdPartyFirewallPolicy: {
firewallDeploymentModel: 'firewallDeploymentModel',
},
},
type: 'type',
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnPolicyPropsMixin(props: CfnPolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::FMS::Policy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript