创建配置文件 - Amazon Glue
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

创建配置文件

蓝图配置文件是必需的文件,用于定义生成工作流的脚本入口点以及蓝图接受的参数。文件必须命名为 blueprint.cfg

下面是示例配置文件。

{ "layoutGenerator": "DemoBlueprintProject.Layout.generate_layout", "parameterSpec" : { "WorkflowName" : { "type": "String", "collection": false }, "WorkerType" : { "type": "String", "collection": false, "allowedValues": ["G1.X", "G2.X"], "defaultValue": "G1.X" }, "Dpu" : { "type" : "Integer", "allowedValues" : [2, 4, 6], "defaultValue" : 2 }, "DynamoDBTableName": { "type": "String", "collection" : false }, "ScriptLocation" : { "type": "String", "collection": false } } }

layoutGenerator 属性指定生成布局的脚本中函数的完全限定名称。

parameterSpec 属性指定此蓝图接受的参数。有关更多信息,请参阅 指定蓝图参数

重要

配置文件必须包含工作流名称作为蓝图参数,或者必须在布局脚本中生成唯一的工作流名称。