Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
HTML/CSS to ImageViewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
Read an existing HTML/CSS template without managing its lifecycle. Requires templates:read.
Example Usage
data "htmlcsstoimage_template" "card" {
id = "t-YOUR_TEMPLATE_ID"
}
resource "htmlcsstoimage_image_templated" "card" {
template_id = data.htmlcsstoimage_template.card.id
template_version = data.htmlcsstoimage_template.card.version
template_values = jsonencode({ title = "Hello from Terraform" })
}
Omitting version resolves the latest version on every refresh. In this example a new template version changes the image’s templateVersion, so Terraform replaces the image. To pin the lookup, set version to a specific version identifier.
Using getTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTemplate(args: GetTemplateArgs, opts?: InvokeOptions): Promise<GetTemplateResult>
function getTemplateOutput(args: GetTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetTemplateResult>def get_template(id: Optional[str] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTemplateResult
def get_template_output(id: pulumi.Input[Optional[str]] = None,
version: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetTemplateResult]func LookupTemplate(ctx *Context, args *LookupTemplateArgs, opts ...InvokeOption) (*LookupTemplateResult, error)
func LookupTemplateOutput(ctx *Context, args *LookupTemplateOutputArgs, opts ...InvokeOption) LookupTemplateResultOutput> Note: This function is named LookupTemplate in the Go SDK.
public static class GetTemplate
{
public static Task<GetTemplateResult> InvokeAsync(GetTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetTemplateResult> Invoke(GetTemplateInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetTemplateResult> Invoke(GetTemplateInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
public static Output<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOptions options)
public static Output<GetTemplateResult> getTemplate(GetTemplateArgs args, InvokeOutputOptions options)
fn::invoke:
function: html-css-to-image:getTemplate
arguments:
# arguments dictionarydata "html-css-to-image_get_template" "name" {
# arguments
}The following arguments are supported:
getTemplate Result
The following output properties are available:
- Color
Scheme string - Created
At string - Css string
- Description string
- Device
Scale double - Disable
Twemoji bool - Google
Fonts List<string> - Html string
- Id string
- Jumbo
Max intHeight - Jumbo
Max intWidth - Max
Wait intMs - Media
Type string - Ms
Delay int - Name string
- Proxy
Id string - Render
When boolReady - Request
Overrides List<Pulumi.Html Css To Image. Outputs. Get Template Request Override> - Selector string
- Storage
Destination stringId - Template
Type string - Timezone string
- Transparent
Background bool - Updated
At string - Version string
- Viewport
Height int - Viewport
Landscape bool - Viewport
Mobile bool - Viewport
Touch bool - Viewport
Width int
- Color
Scheme string - Created
At string - Css string
- Description string
- Device
Scale float64 - Disable
Twemoji bool - Google
Fonts []string - Html string
- Id string
- Jumbo
Max intHeight - Jumbo
Max intWidth - Max
Wait intMs - Media
Type string - Ms
Delay int - Name string
- Proxy
Id string - Render
When boolReady - Request
Overrides []GetTemplate Request Override - Selector string
- Storage
Destination stringId - Template
Type string - Timezone string
- Transparent
Background bool - Updated
At string - Version string
- Viewport
Height int - Viewport
Landscape bool - Viewport
Mobile bool - Viewport
Touch bool - Viewport
Width int
- color_
scheme string - created_
at string - css string
- description string
- device_
scale number - disable_
twemoji bool - google_
fonts list(string) - html string
- id string
- jumbo_
max_ numberheight - jumbo_
max_ numberwidth - max_
wait_ numberms - media_
type string - ms_
delay number - name string
- proxy_
id string - render_
when_ boolready - request_
overrides list(object) - selector string
- storage_
destination_ stringid - template_
type string - timezone string
- transparent_
background bool - updated_
at string - version string
- viewport_
height number - viewport_
landscape bool - viewport_
mobile bool - viewport_
touch bool - viewport_
width number
- color
Scheme String - created
At String - css String
- description String
- device
Scale Double - disable
Twemoji Boolean - google
Fonts List<String> - html String
- id String
- jumbo
Max IntegerHeight - jumbo
Max IntegerWidth - max
Wait IntegerMs - media
Type String - ms
Delay Integer - name String
- proxy
Id String - render
When BooleanReady - request
Overrides List<GetTemplate Request Override> - selector String
- storage
Destination StringId - template
Type String - timezone String
- transparent
Background Boolean - updated
At String - version String
- viewport
Height Integer - viewport
Landscape Boolean - viewport
Mobile Boolean - viewport
Touch Boolean - viewport
Width Integer
- color
Scheme string - created
At string - css string
- description string
- device
Scale number - disable
Twemoji boolean - google
Fonts string[] - html string
- id string
- jumbo
Max numberHeight - jumbo
Max numberWidth - max
Wait numberMs - media
Type string - ms
Delay number - name string
- proxy
Id string - render
When booleanReady - request
Overrides GetTemplate Request Override[] - selector string
- storage
Destination stringId - template
Type string - timezone string
- transparent
Background boolean - updated
At string - version string
- viewport
Height number - viewport
Landscape boolean - viewport
Mobile boolean - viewport
Touch boolean - viewport
Width number
- color_
scheme str - created_
at str - css str
- description str
- device_
scale float - disable_
twemoji bool - google_
fonts Sequence[str] - html str
- id str
- jumbo_
max_ intheight - jumbo_
max_ intwidth - max_
wait_ intms - media_
type str - ms_
delay int - name str
- proxy_
id str - render_
when_ boolready - request_
overrides Sequence[GetTemplate Request Override] - selector str
- storage_
destination_ strid - template_
type str - timezone str
- transparent_
background bool - updated_
at str - version str
- viewport_
height int - viewport_
landscape bool - viewport_
mobile bool - viewport_
touch bool - viewport_
width int
- color
Scheme String - created
At String - css String
- description String
- device
Scale Number - disable
Twemoji Boolean - google
Fonts List<String> - html String
- id String
- jumbo
Max NumberHeight - jumbo
Max NumberWidth - max
Wait NumberMs - media
Type String - ms
Delay Number - name String
- proxy
Id String - render
When BooleanReady - request
Overrides List<Property Map> - selector String
- storage
Destination StringId - template
Type String - timezone String
- transparent
Background Boolean - updated
At String - version String
- viewport
Height Number - viewport
Landscape Boolean - viewport
Mobile Boolean - viewport
Touch Boolean - viewport
Width Number
Supporting Types
GetTemplateRequestOverride
- Action string
- Resource
Types []RequestOverride Resource Type - Url string
- action String
- resource
Types List<RequestOverride Resource Type> - url String
- action string
- resource
Types RequestOverride Resource Type[] - url string
RequestOverrideResourceType
Package Details
- Repository
- html-css-to-image htmlcsstoimage/pulumi-html-css-to-image
- License
- MIT
- Notes
- This Pulumi package is based on the
html-css-to-imageTerraform Provider.
HTML/CSS to ImageViewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
published on Tuesday, Sep 29, 2026 by htmlcsstoimage