Create BasicResourceV3 Resource {#create}#
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax#
new BasicResourceV3(name: string, args: BasicResourceV3Args, opts?: CustomResourceOptions);@overload
def BasicResourceV3(resource_name: str,
args: BasicResourceV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def BasicResourceV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
bar: Optional[str] = None)func NewBasicResourceV3(ctx *Context, name string, args BasicResourceV3Args, opts ...ResourceOption) (*BasicResourceV3, error)public BasicResourceV3(string name, BasicResourceV3Args args, CustomResourceOptions? opts = null)
public BasicResourceV3(String name, BasicResourceV3Args args)
public BasicResourceV3(String name, BasicResourceV3Args args, CustomResourceOptions options)
type: example:BasicResourceV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "example_basic_resource_v3" "name" {
# resource properties
}Parameters#
- name string
- The unique name of the resource.
- args BasicResourceV3Args
- 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 BasicResourceV3Args
- 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 BasicResourceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BasicResourceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BasicResourceV3Args
- 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 basicResourceV3Resource = new Example.BasicResourceV3("basicResourceV3Resource", new()
{
Bar = "string",
});example, err := example.NewBasicResourceV3(ctx, "basicResourceV3Resource", &example.BasicResourceV3Args{
Bar: pulumi.String("string"),
})resource "example_basic_resource_v3" "basicResourceV3Resource" {
lifecycle {
create_before_destroy = true
}
bar = "string"
}var basicResourceV3Resource = new BasicResourceV3("basicResourceV3Resource", BasicResourceV3Args.builder()
.bar("string")
.build());basic_resource_v3_resource = example.BasicResourceV3("basicResourceV3Resource", bar="string")const basicResourceV3Resource = new example.BasicResourceV3("basicResourceV3Resource", {bar: "string"});type: example:BasicResourceV3
properties:
bar: stringBasicResourceV3 Resource Properties {#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 BasicResourceV3 resource accepts the following input properties:
- Bar string
- Bar string
- bar string
- bar String
- bar string
- bar str
- bar String
Outputs#
All input properties are implicitly available as output properties. Additionally, the BasicResourceV3 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 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