Class ComponentResourceOptions
A bag of optional settings that control a ComponentResource's behavior.
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public sealed class ComponentResourceOptions : ResourceOptions
Properties
View SourceProviders
An optional set of providers to use for child resources.
Declaration
public List<ProviderResource> Providers { get; set; }
Property Value
| Type | Description |
|---|---|
| List<ProviderResource> |
Methods
View SourceMerge(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.
- If the property is a collection, the final value will be a collection containing the values from each options object.
-
Simple scalar values from
options2(i.e. strings, ints, bools) will replace the values ofoptions1. -
null values in
options2will be ignored. -
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 |