how can I write "daysToExpiration" in sparkleformation

16 views
Skip to first unread message

Saranjeet Singh

unread,
Dec 13, 2017, 9:53:12 PM12/13/17
to SparkleFormation
Hello everyone,

I am new to sparkleformation. I am working on AWS CONFIG rules.
Please help me to write code for  "daysToExpiration". 

Code is looks like below :

"InputParameters": {
          "daysToExpiration": {
            "Fn::If": [
              "daysToExpiration",
              {
                "Ref": "daysToExpiration"
              },
              {
                "Ref": "AWS::NoValue"
              }
            ]
          }
        },

Also need to use in parameters section.
"Parameters": {
			"daysToExpiration": {
			"Type": "String",
			"Default": "14",
			"Description": "Specify the number of days before the rule flags the ACM Certificate as noncompliant."
			}
        }

I tried to use set! with _no_hump but didnt work. 
Any help much appreciated. 

Saranjeet Singh

unread,
Dec 15, 2017, 6:52:04 AM12/15/17
to SparkleFormation
Hello All,
 
This has been fixed by Set!('daysToExpiration'._no_hump, ref!(:days_to_expiration))
Reply all
Reply to author
Forward
0 new messages