pulumi/tests/testdata/codegen/naming-collisions/docs/maincomponent/_index.md

17 KiB


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

Create MainComponent Resource

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

Constructor syntax

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

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

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

Outputs

All input properties are implicitly available as output properties. Additionally, the MainComponent 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