Module: Eaglenube::Synchronizer::AWS::DbSnapshot::DbSnapshotSyncMethods
- Defined in:
- lib/eaglenube/synchronizer/aws/db_snapshot.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::DbSnapshot
Methods included from AWSAgent
get_acm_agent, get_auto_scaling_agent, get_cloud_watch_agent, get_compute_agent, get_ecs_agent, get_elb_agent, get_iam_agent, get_kms_agent, get_rds_agent, get_redshift_agent, get_s3_agent
Methods included from AWSCredentialBuilder
Instance Method Details
#sync_resource(credential, region_code, **options) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/eaglenube/synchronizer/aws/db_snapshot.rb', line 21 def sync_resource(credential, region_code, **) remote_db_snapshots = describe_db_snapshots(credential, region_code, **) remote_db_snapshots.each do |remote_db_snapshot| , optional_attributes = yield(remote_db_snapshot) create_or_update(remote_db_snapshot, , **optional_attributes) end end |