Creates a new introspection. Returns the introspectionId of the new introspection after its creation.
Parameters:
Raises:
-
BadRequestException
–
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
InternalFailureException
–
An internal AppSync error occurred. Try your request again.
-
NotFoundException
–
The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException
–
You aren't authorized to perform this operation.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_appsync/_services/async_app_sync.py
| async def start_data_source_introspection(
self,
*,
config_overrides: Optional[AsyncAppSyncClientConfig] = None,
rds_data_api_config: Optional[
"capo_appsync.types.rds_data_api_config.RdsDataApiConfig"
] = None,
) -> "capo_appsync.types.start_data_source_introspection_response.StartDataSourceIntrospectionResponse":
"""<p>Creates a new introspection. Returns the <code>introspectionId</code> of the new introspection after its creation. </p>
Args:
rds_data_api_config: <p>The <code>rdsDataApiConfig</code> object data.</p>
Raises:
capo_appsync.errors.bad_request_exception.BadRequestException: <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.</p>
capo_appsync.errors.internal_failure_exception.InternalFailureException: <p>An internal AppSync error occurred. Try your request again.</p>
capo_appsync.errors.not_found_exception.NotFoundException: <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
capo_appsync.errors.unauthorized_exception.UnauthorizedException: <p>You aren't authorized to perform this operation.</p>
capo_appsync.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appsync.types.start_data_source_introspection_request.StartDataSourceIntrospectionRequest]",
) -> AsyncOperationResponse[
"capo_appsync.types.start_data_source_introspection_response.StartDataSourceIntrospectionResponse"
]:
import capo_appsync._operations.aws_deepdish_control_plane_service.start_data_source_introspection
(
output,
http_response,
) = await capo_appsync._operations.aws_deepdish_control_plane_service.start_data_source_introspection.async_start_data_source_introspection(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartDataSourceIntrospection")
)
input_: capo_appsync.types.start_data_source_introspection_request.StartDataSourceIntrospectionRequest = {}
if rds_data_api_config is not None:
input_["rds_data_api_config"] = rds_data_api_config
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|