Module: Eaglenube::Synchronizer::AWS::AcmCertificate::AcmSyncMethods

Includes:
ApiWrapper::AWS::AcmCertificate, CloudObjectMapper::AWS
Defined in:
lib/eaglenube/synchronizer/aws/acm_certificate.rb

Instance Method Summary collapse

Methods included from CloudObjectMapper::AWS

#cloud_obj_mapper, #cloud_obj_mapper_yml, #parse_provider_data

Methods included from ApiWrapper::AWS::AcmCertificate

#describe_certificate, #get_certificate, #list_certificates

Instance Method Details

#sync_resource(credential, region_code) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/eaglenube/synchronizer/aws/acm_certificate.rb', line 21

def sync_resource(credential, region_code)
  remote_acm_certificates = list_certificates(credential, region_code)
  remote_acm_certificates.each do |remote_acm_certificate|
    object_identifying_attributes, optional_attributes = yield(remote_acm_certificate)
    create_or_update(remote_acm_certificate, object_identifying_attributes, **optional_attributes)
  end
end