Class OrganizationUnitManager


  • public class OrganizationUnitManager
    extends Object
    Organizations API implementation.
    • Field Detail

      • logger

        private org.slf4j.Logger logger
        Logger.
      • organizations

        private com.amazonaws.services.organizations.AWSOrganizations organizations
        AWS Organizations API client.
    • Constructor Detail

      • OrganizationUnitManager

        public OrganizationUnitManager​(com.amazonaws.services.organizations.AWSOrganizations organizations)
        Initializes object with given Organizations client.
        Parameters:
        organizations - AWS Organizations client.
    • Method Detail

      • sync

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<com.amazonaws.services.organizations.model.OrganizationalUnit> sync​(OrganizationUnitRequest input,
                                                                                                                                               String physicalResourceId)
        Handles organization creation.
        Parameters:
        input - Resource creation request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Data about published version.
      • delete

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<com.amazonaws.services.organizations.model.OrganizationalUnit> delete​(OrganizationUnitRequest input,
                                                                                                                                                 String physicalResourceId)
        Handles organization unit deletion.
        Parameters:
        input - Resource delete request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Empty response.