And update the metaschema to accommodate the `isOverlay` properties added in #8338. Overlay enums, like other overlay members, are implemented out-of-band by the declaring package. Code generators should not generate declarations for overlay enums.
16 KiB
title: "OverlayResource" title_tag: "example.OverlayResource" meta_desc: "Documentation for the example.OverlayResource resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true
Create a OverlayResource Resource
{{< chooser language "typescript,python,go,csharp" / >}}
{{% choosable language nodejs %}}
new OverlayResource(name: string, args?: OverlayResourceArgs, opts?: CustomResourceOptions);
{{% choosable language python %}}
@overload
def OverlayResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
bar: Optional[EnumOverlay] = None,
foo: Optional[ConfigMapOverlayArgs] = None)
@overload
def OverlayResource(resource_name: str,
args: Optional[OverlayResourceArgs] = None,
opts: Optional[ResourceOptions] = None)
{{% choosable language go %}}
func NewOverlayResource(ctx *Context, name string, args *OverlayResourceArgs, opts ...ResourceOption) (*OverlayResource, error)
{{% choosable language csharp %}}
public OverlayResource(string name, OverlayResourceArgs? args = null, CustomResourceOptions? opts = null)
{{% choosable language nodejs %}}
- name string
- The unique name of the resource.
- args OverlayResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
{{% /choosable %}}
{{% choosable language python %}}
- resource_name str
- The unique name of the resource.
- args OverlayResourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
{{% /choosable %}}
{{% choosable language go %}}
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OverlayResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
{{% /choosable %}}
{{% choosable language csharp %}}
- name string
- The unique name of the resource.
- args OverlayResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
{{% /choosable %}}
OverlayResource Resource Properties
To learn more about resource properties and how to use them, see [Inputs and Outputs]({{< relref "/docs/intro/concepts/inputs-outputs" >}}) in the Architecture and Concepts docs.
Inputs
The OverlayResource resource accepts the following [input]({{< relref "/docs/intro/concepts/inputs-outputs" >}}) properties:
{{% choosable language csharp %}}
-
Bar
Pulumi.
Example. Enum Overlay - {{% md %}}{{% /md %}}
-
Foo
Config
Map Overlay Args - {{% md %}}{{% /md %}}
{{% choosable language go %}}
-
Bar
Enum
Overlay - {{% md %}}{{% /md %}}
-
Foo
Config
Map Overlay Args - {{% md %}}{{% /md %}}
{{% choosable language nodejs %}}
-
bar
Enum
Overlay - {{% md %}}{{% /md %}}
-
foo
Config
Map Overlay Args - {{% md %}}{{% /md %}}
{{% choosable language python %}}
-
bar
Enum
Overlay - {{% md %}}{{% /md %}}
-
foo
Config
Map Overlay Args - {{% md %}}{{% /md %}}
Outputs
All input properties are implicitly available as output properties. Additionally, the OverlayResource resource produces the following output properties:
{{% choosable language csharp %}}
- Id string
- {{% md %}}The provider-assigned unique ID for this managed resource.{{% /md %}}
{{% choosable language go %}}
- Id string
- {{% md %}}The provider-assigned unique ID for this managed resource.{{% /md %}}
{{% choosable language nodejs %}}
- id string
- {{% md %}}The provider-assigned unique ID for this managed resource.{{% /md %}}
{{% choosable language python %}}
- id str
- {{% md %}}The provider-assigned unique ID for this managed resource.{{% /md %}}
Supporting Types
ConfigMapOverlay
{{% choosable language csharp %}}
- Config string
- {{% md %}}{{% /md %}}
{{% choosable language go %}}
- Config string
- {{% md %}}{{% /md %}}
{{% choosable language nodejs %}}
- config string
- {{% md %}}{{% /md %}}
{{% choosable language python %}}
- config str
- {{% md %}}{{% /md %}}
EnumOverlay
{{% choosable language csharp %}}
- Some
Enum Value - SOME_ENUM_VALUE
{{% choosable language go %}}
- Enum
Overlay Some Enum Value - SOME_ENUM_VALUE
{{% choosable language nodejs %}}
- Some
Enum Value - SOME_ENUM_VALUE
{{% choosable language python %}}
- SOME_ENUM_VALUE
- SOME_ENUM_VALUE
Package Details
- Repository
- License