Class: SES
Overview
Collect SES resources
Constant Summary
Constants inherited from Mapper
Mapper::SINGLE_REGION_SERVICES
Instance Method Summary collapse
-
#collect ⇒ Object
Returns an array of resources.
Methods inherited from Mapper
Constructor Details
This class inherits a constructor from Mapper
Instance Method Details
#collect ⇒ Object
Returns an array of resources.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/aws_recon/collectors/ses.rb', line 10 def collect resources = [] # # list_identities # @client.list_identities.each_with_index do |response, page| log(response.context.operation_name, page) response.identities.each do |identity| struct = OpenStruct.new struct.type = 'identity' struct.arn = "arn:aws:ses:#{@region}:#{@account}:identity/#{identity}" # get_identity_dkim_attributes struct.dkim_attributes = @client.get_identity_dkim_attributes({ identities: [identity] }).dkim_attributes[identity].to_h resources.push(struct.to_h) end end resources end |