create_comment
async
¶
create_comment(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
task_id: Optional[TaskId] = None,
content: Optional[CommentContent] = None,
) -> CreateCommentOutput
Adds a new comment to a specific control.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_id(ControlID) –The control identifier. Optional. If omitted, the operation applies to the full framework.
-
task_id(Optional[TaskId], default:None) –The identifier of the task to scope the comment to. Optional.
-
content(Optional[CommentContent], default:None) –The free-text content of the comment.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
ConflictException–A conflict occurred (for example, resource already exists).
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Add a comment to a control Adds a reviewer note to a control in the payments-prod project's PCI DSS assessment.
>>> await client.create_comment(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', framework='AWS:PCI-DSS', framework_version='4', control_id='8.2.1', task_id='a1b2c3d4-5678-90ab-cdef-EXAMPLE66666', content='Attach the Q1 cardholder data environment scan as evidence for this control.')
Source code in docs_src/capo_assurance/_services/async_assurance.py
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 | |