Complete the code to define a parameter in AWS CloudFormation template.
"Parameters": { "InstanceType": { "Type": "[1]" } }
The Type of a parameter defines the kind of value it accepts. String is the most common type for instance types.
Complete the code to set a default value for a parameter in AWS CloudFormation.
"Parameters": { "InstanceType": { "Type": "String", "Default": "[1]" } }
The Default value sets the parameter's value if no other value is provided. t2.micro is a common default instance type.
Fix the error in the parameter definition to allow only specific instance types.
"Parameters": { "InstanceType": { "Type": "String", "AllowedValues": [1] } }
The AllowedValues property must be a JSON array of strings listing valid values.
Fill both blanks to define a parameter with a description and a constraint on allowed values.
"Parameters": { "EnvironmentType": { "Type": "String", "Description": "[1]", "AllowedValues": [2] } }
The Description explains the parameter's purpose. AllowedValues restricts the input to listed options.
Fill all three blanks to define a parameter with a default, description, and allowed values.
"Parameters": { "KeyName": { "Type": "String", "Description": "[1]", "Default": "[2]", "AllowedValues": [3] } }
The Description explains the parameter. Default sets a fallback value. AllowedValues restricts to valid key pair names.