class Awspec::Type::SesIdentity
Public Instance Methods
has_dkim_tokens?(token)
click to toggle source
# File lib/awspec/type/ses_identity.rb, line 34 def has_dkim_tokens?(token) res = ses_client.get_identity_dkim_attributes({ identities: [id] }) res.dkim_attributes[id][:tokens].include?(token) end
has_identity_policy?(name)
click to toggle source
# File lib/awspec/type/ses_identity.rb, line 11 def has_identity_policy?(name) res = ses_client.list_identity_policies({ identity: id }) res.policy_names.find do |policy_name| policy_name == name end end
id()
click to toggle source
# File lib/awspec/type/ses_identity.rb, line 7 def id @id ||= resource_via_client if resource_via_client end
resource_via_client()
click to toggle source
# File lib/awspec/type/ses_identity.rb, line 3 def resource_via_client @resource_via_client ||= find_ses_identity(@display_name) end