Module: Eaglenube::ApiWrapper::AWS::IamCertificate

Included in:
Synchronizer::AWS::IamCertificate::IamCertificateSyncMethods
Defined in:
lib/eaglenube/api_wrapper/aws/iam_certificate.rb

Instance Method Summary collapse

Instance Method Details

#get_server_certificate(credential, region_code, certificate_name) ⇒ Object



15
16
17
18
# File 'lib/eaglenube/api_wrapper/aws/iam_certificate.rb', line 15

def get_server_certificate(credential, region_code, certificate_name)
  agent = Eaglenube::AWSAgent.get_iam_agent(credential, region_code)
  agent.get_server_certificate({ server_certificate_name: certificate_name })
end

#list_server_certificates(credential, region_code) ⇒ Object



10
11
12
13
# File 'lib/eaglenube/api_wrapper/aws/iam_certificate.rb', line 10

def list_server_certificates(credential, region_code)
  agent = Eaglenube::AWSAgent.get_iam_agent(credential, region_code)
  agent.list_server_certificates.try(:server_certificate_metadata_list)
end