1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. getFileCrc64Checksum
Alibaba Cloud v3.45.1 published on Thursday, Dec 7, 2023 by Pulumi

alicloud.getFileCrc64Checksum

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.45.1 published on Thursday, Dec 7, 2023 by Pulumi

    This data source compute file crc64 checksum.

    NOTE: Available in 1.59.0+.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.GetFileCrc64Checksum.Invoke(new()
        {
            Filename = "exampleFileName",
        });
    
        return new Dictionary<string, object?>
        {
            ["fileCrc64Checksum"] = data.Alicloud_file_crc64_checksum.Defualt.Checksum,
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alicloud.GetFileCrc64Checksum(ctx, &alicloud.GetFileCrc64ChecksumArgs{
    			Filename: "exampleFileName",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fileCrc64Checksum", data.Alicloud_file_crc64_checksum.Defualt.Checksum)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
    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 default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
                .filename("exampleFileName")
                .build());
    
            ctx.export("fileCrc64Checksum", data.alicloud_file_crc64_checksum().defualt().checksum());
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.get_file_crc64_checksum(filename="exampleFileName")
    pulumi.export("fileCrc64Checksum", data["alicloud_file_crc64_checksum"]["defualt"]["checksum"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.getFileCrc64Checksum({
        filename: "exampleFileName",
    });
    export const fileCrc64Checksum = data.alicloud_file_crc64_checksum.defualt.checksum;
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:getFileCrc64Checksum
          Arguments:
            filename: exampleFileName
    outputs:
      fileCrc64Checksum: ${data.alicloud_file_crc64_checksum.defualt.checksum}
    

    Using getFileCrc64Checksum

    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 getFileCrc64Checksum(args: GetFileCrc64ChecksumArgs, opts?: InvokeOptions): Promise<GetFileCrc64ChecksumResult>
    function getFileCrc64ChecksumOutput(args: GetFileCrc64ChecksumOutputArgs, opts?: InvokeOptions): Output<GetFileCrc64ChecksumResult>
    def get_file_crc64_checksum(filename: Optional[str] = None,
                                output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetFileCrc64ChecksumResult
    def get_file_crc64_checksum_output(filename: Optional[pulumi.Input[str]] = None,
                                output_file: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetFileCrc64ChecksumResult]
    func GetFileCrc64Checksum(ctx *Context, args *GetFileCrc64ChecksumArgs, opts ...InvokeOption) (*GetFileCrc64ChecksumResult, error)
    func GetFileCrc64ChecksumOutput(ctx *Context, args *GetFileCrc64ChecksumOutputArgs, opts ...InvokeOption) GetFileCrc64ChecksumResultOutput

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

    public static class GetFileCrc64Checksum 
    {
        public static Task<GetFileCrc64ChecksumResult> InvokeAsync(GetFileCrc64ChecksumArgs args, InvokeOptions? opts = null)
        public static Output<GetFileCrc64ChecksumResult> Invoke(GetFileCrc64ChecksumInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFileCrc64ChecksumResult> getFileCrc64Checksum(GetFileCrc64ChecksumArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filename string

    The name of the file to be computed crc64 checksum.

    OutputFile string
    Filename string

    The name of the file to be computed crc64 checksum.

    OutputFile string
    filename String

    The name of the file to be computed crc64 checksum.

    outputFile String
    filename string

    The name of the file to be computed crc64 checksum.

    outputFile string
    filename str

    The name of the file to be computed crc64 checksum.

    output_file str
    filename String

    The name of the file to be computed crc64 checksum.

    outputFile String

    getFileCrc64Checksum Result

    The following output properties are available:

    Checksum string

    the file checksum of crc64.

    Filename string
    Id string

    The provider-assigned unique ID for this managed resource.

    OutputFile string
    Checksum string

    the file checksum of crc64.

    Filename string
    Id string

    The provider-assigned unique ID for this managed resource.

    OutputFile string
    checksum String

    the file checksum of crc64.

    filename String
    id String

    The provider-assigned unique ID for this managed resource.

    outputFile String
    checksum string

    the file checksum of crc64.

    filename string
    id string

    The provider-assigned unique ID for this managed resource.

    outputFile string
    checksum str

    the file checksum of crc64.

    filename str
    id str

    The provider-assigned unique ID for this managed resource.

    output_file str
    checksum String

    the file checksum of crc64.

    filename String
    id String

    The provider-assigned unique ID for this managed resource.

    outputFile String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.45.1 published on Thursday, Dec 7, 2023 by Pulumi