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
3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 | |