class RubyAemAws::Component::AuthorPrimary
Interface to the AWS instance running the Author-Primary component of a full-set AEM stack.
Constants
- EC2_COMPONENT
- EC2_NAME
Attributes
cloud_watch_client[R]
cloud_watch_log_client[R]
descriptor[R]
ec2_resource[R]
Public Class Methods
new(stack_prefix, params)
click to toggle source
@param stack_prefix AWS tag: StackPrefix @param params Array of AWS Clients and Resource connections:
-
CloudWatchClient: AWS Cloudwatch Client.
-
CloudWatchLogsClient: AWS Cloudwatch Logs Client.
-
Ec2Resource: AWS EC2 Resource connection.
@return new RubyAemAws::FullSet::AuthorPrimary
# File lib/ruby_aem_aws/component/author_primary.rb, line 41 def initialize(stack_prefix, params) @descriptor = ComponentDescriptor.new(stack_prefix, EC2Descriptor.new(EC2_COMPONENT, EC2_NAME)) @cloud_watch_client = params[:CloudWatchClient] @cloud_watch_log_client = params[:CloudWatchLogsClient] @ec2_resource = params[:Ec2Resource] end
Public Instance Methods
terminate()
click to toggle source
@return Aws::EC2::Instance
# File lib/ruby_aem_aws/component/author_primary.rb, line 50 def terminate instance = get_instance instance.terminate instance.wait_until_terminated end