Class: SDM::AWSCertX509Store

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AWSCertX509Store is currently unstable, and its API may change, or it may be removed, without a major version bump.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caarn: nil, certificatetemplatearn: nil, id: nil, issuedcertttlminutes: nil, name: nil, region: nil, signingalgo: nil, tags: nil) ⇒ AWSCertX509Store

Returns a new instance of AWSCertX509Store.



480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/models/porcelain.rb', line 480

def initialize(
  caarn: nil,
  certificatetemplatearn: nil,
  id: nil,
  issuedcertttlminutes: nil,
  name: nil,
  region: nil,
  signingalgo: nil,
  tags: nil
)
  @caarn = caarn == nil ? "" : caarn
  @certificatetemplatearn = certificatetemplatearn == nil ? "" : certificatetemplatearn
  @id = id == nil ? "" : id
  @issuedcertttlminutes = issuedcertttlminutes == nil ? "" : issuedcertttlminutes
  @name = name == nil ? "" : name
  @region = region == nil ? "" : region
  @signingalgo = signingalgo == nil ? "" : signingalgo
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#caarnObject

The ARN of the CA in AWS Private CA



464
465
466
# File 'lib/models/porcelain.rb', line 464

def caarn
  @caarn
end

#certificatetemplatearnObject

The ARN of the AWS certificate template for requested certificates. Must allow SAN, key usage, and ext key usage passthrough from CSR



466
467
468
# File 'lib/models/porcelain.rb', line 466

def certificatetemplatearn
  @certificatetemplatearn
end

#idObject

Unique identifier of the SecretStore.



468
469
470
# File 'lib/models/porcelain.rb', line 468

def id
  @id
end

#issuedcertttlminutesObject

The lifetime of certificates issued by this CA represented in minutes e.g. 600 (for 10 hours). Defaults to 8 hours if not provided.



470
471
472
# File 'lib/models/porcelain.rb', line 470

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



472
473
474
# File 'lib/models/porcelain.rb', line 472

def name
  @name
end

#regionObject

The AWS region to target e.g. us-east-1



474
475
476
# File 'lib/models/porcelain.rb', line 474

def region
  @region
end

#signingalgoObject

The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key. e.g. SHA256WITHRSA



476
477
478
# File 'lib/models/porcelain.rb', line 476

def signingalgo
  @signingalgo
end

#tagsObject

Tags is a map of key, value pairs.



478
479
480
# File 'lib/models/porcelain.rb', line 478

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



500
501
502
503
504
505
506
# File 'lib/models/porcelain.rb', line 500

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end