Show / Hide Table of Contents

Class ComponentResourceOptions

A bag of optional settings that control a ComponentResource's behavior.

Inheritance
object
ResourceOptions
ComponentResourceOptions
Inherited Members
ResourceOptions.Id
ResourceOptions.Parent
ResourceOptions.DependsOn
ResourceOptions.Protect
ResourceOptions.IgnoreChanges
ResourceOptions.Version
ResourceOptions.Provider
ResourceOptions.CustomTimeouts
ResourceOptions.ResourceTransformations
ResourceOptions.Aliases
ResourceOptions.Urn
ResourceOptions.ReplaceOnChanges
ResourceOptions.PluginDownloadURL
ResourceOptions.RetainOnDelete
ResourceOptions.DeletedWith
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public sealed class ComponentResourceOptions : ResourceOptions

Properties

View Source

Providers

An optional set of providers to use for child resources.

Note: do not provide both Provider and Providers.

Declaration
public List<ProviderResource> Providers { get; set; }
Property Value
Type Description
List<ProviderResource>

Methods

View Source

Merge(ComponentResourceOptions?, ComponentResourceOptions?)

Takes two ComponentResourceOptions values and produces a new ComponentResourceOptions with the respective properties of options2 merged over the same properties in options1. The original options objects will be unchanged.

A new instance will always be returned.

Conceptually property merging follows these basic rules:
  1. If the property is a collection, the final value will be a collection containing the values from each options object.
  2. Simple scalar values from options2 (i.e. strings, ints, bools) will replace the values of options1.
  3. null values in options2 will be ignored.
  4. Providers is a special case. Only one value per package will be in the resulting list. Priority is given to values in options2. If multiple providers for the same package are present, later providers take priority.
Declaration
public static ComponentResourceOptions Merge(ComponentResourceOptions? options1, ComponentResourceOptions? options2)
Parameters
Type Name Description
ComponentResourceOptions options1
ComponentResourceOptions options2
Returns
Type Description
ComponentResourceOptions
  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.