AWS 文档 SDK 示例
将 DeregisterOnPremisesInstance 与 CLI 配合使用
以下代码示例演示如何使用 DeregisterOnPremisesInstance。
- CLI
-
- AWS CLI
-
注销本地实例
以下
deregister-on-premises-instance示例使用 AWS CodeDeploy 注销本地实例,但不会删除与该实例关联的 IAM 用户,也不会在 AWS CodeDeploy 中解除本地实例标签与实例的关联。它还不会从实例中卸载 AWS CodeDeploy 代理程序,也不会从实例中移除本地配置文件。aws deploy deregister-on-premises-instance --instance-nameAssetTag12010298EX此命令不生成任何输出。
-
有关 API 详细信息,请参阅《AWS CLI 命令参考》中的 DeregisterOnPremisesInstance
。
-
- PowerShell
-
- Tools for PowerShell V4
-
示例 1:此示例取消注册具有指定名称的本地实例。
Unregister-CDOnPremiseInstance -InstanceName AssetTag12010298EX-
有关 API 详细信息,请参阅《AWS Tools for PowerShell Cmdlet Reference (V4)》中的 DeregisterOnPremisesInstance。
-
- Tools for PowerShell V5
-
示例 1:此示例取消注册具有指定名称的本地实例。
Unregister-CDOnPremiseInstance -InstanceName AssetTag12010298EX-
有关 API 详细信息,请参阅《AWS Tools for PowerShell Cmdlet Reference (V5)》中的 DeregisterOnPremisesInstance。
-
DeleteDeploymentGroup
GetApplication