Class: SDM::AWSCertX509Store

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

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.



610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
# File 'lib/models/porcelain.rb', line 610

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 ? 0 : 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



594
595
596
# File 'lib/models/porcelain.rb', line 594

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



596
597
598
# File 'lib/models/porcelain.rb', line 596

def certificatetemplatearn
  @certificatetemplatearn
end

#idObject

Unique identifier of the SecretStore.



598
599
600
# File 'lib/models/porcelain.rb', line 598

def id
  @id
end

#issuedcertttlminutesObject

The lifetime of certificates issued by this CA represented in minutes.



600
601
602
# File 'lib/models/porcelain.rb', line 600

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



602
603
604
# File 'lib/models/porcelain.rb', line 602

def name
  @name
end

#regionObject

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



604
605
606
# File 'lib/models/porcelain.rb', line 604

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



606
607
608
# File 'lib/models/porcelain.rb', line 606

def signingalgo
  @signingalgo
end

#tagsObject

Tags is a map of key, value pairs.



608
609
610
# File 'lib/models/porcelain.rb', line 608

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



630
631
632
633
634
635
636
# File 'lib/models/porcelain.rb', line 630

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