create_compliance_inquiry
async
¶
create_compliance_inquiry(
name: InquiryName,
inquiry_content: InquiryContent,
*,
config_overrides: Optional[AsyncArtifactClientConfig] = None,
client_token: Optional[IdempotentClientToken] = None,
support_mode: Optional[InquirySupportMode] = None,
tags: Optional[TagsMap] = None,
) -> CreateComplianceInquiryResponse
Create a new compliance inquiry.
Parameters:
-
name(InquiryName) –Title of the inquiry.
-
inquiry_content(InquiryContent) –Content for creating a compliance inquiry - either a single query or file content.
-
client_token(Optional[IdempotentClientToken], default:None) –Idempotency token for the request.
-
support_mode(Optional[InquirySupportMode], default:None) –Support mode for inquiry processing. Only supported for file upload mode. Defaults to AI_ONLY if not specified.
-
tags(Optional[TagsMap], default:None) –Tags to associate with the compliance inquiry resource.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Request to create/modify content would result in a conflict.
-
InternalServerException–An unknown server exception has occurred.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–Request fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke CreateComplianceInquiry operation Creates a compliance inquiry with a single text query.
>>> await client.create_compliance_inquiry(name='My Compliance Inquiry', inquiry_content={'query': 'Is my workload compliant with SOC 2?'}, client_token='unique-client-token-1234', support_mode='AI_ONLY')
Source code in docs_src/capo_artifact/_services/async_artifact.py
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | |