1. Packages
  2. Powerflex Provider
  3. API Docs
  4. TemplateClone
powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell

powerflex.TemplateClone

Explore with Pulumi AI

powerflex logo
powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell

    Create TemplateClone Resource

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

    Constructor syntax

    new TemplateClone(name: string, args: TemplateCloneArgs, opts?: CustomResourceOptions);
    @overload
    def TemplateClone(resource_name: str,
                      args: TemplateCloneArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemplateClone(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      original_template_id: Optional[str] = None,
                      template_name: Optional[str] = None)
    func NewTemplateClone(ctx *Context, name string, args TemplateCloneArgs, opts ...ResourceOption) (*TemplateClone, error)
    public TemplateClone(string name, TemplateCloneArgs args, CustomResourceOptions? opts = null)
    public TemplateClone(String name, TemplateCloneArgs args)
    public TemplateClone(String name, TemplateCloneArgs args, CustomResourceOptions options)
    
    type: powerflex:TemplateClone
    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 TemplateCloneArgs
    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 TemplateCloneArgs
    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 TemplateCloneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemplateCloneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemplateCloneArgs
    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 templateCloneResource = new Powerflex.TemplateClone("templateCloneResource", new()
    {
        OriginalTemplateId = "string",
        TemplateName = "string",
    });
    
    example, err := powerflex.NewTemplateClone(ctx, "templateCloneResource", &powerflex.TemplateCloneArgs{
    	OriginalTemplateId: pulumi.String("string"),
    	TemplateName:       pulumi.String("string"),
    })
    
    var templateCloneResource = new TemplateClone("templateCloneResource", TemplateCloneArgs.builder()
        .originalTemplateId("string")
        .templateName("string")
        .build());
    
    template_clone_resource = powerflex.TemplateClone("templateCloneResource",
        original_template_id="string",
        template_name="string")
    
    const templateCloneResource = new powerflex.TemplateClone("templateCloneResource", {
        originalTemplateId: "string",
        templateName: "string",
    });
    
    type: powerflex:TemplateClone
    properties:
        originalTemplateId: string
        templateName: string
    

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

    OriginalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    TemplateName string
    Template Clone Resources's unique template name for the cloned template.
    OriginalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    TemplateName string
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId String
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName String
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName string
    Template Clone Resources's unique template name for the cloned template.
    original_template_id str
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    template_name str
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId String
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName String
    Template Clone Resources's unique template name for the cloned template.

    Outputs

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

    Look up Existing TemplateClone Resource

    Get an existing TemplateClone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TemplateCloneState, opts?: CustomResourceOptions): TemplateClone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            original_template_id: Optional[str] = None,
            template_name: Optional[str] = None) -> TemplateClone
    func GetTemplateClone(ctx *Context, name string, id IDInput, state *TemplateCloneState, opts ...ResourceOption) (*TemplateClone, error)
    public static TemplateClone Get(string name, Input<string> id, TemplateCloneState? state, CustomResourceOptions? opts = null)
    public static TemplateClone get(String name, Output<String> id, TemplateCloneState state, CustomResourceOptions options)
    resources:  _:    type: powerflex:TemplateClone    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    OriginalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    TemplateName string
    Template Clone Resources's unique template name for the cloned template.
    OriginalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    TemplateName string
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId String
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName String
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId string
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName string
    Template Clone Resources's unique template name for the cloned template.
    original_template_id str
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    template_name str
    Template Clone Resources's unique template name for the cloned template.
    originalTemplateId String
    Template Clone Resources's original template ID derived from the template needing to be cloned.
    templateName String
    Template Clone Resources's unique template name for the cloned template.

    Package Details

    Repository
    powerflex dell/terraform-provider-powerflex
    License
    Notes
    This Pulumi package is based on the powerflex Terraform Provider.
    powerflex logo
    powerflex 1.8.0 published on Monday, Apr 14, 2025 by dell