1. Packages
  2. Impart Security
  3. API Docs
  4. GetSpec
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

impart.GetSpec

Explore with Pulumi AI

impart logo
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

    Manage a specification.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as impart from "@pulumi/impart";
    
    const example = impart.GetSpec({
        id: "<id>",
    });
    
    import pulumi
    import pulumi_impart as impart
    
    example = impart.get_spec(id="<id>")
    
    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.GetSpec(ctx, &impart.LookupSpecArgs{
    			Id: "<id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Impart = Pulumi.Impart;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Impart.GetSpec.Invoke(new()
        {
            Id = "<id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.impart.ImpartFunctions;
    import com.pulumi.impart.inputs.GetSpecArgs;
    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) {
            final var example = ImpartFunctions.GetSpec(GetSpecArgs.builder()
                .id("<id>")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: impart:GetSpec
          Arguments:
            id: <id>
    

    Using GetSpec

    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 getSpec(args: GetSpecArgs, opts?: InvokeOptions): Promise<GetSpecResult>
    function getSpecOutput(args: GetSpecOutputArgs, opts?: InvokeOptions): Output<GetSpecResult>
    def get_spec(id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetSpecResult
    def get_spec_output(id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetSpecResult]
    func LookupSpec(ctx *Context, args *LookupSpecArgs, opts ...InvokeOption) (*LookupSpecResult, error)
    func LookupSpecOutput(ctx *Context, args *LookupSpecOutputArgs, opts ...InvokeOption) LookupSpecResultOutput

    > Note: This function is named LookupSpec in the Go SDK.

    public static class GetSpec 
    {
        public static Task<GetSpecResult> InvokeAsync(GetSpecArgs args, InvokeOptions? opts = null)
        public static Output<GetSpecResult> Invoke(GetSpecInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSpecResult> getSpec(GetSpecArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: impart:GetSpec
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Identifier for this specification.
    Id string
    Identifier for this specification.
    id String
    Identifier for this specification.
    id string
    Identifier for this specification.
    id str
    Identifier for this specification.
    id String
    Identifier for this specification.

    GetSpec Result

    The following output properties are available:

    Id string
    Identifier for this specification.
    Name string
    The name for this specification.
    Id string
    Identifier for this specification.
    Name string
    The name for this specification.
    id String
    Identifier for this specification.
    name String
    The name for this specification.
    id string
    Identifier for this specification.
    name string
    The name for this specification.
    id str
    Identifier for this specification.
    name str
    The name for this specification.
    id String
    Identifier for this specification.
    name String
    The name for this specification.

    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.8.0 published on Monday, Nov 11, 2024 by Impart Security