Returns existing metadata for an Amplify app.
Parameters:
-
app_id
(str)
–
The unique ID of the Amplify app.
-
environment_name
(str)
–
The name of the backend environment that is part of the Amplify app.
Raises:
Source code in docs_src/capo_amplifyuibuilder/_services/amplify_ui_builder.py
| def get_metadata(
self,
app_id: str,
environment_name: str,
*,
config_overrides: Optional[AmplifyUIBuilderClientConfig] = None,
) -> "capo_amplifyuibuilder.types.get_metadata_response.GetMetadataResponse":
"""<p>Returns existing metadata for an Amplify app.</p>
Args:
app_id: <p>The unique ID of the Amplify app.</p>
environment_name: <p>The name of the backend environment that is part of the Amplify app.</p>
Raises:
capo_amplifyuibuilder.errors.invalid_parameter_exception.InvalidParameterException: <p>An invalid or out-of-range value was supplied for the input parameter.</p>
capo_amplifyuibuilder.errors.unauthorized_exception.UnauthorizedException: <p>You don't have permission to perform this operation.</p>
capo_amplifyuibuilder.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_amplifyuibuilder.types.get_metadata_request.GetMetadataRequest]",
) -> OperationResponse[
"capo_amplifyuibuilder.types.get_metadata_response.GetMetadataResponse"
]:
import capo_amplifyuibuilder._operations.amplify_ui_builder.get_metadata
output, http_response = (
capo_amplifyuibuilder._operations.amplify_ui_builder.get_metadata.get_metadata(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetMetadata")
)
input_: capo_amplifyuibuilder.types.get_metadata_request.GetMetadataRequest = {
"app_id": app_id,
"environment_name": environment_name,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|