Smaws_Client_CodeDeploy.RegisterOnPremisesInstanceRegisters an on-premises instance.
Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `IamArnRequiredException of Types.iam_arn_required_exception
| `IamSessionArnAlreadyRegisteredException of
Types.iam_session_arn_already_registered_exception
| `IamUserArnAlreadyRegisteredException of
Types.iam_user_arn_already_registered_exception
| `IamUserArnRequiredException of Types.iam_user_arn_required_exception
| `InstanceNameAlreadyRegisteredException of
Types.instance_name_already_registered_exception
| `InstanceNameRequiredException of Types.instance_name_required_exception
| `InvalidIamSessionArnException of Types.invalid_iam_session_arn_exception
| `InvalidIamUserArnException of Types.invalid_iam_user_arn_exception
| `InvalidInstanceNameException of Types.invalid_instance_name_exception
| `MultipleIamArnsProvidedException of
Types.multiple_iam_arns_provided_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.register_on_premises_instance_input ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `IamArnRequiredException of Types.iam_arn_required_exception
| `IamSessionArnAlreadyRegisteredException of
Types.iam_session_arn_already_registered_exception
| `IamUserArnAlreadyRegisteredException of
Types.iam_user_arn_already_registered_exception
| `IamUserArnRequiredException of Types.iam_user_arn_required_exception
| `InstanceNameAlreadyRegisteredException of
Types.instance_name_already_registered_exception
| `InstanceNameRequiredException of Types.instance_name_required_exception
| `InvalidIamSessionArnException of Types.invalid_iam_session_arn_exception
| `InvalidIamUserArnException of Types.invalid_iam_user_arn_exception
| `InvalidInstanceNameException of Types.invalid_instance_name_exception
| `MultipleIamArnsProvidedException of
Types.multiple_iam_arns_provided_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.register_on_premises_instance_input ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `IamArnRequiredException of Types.iam_arn_required_exception
| `IamSessionArnAlreadyRegisteredException of
Types.iam_session_arn_already_registered_exception
| `IamUserArnAlreadyRegisteredException of
Types.iam_user_arn_already_registered_exception
| `IamUserArnRequiredException of Types.iam_user_arn_required_exception
| `InstanceNameAlreadyRegisteredException of
Types.instance_name_already_registered_exception
| `InstanceNameRequiredException of Types.instance_name_required_exception
| `InvalidIamSessionArnException of Types.invalid_iam_session_arn_exception
| `InvalidIamUserArnException of Types.invalid_iam_user_arn_exception
| `InvalidInstanceNameException of Types.invalid_instance_name_exception
| `MultipleIamArnsProvidedException of
Types.multiple_iam_arns_provided_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result