register_on_premises_instance
¶
register_on_premises_instance(
instance_name: InstanceName,
*,
config_overrides: Optional[CodeDeployClientConfig] = None,
iam_session_arn: Optional[IamSessionArn] = None,
iam_user_arn: Optional[IamUserArn] = None,
) -> None
Registers 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.
Parameters:
-
instance_name(InstanceName) –The name of the on-premises instance to register.
-
iam_session_arn(Optional[IamSessionArn], default:None) –The ARN of the IAM session to associate with the on-premises instance.
-
iam_user_arn(Optional[IamUserArn], default:None) –The ARN of the user to associate with the on-premises instance.
Raises:
-
IamArnRequiredException–No IAM ARN was included in the request. You must use an IAM session ARN or user ARN in the request.
-
IamSessionArnAlreadyRegisteredException–The request included an IAM session ARN that has already been used to register a different instance.
-
IamUserArnAlreadyRegisteredException–The specified user ARN is already registered with an on-premises instance.
-
IamUserArnRequiredException–An user ARN was not specified.
-
InstanceNameAlreadyRegisteredException–The specified on-premises instance name is already registered.
-
InstanceNameRequiredException–An on-premises instance name was not specified.
-
InvalidIamSessionArnException–The IAM session ARN was specified in an invalid format.
-
InvalidIamUserArnException–The user ARN was specified in an invalid format.
-
InvalidInstanceNameException–The on-premises instance name was specified in an invalid format.
-
MultipleIamArnsProvidedException–Both an user ARN and an IAM session ARN were included in the request. Use only one ARN type.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/code_deploy.py
2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 | |