HttpProxy
HttpProxy 使您能够配置自己的代理并让任务运行程序通过此代理访问 AWS Data Pipeline 服务。您不需要使用此信息配置正在运行的任务运行程序。
TaskRunner 中的 HttpProxy 示例
以下管道定义显示一个 HttpProxy
对象:
{ "objects": [ { "schedule": { "ref": "Once" }, "pipelineLogUri": "s3://
myDPLogUri/path
", "name": "Default", "id": "Default" }, { "name": "test_proxy", "hostname": "hostname
", "port": "port
", "username": "username
", "*password": "password
", "windowsDomain": "windowsDomain
", "type": "HttpProxy", "id": "test_proxy", }, { "name": "ShellCommand", "id": "ShellCommand", "runsOn": { "ref": "Resource" }, "type": "ShellCommandActivity", "command": "echo 'hello world' " }, { "period": "1 day", "startDateTime": "2013-03-09T00:00:00", "name": "Once", "id": "Once", "endDateTime": "2013-03-10T00:00:00", "type": "Schedule" }, { "role": "dataPipelineRole", "httpProxy": { "ref": "test_proxy" }, "actionOnResourceFailure": "retrynone", "maximumRetries": "0", "type": "Ec2Resource", "terminateAfter": "10 minutes", "resourceRole": "resourceRole", "name": "Resource", "actionOnTaskFailure": "terminate", "securityGroups": "securityGroups", "keyPair": "keyPair", "id": "Resource", "region": "us-east-1" } ], "parameters": [] }
语法
必填字段 | 描述 | 槽类型 |
---|---|---|
hostname | 客户端将用来连接到 Amazon Web Services 的代理的主机。 | String |
port | 客户端将用来连接到 Amazon Web Services 的代理主机的端口。 | String |
可选字段 | 描述 | 槽类型 |
---|---|---|
parent | 槽将继承自的当前对象的父级。 | 引用对象,例如,"parent":{"ref":"myBaseObjectId"} |
*password | 代理的密码。 | String |
s3NoProxy | 在连接到 Amazon S3 时禁用 HTTP 代理 | 布尔值 |
username | 代理的用户名。 | String |
windowsDomain | NTLM 代理的 Windows 域名。 | String |
windowsWorkgroup | NTLM 代理的 Windows 工作组名。 | String |
运行时字段 | 描述 | 槽类型 |
---|---|---|
@version | 用来创建对象的管道版本。 | String |
系统字段 | 描述 | 槽类型 |
---|---|---|
@error | 用于描述格式不正确的对象的错误消息。 | String |
@pipelineId | 该对象所属的管道的 ID。 | String |
@sphere | 对象的范围指明对象在生命周期中的位置:组件对象产生实例对象,后者执行尝试对象。 | String |