update_organization_configuration(
graph_arn: GraphArn,
*,
config_overrides: Optional[AsyncDetectiveClientConfig] = None,
auto_enable: Optional[Boolean] = None,
) -> None
Updates the configuration for the Organizations integration in the current Region. Can only be called by the Detective administrator account for the organization.
Parameters:
-
graph_arn
(GraphArn)
–
The ARN of the organization behavior graph.
-
auto_enable
(Optional[Boolean], default:
None
)
–
Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
Raises:
Source code in docs_src/capo_detective/_services/async_detective.py
| async def update_organization_configuration(
self,
graph_arn: "capo_detective.types.graph_arn.GraphArn",
*,
config_overrides: Optional[AsyncDetectiveClientConfig] = None,
auto_enable: Optional["capo_detective.types.boolean.Boolean"] = None,
) -> None:
"""<p>Updates the configuration for the Organizations integration in the current Region. Can only be called by the Detective administrator account for the organization.</p>
Args:
graph_arn: <p>The ARN of the organization behavior graph.</p>
auto_enable: <p>Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.</p>
Raises:
capo_detective.errors.access_denied_exception.AccessDeniedException: <p>The request issuer does not have permission to access this resource or perform this operation.</p>
capo_detective.errors.internal_server_exception.InternalServerException: <p>The request was valid but failed because of a problem with the service.</p>
capo_detective.errors.too_many_requests_exception.TooManyRequestsException: <p>The request cannot be completed because too many other requests are occurring at the same time.</p>
capo_detective.errors.validation_exception.ValidationException: <p>The request parameters are invalid.</p>
capo_detective.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_detective.types.update_organization_configuration_request.UpdateOrganizationConfigurationRequest]",
) -> AsyncOperationResponse[None]:
import capo_detective._operations.amazon_detective.update_organization_configuration
(
output,
http_response,
) = await capo_detective._operations.amazon_detective.update_organization_configuration.async_update_organization_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateOrganizationConfiguration")
)
input_: capo_detective.types.update_organization_configuration_request.UpdateOrganizationConfigurationRequest = {
"graph_arn": graph_arn
}
if auto_enable is not None:
input_["auto_enable"] = auto_enable
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|