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

Class: Aws::SecretsManager::Types::CreateSecretResponse

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

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the secret that you just created.

Secrets Manager automatically adds several random characters to the name at the end of the ARN when you initially create a secret. This affects only the ARN and not the actual friendly name. This ensures that if you create a new secret with the same name as an old secret that you previously deleted, then users with access to the old secret don't automatically get access to the new secret because the ARNs are different.

Returns:

  • (String)


311
312
313
314
315
316
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 311

class CreateSecretResponse < Struct.new(
  :arn,
  :name,
  :version_id)
  include Aws::Structure
end

#nameString

The friendly name of the secret that you just created.

Returns:

  • (String)


311
312
313
314
315
316
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 311

class CreateSecretResponse < Struct.new(
  :arn,
  :name,
  :version_id)
  include Aws::Structure
end

#version_idString

The unique identifier that's associated with the version of the secret you just created.

Returns:

  • (String)


311
312
313
314
315
316
# File 'gems/aws-sdk-secretsmanager/lib/aws-sdk-secretsmanager/types.rb', line 311

class CreateSecretResponse < Struct.new(
  :arn,
  :name,
  :version_id)
  include Aws::Structure
end