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