f5bigip.FastTemplate
Explore with Pulumi AI
f5bigip.FastTemplate
This resource will import and create FAST template sets on BIG-IP LTM.
Template set can be imported from zip archive files on the local disk.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
import * as std from "@pulumi/std";
const foo_template = new f5bigip.FastTemplate("foo-template", {
name: "foo_template",
source: "foo_template.zip",
md5Hash: std.filemd5({
input: "foo_template.zip",
}).then(invoke => invoke.result),
});
import pulumi
import pulumi_f5bigip as f5bigip
import pulumi_std as std
foo_template = f5bigip.FastTemplate("foo-template",
name="foo_template",
source="foo_template.zip",
md5_hash=std.filemd5(input="foo_template.zip").result)
package main
import (
"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
invokeFilemd5, err := std.Filemd5(ctx, &std.Filemd5Args{
Input: "foo_template.zip",
}, nil)
if err != nil {
return err
}
_, err = f5bigip.NewFastTemplate(ctx, "foo-template", &f5bigip.FastTemplateArgs{
Name: pulumi.String("foo_template"),
Source: pulumi.String("foo_template.zip"),
Md5Hash: pulumi.String(invokeFilemd5.Result),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var foo_template = new F5BigIP.FastTemplate("foo-template", new()
{
Name = "foo_template",
Source = "foo_template.zip",
Md5Hash = Std.Filemd5.Invoke(new()
{
Input = "foo_template.zip",
}).Apply(invoke => invoke.Result),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.FastTemplate;
import com.pulumi.f5bigip.FastTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo_template = new FastTemplate("foo-template", FastTemplateArgs.builder()
.name("foo_template")
.source("foo_template.zip")
.md5Hash(StdFunctions.filemd5(Filemd5Args.builder()
.input("foo_template.zip")
.build()).result())
.build());
}
}
resources:
foo-template:
type: f5bigip:FastTemplate
properties:
name: foo_template
source: foo_template.zip
md5Hash:
fn::invoke:
Function: std:filemd5
Arguments:
input: foo_template.zip
Return: result
Create FastTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FastTemplate(name: string, args: FastTemplateArgs, opts?: CustomResourceOptions);
@overload
def FastTemplate(resource_name: str,
args: FastTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FastTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
md5_hash: Optional[str] = None,
source: Optional[str] = None,
name: Optional[str] = None)
func NewFastTemplate(ctx *Context, name string, args FastTemplateArgs, opts ...ResourceOption) (*FastTemplate, error)
public FastTemplate(string name, FastTemplateArgs args, CustomResourceOptions? opts = null)
public FastTemplate(String name, FastTemplateArgs args)
public FastTemplate(String name, FastTemplateArgs args, CustomResourceOptions options)
type: f5bigip:FastTemplate
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 FastTemplateArgs
- 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 FastTemplateArgs
- 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 FastTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FastTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FastTemplateArgs
- 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 fastTemplateResource = new F5BigIP.FastTemplate("fastTemplateResource", new()
{
Md5Hash = "string",
Source = "string",
Name = "string",
});
example, err := f5bigip.NewFastTemplate(ctx, "fastTemplateResource", &f5bigip.FastTemplateArgs{
Md5Hash: pulumi.String("string"),
Source: pulumi.String("string"),
Name: pulumi.String("string"),
})
var fastTemplateResource = new FastTemplate("fastTemplateResource", FastTemplateArgs.builder()
.md5Hash("string")
.source("string")
.name("string")
.build());
fast_template_resource = f5bigip.FastTemplate("fastTemplateResource",
md5_hash="string",
source="string",
name="string")
const fastTemplateResource = new f5bigip.FastTemplate("fastTemplateResource", {
md5Hash: "string",
source: "string",
name: "string",
});
type: f5bigip:FastTemplate
properties:
md5Hash: string
name: string
source: string
FastTemplate 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 FastTemplate resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the FastTemplate 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 FastTemplate Resource
Get an existing FastTemplate 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?: FastTemplateState, opts?: CustomResourceOptions): FastTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
md5_hash: Optional[str] = None,
name: Optional[str] = None,
source: Optional[str] = None) -> FastTemplate
func GetFastTemplate(ctx *Context, name string, id IDInput, state *FastTemplateState, opts ...ResourceOption) (*FastTemplate, error)
public static FastTemplate Get(string name, Input<string> id, FastTemplateState? state, CustomResourceOptions? opts = null)
public static FastTemplate get(String name, Output<String> id, FastTemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigip
Terraform Provider.