Class StackSetManager


  • public class StackSetManager
    extends Object
    CloudFormation 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
      • CAPABILITY_CAST

        private static final com.amazonaws.services.cloudformation.model.Capability[] CAPABILITY_CAST
        Cast array.
      • logger

        private org.slf4j.Logger logger
        Logger.
      • cloudFormation

        private com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation
        AWS CloudFormation API client.
      • stackSetHandler

        private pl.wrzasq.commons.aws.cloudformation.StackSetHandler stackSetHandler
        Stack set operations helper.
    • Constructor Detail

      • StackSetManager

        public StackSetManager​(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation,
                               pl.wrzasq.commons.aws.cloudformation.StackSetHandler stackSetHandler)
        Initializes object with given CloudFormation client.
        Parameters:
        cloudFormation - AWS CloudFormation client.
        stackSetHandler - Stack set operations helper.
    • Method Detail

      • deployStackSet

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<StackSetResponse> deployStackSet​(StackSetRequest input,
                                                                                                            String physicalResourceId)
        Handles stack set deployment.
        Parameters:
        input - Resource deployment request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Data about published version.
      • deleteStackSet

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<StackSetResponse> deleteStackSet​(StackSetRequest input,
                                                                                                            String physicalResourceId)
        Handles stack set deletion.
        Parameters:
        input - Resource delete request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Empty response.
      • createStackSet

        private String createStackSet​(StackSetRequest input)
        Creates new stack set.
        Parameters:
        input - Stack set specification.
        Returns:
        Created stack set ID.
      • updateStackSet

        private void updateStackSet​(StackSetRequest input)
        Updates existing stack set.
        Parameters:
        input - Stack set specification.
      • buildSdkParameters

        private static Collection<com.amazonaws.services.cloudformation.model.Parameter> buildSdkParameters​(StackSetRequest input)
        Converts key-value mapping into AWS SDK structure.
        Parameters:
        input - Request data.
        Returns:
        Collection of AWS SDK DTOs.
      • buildSdkTags

        private static Collection<com.amazonaws.services.cloudformation.model.Tag> buildSdkTags​(StackSetRequest input)
        Converts key-value mapping into AWS SDK structure.
        Parameters:
        input - Request data.
        Returns:
        Collection of AWS SDK DTOs.