class AWS::IAM::SigningCertificateCollection
user.signing_certificates.upload(cert_body)
user = iam.users[‘someuser’]
signing certificate interface on a user:
If you want to work with an IAM user’s certificates just use the
CERT
—–END CERTIFICATE—–
F9TbdXSWdgMl7E0=
Glli79yh87PRi0vNDlFEoHXNynkvC/c4TiWruZ4haM9BR9EdWr1DBNNu73ui093K
.…..
MIICdzCCAeCgAwIBAgIFGS4fY6owDQYJKoZIhvcNAQEFBQAwUzELMAkGA1UEBhMC
—–BEGIN CERTIFICATE—–
iam.signing_certificates.upload(<<-CERT)
# upload a certificate for the AWS account:
iam = AWS::IAM.new
to an AWS account or an IAM user.
This is the primary interface for uploading X.509 signing certificates
def [] certificate_id
-
(SigningCertificate)- Returns a reference to the signing
Parameters:
-
certificate_id(String) -- The ID of the signing certificate.
def [] certificate_id SigningCertificate.new(certificate_id.to_s, new_options) end
def clear
-
(nil)-
def clear each do |certificate| certificate.delete end nil end
def each options = {}, &block
-
(nil)-
Other tags:
- Yieldparam: signing_certificate -
Options Hash:
(**options)-
:batch_size(Integer) -- The maximum number of -
:limit(Integer) -- The maximum number of certificates
Parameters:
-
options(Hash) --
def each options = {}, &block each_options = options.dup each_options[:user_name] = user.name if user super(each_options, &block) end
def each_item response, &block
def each_item response, &block response.certificates.each do |item| cert = SigningCertificate.new_from(:list_signing_certificates, item, item.certificate_id, new_options) yield(cert) end end
def initialize options = {}
(**options)-
:user(User) -- When +:user+ is provided the
Parameters:
-
options(Hash) --
def initialize options = {} @user = options[:user] @user ? super(@user, options) : super(options) end
def new_options
def new_options user ? { :user => user } : { :config => config } end
def upload certificate_body
-
(SigningCertificate)- Returns the newly created signing
Parameters:
-
certificate_body(String) -- The contents of the signing
def upload certificate_body options = {} options[:certificate_body] = certificate_body options[:user_name] = user.name if user resp = client.upload_signing_certificate(options) SigningCertificate.new_from(:upload_signing_certificate, resp.certificate, resp.certificate.certificate_id, new_options) end