Updates the sensitivity scoring settings for an S3 bucket.
Parameters:
-
resource_arn
(Optional[__string], default:
None
)
–
The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
-
suppress_data_identifiers
(Optional[__listOfSuppressDataIdentifier], default:
None
)
–
An array of objects, one for each custom data identifier or managed data identifier that detected a type of sensitive data to exclude from the bucket's score. To include all sensitive data types in the score, don't specify any values for this array.
Raises:
-
AccessDeniedException
–
Provides information about an error that occurred due to insufficient access to a specified resource.
-
InternalServerException
–
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException
–
Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException
–
Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException
–
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException
–
Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/macie2.py
| def update_resource_profile_detections(
self,
*,
config_overrides: Optional[Macie2ClientConfig] = None,
resource_arn: Optional["capo_macie2.types.__string.__string"] = None,
suppress_data_identifiers: Optional[
"capo_macie2.types.__list_of_suppress_data_identifier.__listOfSuppressDataIdentifier"
] = None,
) -> "capo_macie2.types.update_resource_profile_detections_response.UpdateResourceProfileDetectionsResponse":
"""<p>Updates the sensitivity scoring settings for an S3 bucket.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.</p>
suppress_data_identifiers: <p>An array of objects, one for each custom data identifier or managed data identifier that detected a type of sensitive data to exclude from the bucket's score. To include all sensitive data types in the score, don't specify any values for this array.</p>
Raises:
capo_macie2.errors.access_denied_exception.AccessDeniedException: <p>Provides information about an error that occurred due to insufficient access to a specified resource.</p>
capo_macie2.errors.internal_server_exception.InternalServerException: <p>Provides information about an error that occurred due to an unknown internal server error, exception, or failure.</p>
capo_macie2.errors.resource_not_found_exception.ResourceNotFoundException: <p>Provides information about an error that occurred because a specified resource wasn't found.</p>
capo_macie2.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Provides information about an error that occurred due to one or more service quotas for an account.</p>
capo_macie2.errors.throttling_exception.ThrottlingException: <p>Provides information about an error that occurred because too many requests were sent during a certain amount of time.</p>
capo_macie2.errors.validation_exception.ValidationException: <p>Provides information about an error that occurred due to a syntax error in a request.</p>
capo_macie2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_macie2.types.update_resource_profile_detections_request.UpdateResourceProfileDetectionsRequest]",
) -> OperationResponse[
"capo_macie2.types.update_resource_profile_detections_response.UpdateResourceProfileDetectionsResponse"
]:
import capo_macie2._operations.macie2.update_resource_profile_detections
output, http_response = (
capo_macie2._operations.macie2.update_resource_profile_detections.update_resource_profile_detections(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateResourceProfileDetections")
)
input_: capo_macie2.types.update_resource_profile_detections_request.UpdateResourceProfileDetectionsRequest = {}
if resource_arn is not None:
input_["resource_arn"] = resource_arn
if suppress_data_identifiers is not None:
input_["suppress_data_identifiers"] = suppress_data_identifiers
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|