pulumi/tests/testdata/codegen/resource-property-overlap/docs/rec/_index.md

19 KiB


title: "Rec" title_tag: "example.Rec" meta_desc: "Documentation for the example.Rec resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true

Create Rec Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Rec(name: string, args?: RecArgs, opts?: CustomResourceOptions);
@overload
def Rec(resource_name: str,
        args: Optional[RecArgs] = None,
        opts: Optional[ResourceOptions] = None)

@overload
def Rec(resource_name: str,
        opts: Optional[ResourceOptions] = None)
func NewRec(ctx *Context, name string, args *RecArgs, opts ...ResourceOption) (*Rec, error)
public Rec(string name, RecArgs? args = null, CustomResourceOptions? opts = null)
public Rec(String name, RecArgs args)
public Rec(String name, RecArgs args, CustomResourceOptions options)
type: example:Rec
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 RecArgs
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 RecArgs
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 RecArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RecArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args RecArgs
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 recResource = new Example.Rec("recResource");
example, err := example.NewRec(ctx, "recResource", nil)
var recResource = new Rec("recResource");
rec_resource = example.Rec("recResource")
const recResource = new example.Rec("recResource", {});
type: example:Rec
properties: {}

Rec 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 Rec resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the Rec resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Rec Pulumi.Example.Rec
Id string
The provider-assigned unique ID for this managed resource.
Rec Rec
id String
The provider-assigned unique ID for this managed resource.
rec Rec
id string
The provider-assigned unique ID for this managed resource.
rec Rec
id str
The provider-assigned unique ID for this managed resource.
rec Rec
id String
The provider-assigned unique ID for this managed resource.
rec example:Rec

Package Details

Repository
example
License