Package com.pulumi.resources
Class ResourceOptions.Builder<T extends ResourceOptions,B extends ResourceOptions.Builder<T,B>>
java.lang.Object
com.pulumi.resources.ResourceOptions.Builder<T,B>
- Direct Known Subclasses:
ComponentResourceOptions.Builder,CustomResourceOptions.Builder
- Enclosing class:
- ResourceOptions
protected abstract static class ResourceOptions.Builder<T extends ResourceOptions,B extends ResourceOptions.Builder<T,B>>
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn optional list of aliases to treat this resource as matching.final BcustomTimeouts(CustomTimeouts customTimeouts) An optional CustomTimeouts configuration.Optional additional explicit dependencies on other resources.Hide diffs collapses the diff of any mentioned property paths.An optional existing ID to load, rather than create.ignoreChanges(String... ignoreChanges) Ignore changes to any of the specified properties.ignoreChanges(List<String> ignoreChanges) Ignore changes to any of the specified properties.An optional parent resource to which this resource belongs.pluginDownloadURL(String pluginDownloadURL) An optional URL, corresponding to the url from which the provider plugin that should be used when operating on this resource is downloaded from.protect(boolean protect) When set to true, protect ensures this resource cannot be deleted.provider(ProviderResource provider) An optional provider to use for this resource's CRUD operations.replacementTrigger(Output<?> replacementTrigger) If set, the engine will diff this with the last recorded value, and trigger a replace if they are not equal.replaceOnChanges(String... replaceOnChanges) Changes to any of these property paths will force a replacement.replaceOnChanges(List<String> replaceOnChanges) replaceWith(Resource... replaceWith) If set, this resource will also be replaced whenever any of the provided resources are replaced.replaceWith(List<Resource> replaceWith) resourceTransformations(ResourceTransformation... resourceTransformations) Optional list of transformations to apply to this resource during construction.resourceTransformations(List<ResourceTransformation> resourceTransformations) retainOnDelete(boolean retainOnDelete) If set to True, the providers Delete method will not be called for this resource.retainOnDelete(Boolean retainOnDelete) The URN of a previously-registered resource of this type to read from the engine.An optional version, corresponding to the version of the provider plugin that should be used when operating on this resource.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
-
-
Method Details
-
id
- See Also:
-
id
An optional existing ID to load, rather than create. -
parent
An optional parent resource to which this resource belongs. -
dependsOn
Optional additional explicit dependencies on other resources. -
dependsOn
- See Also:
-
dependsOn
- See Also:
-
protect
When set to true, protect ensures this resource cannot be deleted. -
protect
- See Also:
-
ignoreChanges
Ignore changes to any of the specified properties. -
ignoreChanges
Ignore changes to any of the specified properties. -
version
An optional version, corresponding to the version of the provider plugin that should be used when operating on this resource. This version overrides the version information inferred from the current package and should rarely be used. -
provider
An optional provider to use for this resource's CRUD operations. If no provider is supplied, the default provider for the resource's package will be used. The default provider is pulled from the parent's provider bag (@seeComponentResourceOptions.getProviders()).If this is a @see
ComponentResourceOptionsdo not provide both @seeprovider(com.pulumi.resources.ProviderResource)and @seeComponentResourceOptions.getProviders(). -
customTimeouts
An optional CustomTimeouts configuration. -
resourceTransformations
Optional list of transformations to apply to this resource during construction. The transformations are applied in order, and are applied prior to transformation applied to parent walking from the resource up to the stack. -
resourceTransformations
-
aliases
An optional list of aliases to treat this resource as matching. -
aliases
- See Also:
-
aliases
- See Also:
-
urn
The URN of a previously-registered resource of this type to read from the engine. -
replaceOnChanges
Changes to any of these property paths will force a replacement. If this list includes `"*"`, changes to any properties will force a replacement. Initialization errors from previous deployments will require replacement instead of update only if `"*"` is passed. -
replaceOnChanges
- See Also:
-
retainOnDelete
If set to True, the providers Delete method will not be called for this resource. -
retainOnDelete
- See Also:
-
pluginDownloadURL
An optional URL, corresponding to the url from which the provider plugin that should be used when operating on this resource is downloaded from. This URL overrides the download URL inferred from the current package and should rarely be used. -
hideDiffs
Hide diffs collapses the diff of any mentioned property paths. -
hideDiffs
- See Also:
-
replaceWith
If set, this resource will also be replaced whenever any of the provided resources are replaced. -
replaceWith
- See Also:
-
replacementTrigger
If set, the engine will diff this with the last recorded value, and trigger a replace if they are not equal. Note that if either value is null, no comparison is done and no replacement is triggered. This means that the replacement trigger only applies to two subsequent deployments with defined triggers.
-