Smaws_Client_Inspector.CreateAssessmentTargetCreates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalException of Types.internal_exception
| `InvalidCrossAccountRoleException of
Types.invalid_cross_account_role_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceTemporarilyUnavailableException of
Types.service_temporarily_unavailable_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_assessment_target_request ->
(Types.create_assessment_target_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalException of Types.internal_exception
| `InvalidCrossAccountRoleException of
Types.invalid_cross_account_role_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceTemporarilyUnavailableException of
Types.service_temporarily_unavailable_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_assessment_target_request ->
(Types.create_assessment_target_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalException of Types.internal_exception
| `InvalidCrossAccountRoleException of
Types.invalid_cross_account_role_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceTemporarilyUnavailableException of
Types.service_temporarily_unavailable_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result