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.



863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
# File 'lib/models/porcelain.rb', line 863

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

#caarn ⇒ Object

The ARN of the CA in AWS Private CA



847
848
849
# File 'lib/models/porcelain.rb', line 847

def caarn
  @caarn
end

#certificatetemplatearn ⇒ Object

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



849
850
851
# File 'lib/models/porcelain.rb', line 849

def certificatetemplatearn
  @certificatetemplatearn
end

#id ⇒ Object

Unique identifier of the SecretStore.



851
852
853
# File 'lib/models/porcelain.rb', line 851

def id
  @id
end

#issuedcertttlminutes ⇒ Object

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



853
854
855
# File 'lib/models/porcelain.rb', line 853

def issuedcertttlminutes
  @issuedcertttlminutes
end

#name ⇒ Object

Unique human-readable name of the SecretStore.



855
856
857
# File 'lib/models/porcelain.rb', line 855

def name
  @name
end

#region ⇒ Object

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



857
858
859
# File 'lib/models/porcelain.rb', line 857

def region
  @region
end

#signingalgo ⇒ Object

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



859
860
861
# File 'lib/models/porcelain.rb', line 859

def signingalgo
  @signingalgo
end

#tags ⇒ Object

Tags is a map of key, value pairs.



861
862
863
# File 'lib/models/porcelain.rb', line 861

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



883
884
885
886
887
888
889
# File 'lib/models/porcelain.rb', line 883

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