Skip to content

Properties with anyOf indicator #98

@ewbankkit

Description

@ewbankkit

CloudFormation resource schema defined properties may include the anyOf indicator, for example AWS::DataBrew::Recipe:

    "Action": {
      "type": "object",
      "properties": {
        "Operation": {
          "description": "Step action operation",
          "type": "string"
        },
        "Parameters": {
          "anyOf": [
            {
              "$ref": "#/definitions/RecipeParameters"
            },
            {
              "$ref": "#/definitions/ParameterMap"
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": ["Operation"]
    },

Currently our CloudFormation resource schema SDK ignores the anyOf indicator and when we come to generate a Terraform resource schema for the property it has no type.

It is not currently clear how to handle such properties.

Relates:

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-generationRelates to the conversion of CloudFormation schema to Terraform schema at buildtime.enhancementthinkingupstream-awsUnable to proceed due to missing or broken functionality from an AWS dependency.upstream-terraform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions