Alibaba Cloud

v3.10.0 published on Wednesday, Nov 24, 2021 by Pulumi

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, &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",
}));

export const fileCrc64Checksum = 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)
}

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.