sym.sdk.secret.Secret

class sym.sdk.secret.Secret(srn: Union[sym.sdk.resource.SRN, str])

Bases: sym.sdk.resource.SymResource

This class represents a sym_secret (singular) Terraform resource.

A sym_secret resource represents an individual secret stored in a remote service or location.

Methods

dict()

Represent this resource as a dictionary.

retrieve_value()

Retrieve this secret's value from its remote storage.

Attributes

id

The UUID of the secret resource.

name

An alias for this resource's slug, derived from its SRN.

path

The path to the secret in the remote secret store (e.g., AWS Secrets Manager).

settings

A dictionary of settings for the secret, as specified in Terraform.

source

The location where this secret is stored.

srn

A SRN object that represents the unique identifier for this resource.

dict()

Represent this resource as a dictionary.

property id

The UUID of the secret resource.

property name

An alias for this resource’s slug, derived from its SRN.

property path

The path to the secret in the remote secret store (e.g., AWS Secrets Manager).

retrieve_value() str

Retrieve this secret’s value from its remote storage.

property settings

A dictionary of settings for the secret, as specified in Terraform.

property source

The location where this secret is stored.

property srn

A SRN object that represents the unique identifier for this resource.