ViolatingConstructJson

class aws_cdk.cloud_assembly_schema.ViolatingConstructJson(*, construct_path, cloud_formation_resource=None, construct_fqn=None, library_version=None, stack_traces=None)

Bases: object

A construct that violated a policy rule.

Parameters:
  • construct_path (str) – The construct path as defined in the application. Default: - no construct path

  • cloud_formation_resource (Union[CloudFormationResourceJson, Dict[str, Any], None]) – If this construct violation regards a CloudFormation resource, a reference to the resource details.

  • construct_fqn (Optional[str]) – The fully qualified name of the construct class (includes the library name). Default: - no construct info

  • library_version (Optional[str]) – The version of the library that contains this construct. The library name is the first component of the construct FQN. Default: - no version info

  • stack_traces (Optional[Sequence[str]]) – Stack traces associated with this violation. This can be all the stack traces where a violating property got its value, or just the construct creation stack trace. Every element of the array is a stack trace, where each stack trace is a \n-delimited string. Default: - No stack traces

Attributes

cloud_formation_resource

If this construct violation regards a CloudFormation resource, a reference to the resource details.

construct_fqn

The fully qualified name of the construct class (includes the library name).

Default:
  • no construct info

construct_path

The construct path as defined in the application.

Default:
  • no construct path

library_version

The version of the library that contains this construct.

The library name is the first component of the construct FQN.

Default:
  • no version info

stack_traces

Stack traces associated with this violation.

This can be all the stack traces where a violating property got its value, or just the construct creation stack trace.

Every element of the array is a stack trace, where each stack trace is a \n-delimited string.

Default:
  • No stack traces