Respresents a server certificate.
certificate = iam.server_certificates["MyCert"]
You can use this class to get information about a certificate and to delete it.
@api private
# File lib/aws/iam/server_certificate.rb, line 28 def initialize(name, opts={}) opts[:name] = name super(opts) end
Deletes the specified server certificate.
@note If you are using a server certificate with Elastic Load
Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to {http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/APIReference/API_DeleteLoadBalancerListeners.html DeleteLoadBalancerListeners} in the _Elastic Load Balancing API Reference_.
@return [nil]
# File lib/aws/iam/server_certificate.rb, line 115 def delete client.delete_server_certificate(resource_options) nil end
@api private
# File lib/aws/iam/server_certificate.rb, line 122 def resource_identifiers [[:server_certificate_name, name]] end
extract response objects from get_server_certificate
# File lib/aws/iam/server_certificate.rb, line 128 def response_objects(resp) if cert = resp.server_certificate and meta = cert.server_certificate_metadata and meta.server_certificate_name == name [cert, meta] else [nil, nil] end end