Lists the centralized root access features enabled for your organization. For more information, see Centrally manage root access for member accounts.
Raises:
Examples:
To list the centralized root access features enabled for your organization
he following command lists the centralized root access features enabled for your organization.
>>> client.list_organizations_features()
Source code in docs_src/capo_iam/_services/iam.py
| def list_organizations_features(
self, *, config_overrides: Optional[IAMClientConfig] = None
) -> "capo_iam.types.list_organizations_features_response.ListOrganizationsFeaturesResponse":
"""<p>Lists the centralized root access features enabled for your organization. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management">Centrally manage root access for member accounts</a>.</p>
Raises:
capo_iam.errors.account_not_management_or_delegated_administrator_exception.AccountNotManagementOrDelegatedAdministratorException: <p>The request was rejected because the account making the request is not the management account or delegated administrator account for <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management">centralized root access</a>.</p>
capo_iam.errors.organization_not_found_exception.OrganizationNotFoundException: <p>The request was rejected because no organization is associated with your account.</p>
capo_iam.errors.organization_not_in_all_features_mode_exception.OrganizationNotInAllFeaturesModeException: <p>The request was rejected because your organization does not have All features enabled. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set">Available feature sets</a> in the <i>Organizations User Guide</i>.</p>
capo_iam.errors.service_access_not_enabled_exception.ServiceAccessNotEnabledException: <p>The request was rejected because trusted access is not enabled for IAM in Organizations. For details, see IAM and Organizations in the <i>Organizations User Guide</i>.</p>
capo_iam.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To list the centralized root access features enabled for your organization
he following command lists the centralized root access features enabled for your organization.
>>> client.list_organizations_features()
"""
def _handler(
req: "OperationRequest[capo_iam.types.list_organizations_features_request.ListOrganizationsFeaturesRequest]",
) -> OperationResponse[
"capo_iam.types.list_organizations_features_response.ListOrganizationsFeaturesResponse"
]:
import capo_iam._operations.aws_identity_management_v20100508.list_organizations_features
output, http_response = (
capo_iam._operations.aws_identity_management_v20100508.list_organizations_features.list_organizations_features(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListOrganizationsFeatures")
)
input_: capo_iam.types.list_organizations_features_request.ListOrganizationsFeaturesRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|