1. Packages
  2. Impart Security
  3. API Docs
  4. Binding
Impart Security v0.1.8 published on Friday, Aug 18, 2023 by Impart Security

impart.Binding

Explore with Pulumi AI

impart logo
Impart Security v0.1.8 published on Friday, Aug 18, 2023 by Impart Security

    Manage a binding.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Impart = Pulumi.Impart;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a new binding
        var example = new Impart.Binding("example", new()
        {
            Name = "binding_example",
            Port = 443,
            SpecId = resource.Impart_spec.Example.Id,
            Hostname = "example.com",
            BasePath = "/",
        });
    
    });
    
    package main
    
    import (
    	"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 {
    		_, err := impart.NewBinding(ctx, "example", &impart.BindingArgs{
    			Name:     pulumi.String("binding_example"),
    			Port:     pulumi.Int(443),
    			SpecId:   pulumi.Any(resource.Impart_spec.Example.Id),
    			Hostname: pulumi.String("example.com"),
    			BasePath: pulumi.String("/"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.impart.Binding;
    import com.pulumi.impart.BindingArgs;
    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 example = new Binding("example", BindingArgs.builder()        
                .name("binding_example")
                .port(443)
                .specId(resource.impart_spec().example().id())
                .hostname("example.com")
                .basePath("/")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_impart as impart
    
    # Create a new binding
    example = impart.Binding("example",
        name="binding_example",
        port=443,
        spec_id=resource["impart_spec"]["example"]["id"],
        hostname="example.com",
        base_path="/")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as impart from "@impart-security/pulumi-impart";
    
    // Create a new binding
    const example = new impart.Binding("example", {
        name: "binding_example",
        port: 443,
        specId: resource.impart_spec.example.id,
        hostname: "example.com",
        basePath: "/",
    });
    
    resources:
      # Create a new binding
      example:
        type: impart:Binding
        properties:
          name: binding_example
          port: 443
          specId: ${resource.impart_spec.example.id}
          hostname: example.com
          basePath: /
    

    Create Binding Resource

    new Binding(name: string, args: BindingArgs, opts?: CustomResourceOptions);
    @overload
    def Binding(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                base_path: Optional[str] = None,
                hostname: Optional[str] = None,
                name: Optional[str] = None,
                port: Optional[int] = None,
                spec_id: Optional[str] = None,
                upstream_origin: Optional[str] = None)
    @overload
    def Binding(resource_name: str,
                args: BindingArgs,
                opts: Optional[ResourceOptions] = None)
    func NewBinding(ctx *Context, name string, args BindingArgs, opts ...ResourceOption) (*Binding, error)
    public Binding(string name, BindingArgs args, CustomResourceOptions? opts = null)
    public Binding(String name, BindingArgs args)
    public Binding(String name, BindingArgs args, CustomResourceOptions options)
    
    type: impart:Binding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BindingArgs
    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 BindingArgs
    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 BindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Binding Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Binding resource accepts the following input properties:

    BasePath string

    The base_path for this binding.

    Hostname string

    The hostname for this binding.

    Name string

    The name for this binding.

    Port int

    The port for this binding.

    SpecId string

    The specification id.

    UpstreamOrigin string

    The upstream_origin for this binding.

    BasePath string

    The base_path for this binding.

    Hostname string

    The hostname for this binding.

    Name string

    The name for this binding.

    Port int

    The port for this binding.

    SpecId string

    The specification id.

    UpstreamOrigin string

    The upstream_origin for this binding.

    basePath String

    The base_path for this binding.

    hostname String

    The hostname for this binding.

    name String

    The name for this binding.

    port Integer

    The port for this binding.

    specId String

    The specification id.

    upstreamOrigin String

    The upstream_origin for this binding.

    basePath string

    The base_path for this binding.

    hostname string

    The hostname for this binding.

    name string

    The name for this binding.

    port number

    The port for this binding.

    specId string

    The specification id.

    upstreamOrigin string

    The upstream_origin for this binding.

    base_path str

    The base_path for this binding.

    hostname str

    The hostname for this binding.

    name str

    The name for this binding.

    port int

    The port for this binding.

    spec_id str

    The specification id.

    upstream_origin str

    The upstream_origin for this binding.

    basePath String

    The base_path for this binding.

    hostname String

    The hostname for this binding.

    name String

    The name for this binding.

    port Number

    The port for this binding.

    specId String

    The specification id.

    upstreamOrigin String

    The upstream_origin for this binding.

    Outputs

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

    Get an existing Binding 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?: BindingState, opts?: CustomResourceOptions): Binding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            base_path: Optional[str] = None,
            hostname: Optional[str] = None,
            name: Optional[str] = None,
            port: Optional[int] = None,
            spec_id: Optional[str] = None,
            upstream_origin: Optional[str] = None) -> Binding
    func GetBinding(ctx *Context, name string, id IDInput, state *BindingState, opts ...ResourceOption) (*Binding, error)
    public static Binding Get(string name, Input<string> id, BindingState? state, CustomResourceOptions? opts = null)
    public static Binding get(String name, Output<String> id, BindingState 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.
    The following state arguments are supported:
    BasePath string

    The base_path for this binding.

    Hostname string

    The hostname for this binding.

    Name string

    The name for this binding.

    Port int

    The port for this binding.

    SpecId string

    The specification id.

    UpstreamOrigin string

    The upstream_origin for this binding.

    BasePath string

    The base_path for this binding.

    Hostname string

    The hostname for this binding.

    Name string

    The name for this binding.

    Port int

    The port for this binding.

    SpecId string

    The specification id.

    UpstreamOrigin string

    The upstream_origin for this binding.

    basePath String

    The base_path for this binding.

    hostname String

    The hostname for this binding.

    name String

    The name for this binding.

    port Integer

    The port for this binding.

    specId String

    The specification id.

    upstreamOrigin String

    The upstream_origin for this binding.

    basePath string

    The base_path for this binding.

    hostname string

    The hostname for this binding.

    name string

    The name for this binding.

    port number

    The port for this binding.

    specId string

    The specification id.

    upstreamOrigin string

    The upstream_origin for this binding.

    base_path str

    The base_path for this binding.

    hostname str

    The hostname for this binding.

    name str

    The name for this binding.

    port int

    The port for this binding.

    spec_id str

    The specification id.

    upstream_origin str

    The upstream_origin for this binding.

    basePath String

    The base_path for this binding.

    hostname String

    The hostname for this binding.

    name String

    The name for this binding.

    port Number

    The port for this binding.

    specId String

    The specification id.

    upstreamOrigin String

    The upstream_origin for this binding.

    Package Details

    Repository
    impart impart-security/pulumi-impart
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the impart Terraform Provider.

    impart logo
    Impart Security v0.1.8 published on Friday, Aug 18, 2023 by Impart Security