Get the Access Status for Organizations portfolio share feature. This API can only be called by the management account in the organization or by a delegated admin.
Raises:
Source code in docs_src/capo_service_catalog/_services/async_service_catalog.py
| async def get_aws_organizations_access_status(
self, *, config_overrides: Optional[AsyncServiceCatalogClientConfig] = None
) -> "capo_service_catalog.types.get_aws_organizations_access_status_output.GetAWSOrganizationsAccessStatusOutput":
"""<p>Get the Access Status for Organizations portfolio share feature. This API can only be called by the management account in the organization or by a delegated admin.</p>
Raises:
capo_service_catalog.errors.operation_not_supported_exception.OperationNotSupportedException: <p>The operation is not supported.</p>
capo_service_catalog.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_service_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_service_catalog.types.get_aws_organizations_access_status_input.GetAWSOrganizationsAccessStatusInput]",
) -> AsyncOperationResponse[
"capo_service_catalog.types.get_aws_organizations_access_status_output.GetAWSOrganizationsAccessStatusOutput"
]:
import capo_service_catalog._operations.aws242_service_catalog_service.get_aws_organizations_access_status
(
output,
http_response,
) = await capo_service_catalog._operations.aws242_service_catalog_service.get_aws_organizations_access_status.async_get_aws_organizations_access_status(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAWSOrganizationsAccessStatus")
)
input_: capo_service_catalog.types.get_aws_organizations_access_status_input.GetAWSOrganizationsAccessStatusInput = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|