Open danielrbradley opened 6 months ago
Looks like this matches the API but the question is since the values are known should this be just put into the schema.
The one issue I see here is backwards compatibility. Dropping the string could cause issues to people doing. It would be possible to keep string and object and add the properties
to the schema.
RedrivePolicy: |
{
"deadLetterTargetArn" : String,
"maxReceiveCount" : Integer
}
Name of the resource
AWS::SQS::Queue
Resource Name
No response
Issue Description
RedriveAllowPolicy and RedrivePolicy are both defined in the schema with the type:
[ "object", "string" ]
but the documentation accurately describes the available sub-fields for each field.Expected Behavior
RedriveAllowPolicy
should have two fields:redrivePermission
andsourceQueueArns
.RedrivePolicy
should have two fields:deadLetterTargetArn
andmaxReceiveCount
.Observed Behavior
The schema describes them as either a string or an untyped "object".
Test Cases
N/A
Other Details
Related issue in the Pulumi provider: https://github.com/pulumi/pulumi-aws-native/issues/1329