AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Registers an on-premises instance.

Namespace: Amazon.CodeDeploy
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract RegisterOnPremisesInstanceResponse RegisterOnPremisesInstance(
         RegisterOnPremisesInstanceRequest request
)

Parameters

request
Type: Amazon.CodeDeploy.Model.RegisterOnPremisesInstanceRequest

Container for the necessary parameters to execute the RegisterOnPremisesInstance service method.

Return Value
Type: Amazon.CodeDeploy.Model.RegisterOnPremisesInstanceResponse
The response from the RegisterOnPremisesInstance service method, as returned by CodeDeploy.

Exceptions

ExceptionCondition
IamUserArnAlreadyRegisteredException The specified IAM user ARN is already registered with an on-premises instance.
IamUserArnRequiredException An IAM user ARN was not specified.
InstanceNameAlreadyRegisteredException The specified on-premises instance name is already registered.
InstanceNameRequiredException An on-premises instance name was not specified.
InvalidIamUserArnException The IAM user ARN was specified in an invalid format.
InvalidInstanceNameException The specified on-premises instance name was specified in an invalid format.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5