2023-09-22 21:27:58 -07:00

2.8 KiB
Raw Permalink Blame History

title_tag, meta_desc, title, h1, meta_image, menu, aliases
title_tag meta_desc title h1 meta_image menu aliases
Resource Options | Pulumi Concepts Resource options can be used to configure how all Pulumi resources are managed. Learn more about the types of resource options and how to use them here. Resource options Resource options /images/docs/meta-images/docs-meta.png
concepts
identifier weight
options 4
/docs/intro/concepts/resources/options/

All resource constructors accept an options argument that provide the following resource options:

  • additionalSecretOutputs: specify properties that must be encrypted as secrets.
  • aliases: specify aliases for this resource, so that renaming or refactoring doesnt replace it.
  • customTimeouts: override the default retry/timeout behavior for resource provisioning. The default value varies by resource.
  • deleteBeforeReplace: override the default create-before-delete behavior when replacing a resource.
  • deletedWith: If set, the provider's Delete method will not be called for this resource if the specified resource is being deleted as well.
  • dependsOn: specify additional explicit dependencies in addition to the ones in the dependency graph.
  • ignoreChanges: declare that changes to certain properties should be ignored during a diff.
  • import: bring an existing cloud resource into Pulumi.
  • parent: establish a parent/child relationship between resources.
  • protect: prevent accidental deletion of a resource by marking it as protected.
  • provider: pass an explicitly configured provider, instead of using the default global provider.
  • providers: pass a set of explicitly configured providers. These are used if provider is not given, and are passed to child resources.
  • replaceOnChanges: declare that changes to certain properties should be treated as forcing a replacement.
  • retainOnDelete: if true the resource will be retained in the backing cloud provider during a Pulumi delete operation.
  • transformations: dynamically transform a resources properties on the fly.
  • version: pass a provider plugin version that should be used when operating on a resource.