Module: Eaglenube::Synchronizer::AWS::IamCertificate::IamCertificateSyncMethods

Includes:
ApiWrapper::AWS::IamCertificate, CloudObjectMapper::AWS
Defined in:
lib/eaglenube/synchronizer/aws/iam_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::IamCertificate

#get_server_certificate, #list_server_certificates

Instance Method Details

#sync_resource(credential, region_code) ⇒ Object



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

def sync_resource(credential, region_code)
  remote_iam_certificates = list_server_certificates(credential, region_code)
  remote_iam_certificates.each do |remote_iam_certificate|
    object_identifying_attributes, optional_attributes = yield(remote_iam_certificate)
    create_or_update(remote_iam_certificate, object_identifying_attributes, **optional_attributes)
  end
end