Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.
Raises:
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
| def deactivate_organizations_access(
self, *, config_overrides: Optional[CloudFormationClientConfig] = None
) -> "capo_cloudformation.types.deactivate_organizations_access_output.DeactivateOrganizationsAccessOutput":
"""<p>Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.</p>
Raises:
capo_cloudformation.errors.invalid_operation_exception.InvalidOperationException: <p>The specified operation isn't valid.</p>
capo_cloudformation.errors.operation_not_found_exception.OperationNotFoundException: <p>The specified ID refers to an operation that doesn't exist.</p>
capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudformation.types.deactivate_organizations_access_input.DeactivateOrganizationsAccessInput]",
) -> OperationResponse[
"capo_cloudformation.types.deactivate_organizations_access_output.DeactivateOrganizationsAccessOutput"
]:
import capo_cloudformation._operations.cloud_formation.deactivate_organizations_access
output, http_response = (
capo_cloudformation._operations.cloud_formation.deactivate_organizations_access.deactivate_organizations_access(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeactivateOrganizationsAccess")
)
input_: capo_cloudformation.types.deactivate_organizations_access_input.DeactivateOrganizationsAccessInput = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|