1. Registry
  2. Packages
  3. Snowflake Provider
  4. API Docs
  5. getCodeBundles
Viewing docs for Snowflake v2.23.0
published on Friday, Nov 6, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.23.0
published on Friday, Nov 6, 2026 by Pulumi

    Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to previewFeaturesEnabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Data source used to get details of filtered code bundles. Filtering is aligned with the current possibilities for SHOW CODE BUNDLES query. The results of SHOW and DESCRIBE are encapsulated in one output collection codeBundles.

    Using getCodeBundles

    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 getCodeBundles(args: GetCodeBundlesArgs, opts?: InvokeOptions): Promise<GetCodeBundlesResult>
    function getCodeBundlesOutput(args: GetCodeBundlesOutputArgs, opts?: InvokeOutputOptions): Output<GetCodeBundlesResult>
    def get_code_bundles(in_: Optional[GetCodeBundlesIn] = None,
                         with_describe: Optional[bool] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCodeBundlesResult
    def get_code_bundles_output(in_: pulumi.Input[Optional[GetCodeBundlesInArgs]] = None,
                         with_describe: pulumi.Input[Optional[bool]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetCodeBundlesResult]
    func GetCodeBundles(ctx *Context, args *GetCodeBundlesArgs, opts ...InvokeOption) (*GetCodeBundlesResult, error)
    func GetCodeBundlesOutput(ctx *Context, args *GetCodeBundlesOutputArgs, opts ...InvokeOption) GetCodeBundlesResultOutput

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

    public static class GetCodeBundles 
    {
        public static Task<GetCodeBundlesResult> InvokeAsync(GetCodeBundlesArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeBundlesResult> Invoke(GetCodeBundlesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCodeBundlesResult> Invoke(GetCodeBundlesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCodeBundlesResult> getCodeBundles(GetCodeBundlesArgs args, InvokeOptions options)
    public static Output<GetCodeBundlesResult> getCodeBundles(GetCodeBundlesArgs args, InvokeOptions options)
    public static Output<GetCodeBundlesResult> getCodeBundles(GetCodeBundlesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: snowflake:index/getCodeBundles:getCodeBundles
      arguments:
        # arguments dictionary
    data "snowflake_get_code_bundles" "name" {
        # arguments
    }

    The following arguments are supported:

    In GetCodeBundlesIn
    IN clause to filter the list of objects
    WithDescribe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    In GetCodeBundlesIn
    IN clause to filter the list of objects
    WithDescribe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in object
    IN clause to filter the list of objects
    with_describe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in GetCodeBundlesIn
    IN clause to filter the list of objects
    withDescribe Boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in GetCodeBundlesIn
    IN clause to filter the list of objects
    withDescribe boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in_ GetCodeBundlesIn
    IN clause to filter the list of objects
    with_describe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    in Property Map
    IN clause to filter the list of objects
    withDescribe Boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.

    getCodeBundles Result

    The following output properties are available:

    CodeBundles List<GetCodeBundlesCodeBundle>
    Holds the aggregated output of all code bundle details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetCodeBundlesIn
    IN clause to filter the list of objects
    WithDescribe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    CodeBundles []GetCodeBundlesCodeBundle
    Holds the aggregated output of all code bundle details queries.
    Id string
    The provider-assigned unique ID for this managed resource.
    In GetCodeBundlesIn
    IN clause to filter the list of objects
    WithDescribe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    code_bundles list(object)
    Holds the aggregated output of all code bundle details queries.
    id string
    The provider-assigned unique ID for this managed resource.
    in object
    IN clause to filter the list of objects
    with_describe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    codeBundles List<GetCodeBundlesCodeBundle>
    Holds the aggregated output of all code bundle details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    in GetCodeBundlesIn
    IN clause to filter the list of objects
    withDescribe Boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    codeBundles GetCodeBundlesCodeBundle[]
    Holds the aggregated output of all code bundle details queries.
    id string
    The provider-assigned unique ID for this managed resource.
    in GetCodeBundlesIn
    IN clause to filter the list of objects
    withDescribe boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    code_bundles Sequence[GetCodeBundlesCodeBundle]
    Holds the aggregated output of all code bundle details queries.
    id str
    The provider-assigned unique ID for this managed resource.
    in_ GetCodeBundlesIn
    IN clause to filter the list of objects
    with_describe bool
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.
    codeBundles List<Property Map>
    Holds the aggregated output of all code bundle details queries.
    id String
    The provider-assigned unique ID for this managed resource.
    in Property Map
    IN clause to filter the list of objects
    withDescribe Boolean
    (Default: true) Runs DESC CODE BUNDLE for each code bundle returned by SHOW CODE BUNDLES. The output of describe is saved to the describeOutput field. By default this value is set to true.

    Supporting Types

    GetCodeBundlesCodeBundle

    DescribeOutputs List<GetCodeBundlesCodeBundleDescribeOutput>
    Holds the output of DESCRIBE CODE BUNDLE.
    ShowOutputs List<GetCodeBundlesCodeBundleShowOutput>
    Holds the output of SHOW CODE BUNDLES.
    DescribeOutputs []GetCodeBundlesCodeBundleDescribeOutput
    Holds the output of DESCRIBE CODE BUNDLE.
    ShowOutputs []GetCodeBundlesCodeBundleShowOutput
    Holds the output of SHOW CODE BUNDLES.
    describe_outputs list(object)
    Holds the output of DESCRIBE CODE BUNDLE.
    show_outputs list(object)
    Holds the output of SHOW CODE BUNDLES.
    describeOutputs List<GetCodeBundlesCodeBundleDescribeOutput>
    Holds the output of DESCRIBE CODE BUNDLE.
    showOutputs List<GetCodeBundlesCodeBundleShowOutput>
    Holds the output of SHOW CODE BUNDLES.
    describeOutputs GetCodeBundlesCodeBundleDescribeOutput[]
    Holds the output of DESCRIBE CODE BUNDLE.
    showOutputs GetCodeBundlesCodeBundleShowOutput[]
    Holds the output of SHOW CODE BUNDLES.
    describe_outputs Sequence[GetCodeBundlesCodeBundleDescribeOutput]
    Holds the output of DESCRIBE CODE BUNDLE.
    show_outputs Sequence[GetCodeBundlesCodeBundleShowOutput]
    Holds the output of SHOW CODE BUNDLES.
    describeOutputs List<Property Map>
    Holds the output of DESCRIBE CODE BUNDLE.
    showOutputs List<Property Map>
    Holds the output of SHOW CODE BUNDLES.

    GetCodeBundlesCodeBundleDescribeOutput

    GetCodeBundlesCodeBundleShowOutput

    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    comment string
    created_on string
    database_name string
    name string
    owner string
    schema_name string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String
    comment string
    createdOn string
    databaseName string
    name string
    owner string
    schemaName string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String

    GetCodeBundlesIn

    Account bool
    Returns records for the entire account.
    Application string
    Returns records for the specified application.
    ApplicationPackage string
    Returns records for the specified application package.
    Database string
    Returns records for the current database in use or for a specified database.
    Schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    Account bool
    Returns records for the entire account.
    Application string
    Returns records for the specified application.
    ApplicationPackage string
    Returns records for the specified application package.
    Database string
    Returns records for the current database in use or for a specified database.
    Schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account bool
    Returns records for the entire account.
    application string
    Returns records for the specified application.
    application_package string
    Returns records for the specified application package.
    database string
    Returns records for the current database in use or for a specified database.
    schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account Boolean
    Returns records for the entire account.
    application String
    Returns records for the specified application.
    applicationPackage String
    Returns records for the specified application package.
    database String
    Returns records for the current database in use or for a specified database.
    schema String
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account boolean
    Returns records for the entire account.
    application string
    Returns records for the specified application.
    applicationPackage string
    Returns records for the specified application package.
    database string
    Returns records for the current database in use or for a specified database.
    schema string
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account bool
    Returns records for the entire account.
    application str
    Returns records for the specified application.
    application_package str
    Returns records for the specified application package.
    database str
    Returns records for the current database in use or for a specified database.
    schema str
    Returns records for the current schema in use or a specified schema. Use fully qualified name.
    account Boolean
    Returns records for the entire account.
    application String
    Returns records for the specified application.
    applicationPackage String
    Returns records for the specified application package.
    database String
    Returns records for the current database in use or for a specified database.
    schema String
    Returns records for the current schema in use or a specified schema. Use fully qualified name.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.23.0
    published on Friday, Nov 6, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial