CloudFormationResourceJson

class aws_cdk.cloud_assembly_schema.CloudFormationResourceJson(*, logical_id, template_path, property_paths=None)

Bases: object

A node in the construct creation stack trace.

Parameters:
  • logical_id (str) – The logical ID of the resource in the CloudFormation template.

  • template_path (str) – The path to the CloudFormation template containing this resource.

  • property_paths (Optional[Sequence[str]]) – Properties within the construct where the violation was detected. Either a single component, in which case it regards a top-level property name, or a JSON path (starting with $.) to indicate a deeper property. Default: - no locations

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

cloud_formation_resource_json = cloud_assembly_schema.CloudFormationResourceJson(
    logical_id="logicalId",
    template_path="templatePath",

    # the properties below are optional
    property_paths=["propertyPaths"]
)

Attributes

logical_id

The logical ID of the resource in the CloudFormation template.

property_paths

Properties within the construct where the violation was detected.

Either a single component, in which case it regards a top-level property name, or a JSON path (starting with $.) to indicate a deeper property.

Default:
  • no locations

template_path

The path to the CloudFormation template containing this resource.