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/service_catalog.py
| def get_aws_organizations_access_status(
self, *, config_overrides: Optional[ServiceCatalogClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_service_catalog.types.get_aws_organizations_access_status_input.GetAWSOrganizationsAccessStatusInput]",
) -> OperationResponse[
"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 = (
capo_service_catalog._operations.aws242_service_catalog_service.get_aws_organizations_access_status.get_aws_organizations_access_status(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|