list_on_premises_instances
async
¶
list_on_premises_instances(
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
registration_status: Optional[RegistrationStatus] = None,
tag_filters: Optional[TagFilterList] = None,
next_token: Optional[NextToken] = None,
) -> ListOnPremisesInstancesOutput
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
Parameters:
-
registration_status(Optional[RegistrationStatus], default:None) –The registration status of the on-premises instances:
-
Deregistered: Include deregistered on-premises instances in the resulting list. -
Registered: Include registered on-premises instances in the resulting list.
-
-
tag_filters(Optional[TagFilterList], default:None) –The on-premises instance tags that are used to restrict the on-premises instance names returned.
-
next_token(Optional[NextToken], default:None) –An identifier returned from the previous list on-premises instances call. It can be used to return the next set of on-premises instances in the list.
Raises:
-
InvalidNextTokenException–The next token was specified in an invalid format.
-
InvalidRegistrationStatusException–The registration status was specified in an invalid format.
-
InvalidTagFilterException–The tag filter was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 | |