mirror of https://github.com/pulumi/pulumi.git
29 KiB
29 KiB
title: "Res" title_tag: "urnid.Res" meta_desc: "Documentation for the urnid.Res resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true
It's fine to use urn and id as input properties
Create Res Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Res(name: string, args?: ResArgs, opts?: CustomResourceOptions);
@overload
def Res(resource_name: str,
args: Optional[ResArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Res(resource_name: str,
opts: Optional[ResourceOptions] = None,
id: Optional[str] = None,
urn: Optional[str] = None)
func NewRes(ctx *Context, name string, args *ResArgs, opts ...ResourceOption) (*Res, error)
public Res(string name, ResArgs? args = null, CustomResourceOptions? opts = null)
type: urnid:Res
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 ResArgs
- 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 ResArgs
- 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 ResArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResArgs
- 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 resResource = new Urnid.Res("resResource", new()
{
Id = "string",
Urn = "string",
});
example, err := urnid.NewRes(ctx, "resResource", &urnid.ResArgs{
Id: pulumi.String("string"),
Urn: pulumi.String("string"),
})
var resResource = new Res("resResource", ResArgs.builder()
.id("string")
.urn("string")
.build());
res_resource = urnid.Res("resResource",
id="string",
urn="string")
const resResource = new urnid.Res("resResource", {
id: "string",
urn: "string",
});
type: urnid:Res
properties:
id: string
urn: string
Res 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 Res resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Res resource produces the following output properties:
- id String
- The provider-assigned unique ID for this managed resource.
- output Property Map
Supporting Types
InnerType, InnerTypeArgs
Package Details
- Repository
- urnid
- License