getFileCrc64Checksum

This data source compute file crc64 checksum.

NOTE: Available in 1.59.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.GetFileCrc64Checksum.InvokeAsync(new AliCloud.GetFileCrc64ChecksumArgs
        {
            Filename = "exampleFileName",
        }));
        this.FileCrc64Checksum = data.Alicloud_file_crc64_checksum.Defualt.Checksum;
    }

    [Output("fileCrc64Checksum")]
    public Output<string> FileCrc64Checksum { get; set; }
}
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
	})
}
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 defaultFileCrc64Checksum = pulumi.output(alicloud.getFileCrc64Checksum({
    filename: "exampleFileName",
}, { async: true }));

export const fileCrc64Checksum = alicloud_file_crc64_checksum_defualt.checksum;

Using getFileCrc64Checksum

function getFileCrc64Checksum(args: GetFileCrc64ChecksumArgs, opts?: InvokeOptions): Promise<GetFileCrc64ChecksumResult>
def get_file_crc64_checksum(filename: Optional[str] = None,
                            output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetFileCrc64ChecksumResult
func GetFileCrc64Checksum(ctx *Context, args *GetFileCrc64ChecksumArgs, opts ...InvokeOption) (*GetFileCrc64ChecksumResult, error)

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

public static class GetFileCrc64Checksum {
    public static Task<GetFileCrc64ChecksumResult> InvokeAsync(GetFileCrc64ChecksumArgs args, InvokeOptions? opts = null)
}

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 str
The name of the file to be computed crc64 checksum.
output_file str

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 str
the file checksum of crc64.
filename str
id str
The provider-assigned unique ID for this managed resource.
output_file str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.