1. Packages
  2. dbt Cloud
  3. API Docs
  4. getExtendedAttributes
dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi

dbtcloud.getExtendedAttributes

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const myExtendedAttributes = dbtcloud.getExtendedAttributes({
        extendedAttributesId: 12345,
        projectId: 6789,
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    my_extended_attributes = dbtcloud.get_extended_attributes(extended_attributes_id=12345,
        project_id=6789)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbtcloud.LookupExtendedAttributes(ctx, &dbtcloud.LookupExtendedAttributesArgs{
    			ExtendedAttributesId: 12345,
    			ProjectId:            6789,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myExtendedAttributes = DbtCloud.GetExtendedAttributes.Invoke(new()
        {
            ExtendedAttributesId = 12345,
            ProjectId = 6789,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.DbtcloudFunctions;
    import com.pulumi.dbtcloud.inputs.GetExtendedAttributesArgs;
    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 myExtendedAttributes = DbtcloudFunctions.getExtendedAttributes(GetExtendedAttributesArgs.builder()
                .extendedAttributesId(12345)
                .projectId(6789)
                .build());
    
        }
    }
    
    variables:
      myExtendedAttributes:
        fn::invoke:
          Function: dbtcloud:getExtendedAttributes
          Arguments:
            extendedAttributesId: 12345
            projectId: 6789
    

    Using getExtendedAttributes

    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 getExtendedAttributes(args: GetExtendedAttributesArgs, opts?: InvokeOptions): Promise<GetExtendedAttributesResult>
    function getExtendedAttributesOutput(args: GetExtendedAttributesOutputArgs, opts?: InvokeOptions): Output<GetExtendedAttributesResult>
    def get_extended_attributes(extended_attributes_id: Optional[int] = None,
                                project_id: Optional[int] = None,
                                opts: Optional[InvokeOptions] = None) -> GetExtendedAttributesResult
    def get_extended_attributes_output(extended_attributes_id: Optional[pulumi.Input[int]] = None,
                                project_id: Optional[pulumi.Input[int]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetExtendedAttributesResult]
    func LookupExtendedAttributes(ctx *Context, args *LookupExtendedAttributesArgs, opts ...InvokeOption) (*LookupExtendedAttributesResult, error)
    func LookupExtendedAttributesOutput(ctx *Context, args *LookupExtendedAttributesOutputArgs, opts ...InvokeOption) LookupExtendedAttributesResultOutput

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

    public static class GetExtendedAttributes 
    {
        public static Task<GetExtendedAttributesResult> InvokeAsync(GetExtendedAttributesArgs args, InvokeOptions? opts = null)
        public static Output<GetExtendedAttributesResult> Invoke(GetExtendedAttributesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExtendedAttributesResult> getExtendedAttributes(GetExtendedAttributesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dbtcloud:index/getExtendedAttributes:getExtendedAttributes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExtendedAttributesId int
    ID of the extended attributes
    ProjectId int
    Project ID the extended attributes refers to
    ExtendedAttributesId int
    ID of the extended attributes
    ProjectId int
    Project ID the extended attributes refers to
    extendedAttributesId Integer
    ID of the extended attributes
    projectId Integer
    Project ID the extended attributes refers to
    extendedAttributesId number
    ID of the extended attributes
    projectId number
    Project ID the extended attributes refers to
    extended_attributes_id int
    ID of the extended attributes
    project_id int
    Project ID the extended attributes refers to
    extendedAttributesId Number
    ID of the extended attributes
    projectId Number
    Project ID the extended attributes refers to

    getExtendedAttributes Result

    The following output properties are available:

    ExtendedAttributes string
    A JSON string listing the extended attributes mapping
    ExtendedAttributesId int
    ID of the extended attributes
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId int
    Project ID the extended attributes refers to
    State int
    The state of the extended attributes (1 = active, 2 = inactive)
    ExtendedAttributes string
    A JSON string listing the extended attributes mapping
    ExtendedAttributesId int
    ID of the extended attributes
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId int
    Project ID the extended attributes refers to
    State int
    The state of the extended attributes (1 = active, 2 = inactive)
    extendedAttributes String
    A JSON string listing the extended attributes mapping
    extendedAttributesId Integer
    ID of the extended attributes
    id String
    The provider-assigned unique ID for this managed resource.
    projectId Integer
    Project ID the extended attributes refers to
    state Integer
    The state of the extended attributes (1 = active, 2 = inactive)
    extendedAttributes string
    A JSON string listing the extended attributes mapping
    extendedAttributesId number
    ID of the extended attributes
    id string
    The provider-assigned unique ID for this managed resource.
    projectId number
    Project ID the extended attributes refers to
    state number
    The state of the extended attributes (1 = active, 2 = inactive)
    extended_attributes str
    A JSON string listing the extended attributes mapping
    extended_attributes_id int
    ID of the extended attributes
    id str
    The provider-assigned unique ID for this managed resource.
    project_id int
    Project ID the extended attributes refers to
    state int
    The state of the extended attributes (1 = active, 2 = inactive)
    extendedAttributes String
    A JSON string listing the extended attributes mapping
    extendedAttributesId Number
    ID of the extended attributes
    id String
    The provider-assigned unique ID for this managed resource.
    projectId Number
    Project ID the extended attributes refers to
    state Number
    The state of the extended attributes (1 = active, 2 = inactive)

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi