Using troposhphere, I am trying to add CustomOriginConfig to my CloudFront distribution.
.....
Origins = [Origin(
Id = Join("", ["cloudfront-", Ref("ParamOriginName")]),
DomainName = Ref("ParamOriginName"),
CustomOriginConfig(
OriginProtocolPolicy = "https-only",
OriginSSLProtocols = ["TLSv1.1"]
)
)],
.....
This fails to build, giving the following error:
CustomOriginConfig(
^
SyntaxError: positional argument follows keyword argument
I have looked at this and this and I think that my syntax is correct.
What do I need to do to fix this?