You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::IAM::ServerCertificate

Inherits:
Resource
  • Object
show all
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 collapse

Instance Method Summary collapse

Methods inherited from Resource

#exists?

Instance Attribute Details

#arnString (readonly)

The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Returns:

  • (String)

    the current value of arn



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def arn
  @arn
end

#certificate_bodyString (readonly)

The contents of the public key certificate.

Returns:

  • (String)

    the current value of certificate_body



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def certificate_body
  @certificate_body
end

#certificate_chainString (readonly)

The contents of the public key certificate chain.

Returns:

  • (String)

    the current value of certificate_chain



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def certificate_chain
  @certificate_chain
end

#idString (readonly)

The stable and unique string identifying the server certificate.

Returns:

  • (String)

    the current value of id



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def id
  @id
end

#nameString

The name that identifies the server certificate.

Returns:

  • (String)

    the current value of name



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def name
  @name
end

#pathString

Path to the server certificate.

Returns:

  • (String)

    the current value of path



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def path
  @path
end

#upload_dateTime (readonly)

The date when the server certificate was uploaded.

Returns:

  • (Time)

    the current value of upload_date



47
48
49
# File 'lib/aws/iam/server_certificate.rb', line 47

def upload_date
  @upload_date
end

Instance Method Details

#deletenil

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 DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.

Deletes the specified server certificate.

Returns:

  • (nil)


122
123
124
125
# File 'lib/aws/iam/server_certificate.rb', line 122

def delete
  client.delete_server_certificate(resource_options)
  nil
end