Organizations / Client / enable_aws_service_access
enable_aws_service_access#
- Organizations.Client.enable_aws_service_access(**kwargs)#
Enables the integration of an Amazon Web Services service (the service that is specified by
ServicePrincipal
) with Organizations. When you enable integration, you allow the specified service to create a service-linked role in all the accounts in your organization. This allows the service to perform operations on your behalf in your organization and its accounts.Warning
We recommend that you enable integration between Organizations and the specified Amazon Web Services service by using the console or commands that are provided by the specified service. Doing so ensures that the service is aware that it can create the resources that are required for the integration. How the service creates those resources in the organization’s accounts depends on that service. For more information, see the documentation for the other Amazon Web Services service.
For more information about enabling services to integrate with Organizations, see Integrating Organizations with Other Amazon Web Services Services in the Organizations User Guide.
You can only call this operation from the organization’s management account and only if the organization has enabled all features.
See also: AWS API Documentation
Request Syntax
response = client.enable_aws_service_access( ServicePrincipal='string' )
- Parameters:
ServicePrincipal (string) –
[REQUIRED]
The service principal name of the Amazon Web Services service for which you want to enable integration with your organization. This is typically in the form of a URL, such as
service-abbreviation.amazonaws.com
.- Returns:
None
Exceptions
Organizations.Client.exceptions.AccessDeniedException
Organizations.Client.exceptions.AWSOrganizationsNotInUseException
Organizations.Client.exceptions.ConcurrentModificationException
Organizations.Client.exceptions.ConstraintViolationException
Organizations.Client.exceptions.InvalidInputException
Organizations.Client.exceptions.ServiceException
Organizations.Client.exceptions.TooManyRequestsException
Organizations.Client.exceptions.UnsupportedAPIEndpointException