mirror of https://github.com/pulumi/pulumi.git
27 KiB
27 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 OverlayResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OverlayResource(name: string, args?: OverlayResourceArgs, opts?: CustomResourceOptions);
@overload
def OverlayResource(resource_name: str,
args: Optional[OverlayResourceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def OverlayResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
bar: Optional[EnumOverlay] = None,
foo: Optional[ConfigMapOverlayArgs] = None)
func NewOverlayResource(ctx *Context, name string, args *OverlayResourceArgs, opts ...ResourceOption) (*OverlayResource, error)
public OverlayResource(string name, OverlayResourceArgs? args = null, CustomResourceOptions? opts = null)
public OverlayResource(String name, OverlayResourceArgs args)
public OverlayResource(String name, OverlayResourceArgs args, CustomResourceOptions options)
type: example:OverlayResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- 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.
- 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.
- 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.
- name String
- The unique name of the resource.
- args OverlayResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var overlayResourceResource = new Example.OverlayResource("overlayResourceResource", new()
{
Bar = Example.EnumOverlay.SomeEnumValue,
Foo = new Example.Inputs.ConfigMapOverlayArgs
{
Config = "string",
},
});
example, err := example.NewOverlayResource(ctx, "overlayResourceResource", &example.OverlayResourceArgs{
Bar: example.EnumOverlaySomeEnumValue,
Foo: &example.ConfigMapOverlayArgs{
Config: pulumi.String("string"),
},
})
var overlayResourceResource = new OverlayResource("overlayResourceResource", OverlayResourceArgs.builder()
.bar("SOME_ENUM_VALUE")
.foo(ConfigMapOverlayArgs.builder()
.config("string")
.build())
.build());
overlay_resource_resource = example.OverlayResource("overlayResourceResource",
bar=example.EnumOverlay.SOME_ENUM_VALUE,
foo={
"config": "string",
})
const overlayResourceResource = new example.OverlayResource("overlayResourceResource", {
bar: example.EnumOverlay.SomeEnumValue,
foo: {
config: "string",
},
});
type: example:OverlayResource
properties:
bar: SOME_ENUM_VALUE
foo:
config: string
OverlayResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OverlayResource resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the OverlayResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ConfigMapOverlay, ConfigMapOverlayArgs
- Config string
- Config string
- config String
- config string
- config str
- config String
EnumOverlay, EnumOverlayArgs
- Some
Enum Value - SOME_ENUM_VALUE
- Enum
Overlay Some Enum Value - SOME_ENUM_VALUE
- Some
Enum Value - SOME_ENUM_VALUE
- Some
Enum Value - SOME_ENUM_VALUE
- SOME_ENUM_VALUE
- SOME_ENUM_VALUE
- "SOME_ENUM_VALUE"
- SOME_ENUM_VALUE
Package Details
- Repository
- example
- License