Viewing docs for Impart Security v0.11.6
published on Thursday, May 21, 2026 by Impart Security
published on Thursday, May 21, 2026 by Impart Security
Impart Security
I want to use the Pulumi Impart Security package (impart) in my project.
## Provider details
- Package: impart
- Version: v0.11.6
- Publisher: Impart Security
- Source: pulumi
- Repository: https://github.com/impart-security/pulumi-impart
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/impart_security/impart/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/impart_security/impart/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/impart_security/impart/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/impart_security/impart/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Impart Security v0.11.6
published on Thursday, May 21, 2026 by Impart Security
published on Thursday, May 21, 2026 by Impart Security
The Impart Resource Provider lets you manage Impart resources.
Example
const pulumi = require("@pulumi/pulumi");
const impart = require("@impart-security/pulumi-impart");
const crypto = require("crypto");
const fs = require("fs");
const hashSum = crypto.createHash("sha256");
const specSource = fs.readFileSync(`./spec.yaml`).toString();
const spec = new impart.Spec("spec", {
name: "example_spec",
sourceFile: "spec.yaml",
//optional to track source files changes
sourceHash: hashSum.update(specSource).digest("hex"),
});
const apiBinding = new impart.ApiBinding("api_binding", {
name: "api_binding_example",
port: 8080,
hostname: "example.com",
basePath: "/",
specId: spec.id,
});
const logBinding = new impart.LogBinding("log_binding", {
name: "log_binding_example",
patternType: "grok",
pattern: `%{HTTPDATE:timestamp} "(?:%{WORD:http_method}|-) (?:%{GREEDYDATA:request}|-) (?:HTTP/%{NUMBER:httpversion}|-( )?)" (?:%{NUMBER:response_code}|-)`,
specId: spec.id,
});
import * as pulumi from "@pulumi/pulumi";
import * as impart from "@impart-security/pulumi-impart";
import * as crypto from "crypto";
import * as fs from "fs";
const hashSum = crypto.createHash("sha256");
const specSource = fs.readFileSync(`./spec.yaml`).toString();
const spec = new impart.Spec("spec", {
name: "example_spec",
sourceFile: "spec.yaml",
//optional to track source files changes
sourceHash: hashSum.update(specSource).digest("hex"),
});
const apiBinding = new impart.ApiBinding("api_binding", {
name: "api_binding_example",
port: 8080,
hostname: "example.com",
basePath: "/",
specId: spec.id,
});
const logBinding = new impart.LogBinding("log_binding", {
name: "log_binding_example",
patternType: "grok",
pattern: `%{HTTPDATE:timestamp} "(?:%{WORD:http_method}|-) (?:%{GREEDYDATA:request}|-) (?:HTTP/%{NUMBER:httpversion}|-( )?)" (?:%{NUMBER:response_code}|-)`,
specId: spec.id,
});
package main
import (
"crypto/sha256"
"fmt"
"io"
"os"
"github.com/impart-security/pulumi-impart/sdk/go/impart"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
specFile := "./spec.yaml"
specHash, err := getFileHash(specFile)
if err != nil {
return err
}
spec, err := impart.NewSpec(ctx, "example", &impart.SpecArgs{
Name: pulumi.String("spec_example"),
SourceFile: pulumi.String(specFile),
SourceHash: pulumi.String(specHash),
})
if err != nil {
return err
}
_, err = impart.NewApiBinding(ctx, "example", &impart.ApiBindingArgs{
Name: pulumi.String("api_binding_example"),
Port: pulumi.Int(443),
SpecId: spec.ID().ToStringOutput(),
Hostname: pulumi.String("example.com"),
BasePath: pulumi.String("/"),
})
if err != nil {
return err
}
_, err = impart.NewLogBinding(ctx, "example", &impart.LogBindingArgs{
Name: pulumi.String("log_binding_example"),
SpecId: spec.ID().ToStringOutput(),
PatternType: pulumi.String("grok"),
Pattern: pulumi.String(`%{HTTPDATE:timestamp} "(?:%{WORD:http_method}|-) (?:%{GREEDYDATA:request}|-) (?:HTTP/%{NUMBER:httpversion}|-( )?)" (?:%{NUMBER:response_code}|-)`),
})
if err != nil {
return err
}
return nil
})
}
func getFileHash(filePath string) (string, error) {
file, err := os.Open(filePath)
if err != nil {
return "", err
}
defer file.Close()
hash := sha256.New()
if _, err := io.Copy(hash, file); err != nil {
return "", err
}
return string(hash.Sum(nil)), nil
}
Viewing docs for Impart Security v0.11.6
published on Thursday, May 21, 2026 by Impart Security
published on Thursday, May 21, 2026 by Impart Security