@Override
    public void before(Context context, Builder resourceSchema) {
        if (context.getConfig().getDisableDeprecatedPropertyGeneration()) {
            return;
        }

        // If any of the pseudo-resource structure's members are deprecated,
        // then deprecate the CFN property as well.
        Model model = context.getModel();
        StructureShape resourceStructure = context.getResourceStructure();
        for (MemberShape member : resourceStructure.members()) {
            if (member.getMemberTrait(model, DeprecatedTrait.class).isPresent()) {
                resourceSchema.addDeprecatedProperty(context.getPropertyPointer(member.getMemberName()));
            }
        }
    }
Generates the resource's deprecated properties list based on the
deprecated operation members that are part of the derived resource.

@see <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-deprecatedproperties">deprecatedProperties Docs</a>
smithy-aws-cloudformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/mappers/DeprecatedMapper.java