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

Class: Aws::ACM::Types::ImportCertificateRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-acm/lib/aws-sdk-acm/types.rb

Overview

Note:

When making an API call, you may pass ImportCertificateRequest data as a hash:

{
  certificate_arn: "Arn",
  certificate: "data", # required
  private_key: "data", # required
  certificate_chain: "data",
}

Instance Attribute Summary collapse

Instance Attribute Details

#certificateString

The certificate to import. It must meet the following requirements:

  • Must be PEM-encoded.

  • Must contain a 1024-bit or 2048-bit RSA public key.

  • Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's NotBefore date) or after it expires (the certificate's NotAfter date).

Returns:

  • (String)


474
475
476
477
478
479
480
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/types.rb', line 474

class ImportCertificateRequest < Struct.new(
  :certificate_arn,
  :certificate,
  :private_key,
  :certificate_chain)
  include Aws::Structure
end

#certificate_arnString

The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.

Returns:

  • (String)


474
475
476
477
478
479
480
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/types.rb', line 474

class ImportCertificateRequest < Struct.new(
  :certificate_arn,
  :certificate,
  :private_key,
  :certificate_chain)
  include Aws::Structure
end

#certificate_chainString

The certificate chain. It must be PEM-encoded.

Returns:

  • (String)


474
475
476
477
478
479
480
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/types.rb', line 474

class ImportCertificateRequest < Struct.new(
  :certificate_arn,
  :certificate,
  :private_key,
  :certificate_chain)
  include Aws::Structure
end

#private_keyString

The private key that matches the public key in the certificate. It must meet the following requirements:

  • Must be PEM-encoded.

  • Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.

Returns:

  • (String)


474
475
476
477
478
479
480
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/types.rb', line 474

class ImportCertificateRequest < Struct.new(
  :certificate_arn,
  :certificate,
  :private_key,
  :certificate_chain)
  include Aws::Structure
end