sagemaker.core.tools.codegen

Contents

sagemaker.core.tools.codegen#

Generates the code for the service model.

Functions

generate_code([shapes_code_gen, ...])

Generates the code for the given code generators.

sagemaker.core.tools.codegen.generate_code(shapes_code_gen: ShapesCodeGen | None = None, resources_code_gen: ShapesCodeGen | None = None) None[source]#

Generates the code for the given code generators. If any code generator is not provided when calling this function, the function will initiate the generator.

Note ordering is important, generate the utils and lower level classes first then generate the higher level classes.

Parameters:
  • shapes_code_gen (ShapesCodeGen) – The code generator for shape classes.

  • resources_code_gen (ResourcesCodeGen) – The code generator for resource classes.

Returns:

None