register_on_premises_instance
async
¶
register_on_premises_instance(
instance_name: InstanceName,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = 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/async_code_deploy.py
2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 | |