Modifies the definition of an existing DataBrew project.
Parameters:
-
role_arn
(Arn)
–
The Amazon Resource Name (ARN) of the IAM role to be assumed for this request.
-
name
(ProjectName)
–
The name of the project to be updated.
Raises:
Source code in docs_src/capo_databrew/_services/async_data_brew.py
| async def update_project(
self,
role_arn: "capo_databrew.types.arn.Arn",
name: "capo_databrew.types.project_name.ProjectName",
*,
config_overrides: Optional[AsyncDataBrewClientConfig] = None,
sample: Optional["capo_databrew.types.sample.Sample"] = None,
) -> "capo_databrew.types.update_project_response.UpdateProjectResponse":
"""<p>Modifies the definition of an existing DataBrew project.</p>
Args:
role_arn: <p>The Amazon Resource Name (ARN) of the IAM role to be assumed for this request.</p>
name: <p>The name of the project to be updated.</p>
Raises:
capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_databrew.types.update_project_request.UpdateProjectRequest]",
) -> AsyncOperationResponse[
"capo_databrew.types.update_project_response.UpdateProjectResponse"
]:
import capo_databrew._operations.aws_glue_data_brew.update_project
(
output,
http_response,
) = await capo_databrew._operations.aws_glue_data_brew.update_project.async_update_project(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateProject")
)
input_: capo_databrew.types.update_project_request.UpdateProjectRequest = {
"role_arn": role_arn,
"name": name,
}
if sample is not None:
input_["sample"] = sample
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|