Updates an association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
Parameters:
-
extension_association_id
(Id)
–
The system-generated ID for the association.
-
parameters
(Optional[ParameterValueMap], default:
None
)
–
The parameter names and values defined in the extension.
Raises:
Source code in docs_src/capo_appconfig/_services/app_config.py
| def update_extension_association(
self,
extension_association_id: "capo_appconfig.types.id.Id",
*,
config_overrides: Optional[AppConfigClientConfig] = None,
parameters: Optional[
"capo_appconfig.types.parameter_value_map.ParameterValueMap"
] = None,
) -> "capo_appconfig.types.extension_association.ExtensionAssociation":
"""<p>Updates an association. For more information about extensions and associations, see <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/working-with-appconfig-extensions.html">Extending workflows</a> in the <i>AppConfig User Guide</i>.</p>
Args:
extension_association_id: <p>The system-generated ID for the association.</p>
parameters: <p>The parameter names and values defined in the extension.</p>
Raises:
capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_appconfig.types.update_extension_association_request.UpdateExtensionAssociationRequest]",
) -> OperationResponse[
"capo_appconfig.types.extension_association.ExtensionAssociation"
]:
import capo_appconfig._operations.amazon_app_config.update_extension_association
output, http_response = (
capo_appconfig._operations.amazon_app_config.update_extension_association.update_extension_association(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateExtensionAssociation")
)
input_: capo_appconfig.types.update_extension_association_request.UpdateExtensionAssociationRequest = {
"extension_association_id": extension_association_id
}
if parameters is not None:
input_["parameters"] = parameters
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|