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
3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 | |