Class: AWS::IAM::ServerCertificate
- Inherits:
-
Resource
- Object
- Core::Resource
- Resource
- AWS::IAM::ServerCertificate
- Defined in:
- lib/aws/iam/server_certificate.rb
Overview
Respresents a server certificate.
certificate = iam.server_certificates["MyCert"]
You can use this class to get information about a certificate and to delete it.
Instance Attribute Summary
Attributes included from Core::Model
Instance Method Summary collapse
-
#delete ⇒ nil
Deletes the specified server certificate.
-
#initialize(name, opts = {}) ⇒ ServerCertificate
constructor
A new instance of ServerCertificate.
Methods inherited from Resource
#exists?, prefix_update_attributes, update_prefix
Methods inherited from Core::Resource
attribute_providers, attribute_providers_for, attributes, #attributes_from_response, define_attribute_type, #eql?, #inspect, new_from
Methods included from Core::Cacheable
Methods included from Core::Model
#client, #config_prefix, #inspect
Constructor Details
#initialize(name, opts = {}) ⇒ ServerCertificate
Returns a new instance of ServerCertificate.
28 29 30 31 |
# File 'lib/aws/iam/server_certificate.rb', line 28 def initialize(name, opts={}) opts[:name] = name super(opts) end |
Instance Method Details
#delete ⇒ nil
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 DeleteLoadBalancerListeners in the _Elastic Load Balancing API Reference_.
Deletes the specified server certificate.
115 116 117 118 |
# File 'lib/aws/iam/server_certificate.rb', line 115 def delete client.delete_server_certificate() nil end |