Class OrganizationManager


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

      • DRIFT_LOG_MESSAGE_PATTERN

        private static final String DRIFT_LOG_MESSAGE_PATTERN
        Message pattern for drift case.
        See Also:
        Constant Field Values
      • logger

        private org.slf4j.Logger logger
        Logger.
      • organizations

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

      • OrganizationManager

        public OrganizationManager​(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<OrganizationResponse> sync​(OrganizationRequest 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<OrganizationResponse> delete​(OrganizationRequest input,
                                                                                                        String physicalResourceId)
        Handles organization deletion.
        Parameters:
        input - Resource delete request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Empty response.