private void addAdditionalIdentifiers(
            CfnResource.Builder builder,
            List<Map<String, ShapeId>> addedIdentifiers
    ) {
        if (addedIdentifiers.isEmpty()) {
            return;
        }

        // Make sure we have properties entries for the additional identifiers.
        for (Map<String, ShapeId> addedIdentifier : addedIdentifiers) {
            for (Map.Entry<String, ShapeId> idEntry : addedIdentifier.entrySet()) {
                builder.putPropertyDefinition(idEntry.getKey(),
                        CfnResourceProperty.builder()
                                .mutabilities(SetUtils.of(Mutability.READ))
                                .addShapeId(idEntry.getValue())
                                .build());
            }
            builder.addAdditionalIdentifier(addedIdentifier.keySet());
        }
    }
Gets the definition of the specified CloudFormation resource.

@param resource ShapeID of a resource
@return The resource definition.
smithy-aws-cloudformation-traits/src/main/java/software/amazon/smithy/aws/cloudformation/traits/CfnResourceIndex.java