troposphere
troposphere copied to clipboard
Adding in additional SecurityServicePolicyData sub-class.
Fixes https://github.com/cloudtools/troposphere/issues/1834
Sorry for the delay in responding. I don't see this additional property documented or in the spec files. Can you let me know where you saw this documented? Thanks.
Hi Mark, thanks for getting back to me. All of the data is documented in the linked issue above.
By AWS CloudFormation documentation (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fms-policy.html), the YAML representation of the SecurityServicePolicyData has two child nodes... Type and ManagedServiceData. They are represented in YAML as follows:
PolicyWAFv2:
Type: AWS::FMS::Policy
Properties:
ExcludeResourceTags: false
PolicyName: Policy
RemediationEnabled: false
ResourceType: AWS::ElasticLoadBalancingV2::LoadBalancer
SecurityServicePolicyData:
Type: WAFV2
ManagedServiceData: !Sub '{"type":"WAFV2",
"preProcessRuleGroups":[{
"ruleGroupType":"RuleGroup",
"ruleGroupArn":"${RuleGroup.Arn}",
"overrideAction":{"type":"NONE"}}],
"postProcessRuleGroups":[],
"defaultAction":{"type":"BLOCK"}}'