mirror of https://github.com/pulumi/pulumi.git
20 KiB
20 KiB
title: "BasicResourceV2" title_tag: "example.BasicResourceV2" meta_desc: "Documentation for the example.BasicResourceV2 resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true
Create BasicResourceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BasicResourceV2(name: string, args: BasicResourceV2Args, opts?: CustomResourceOptions);
@overload
def BasicResourceV2(resource_name: str,
args: BasicResourceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def BasicResourceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
bar: Optional[str] = None)
func NewBasicResourceV2(ctx *Context, name string, args BasicResourceV2Args, opts ...ResourceOption) (*BasicResourceV2, error)
public BasicResourceV2(string name, BasicResourceV2Args args, CustomResourceOptions? opts = null)
public BasicResourceV2(String name, BasicResourceV2Args args)
public BasicResourceV2(String name, BasicResourceV2Args args, CustomResourceOptions options)
type: example:BasicResourceV2
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 BasicResourceV2Args
- 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 BasicResourceV2Args
- 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 BasicResourceV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BasicResourceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BasicResourceV2Args
- 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 basicResourceV2Resource = new Example.BasicResourceV2("basicResourceV2Resource", new()
{
Bar = "string",
});
example, err := example.NewBasicResourceV2(ctx, "basicResourceV2Resource", &example.BasicResourceV2Args{
Bar: pulumi.String("string"),
})
var basicResourceV2Resource = new BasicResourceV2("basicResourceV2Resource", BasicResourceV2Args.builder()
.bar("string")
.build());
basic_resource_v2_resource = example.BasicResourceV2("basicResourceV2Resource", bar="string")
const basicResourceV2Resource = new example.BasicResourceV2("basicResourceV2Resource", {bar: "string"});
type: example:BasicResourceV2
properties:
bar: string
BasicResourceV2 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 BasicResourceV2 resource accepts the following input properties:
- Bar string
- Bar string
- bar String
- bar string
- bar str
- bar String
Outputs
All input properties are implicitly available as output properties. Additionally, the BasicResourceV2 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.
Package Details
- Repository
- example
- License