aws.codecommit.get_file
Example SQL Queries
SELECT * FROMaws.codecommit.get_fileWHERE"repository_name" = 'VALUE'AND "file_path" = 'VALUE';Description
Returns the base-64 encoded contents of a specified file and its metadata.
Table Definition
| Column Name | Column Data Type |
|---|---|
| file_path Required Input Column The fully qualified path to the specified file. Returns the name and extension of the file. | VARCHAR |
| repository_name Required Input Column The name of the repository that contains the file. | VARCHAR |
| commit_specifier Input Column The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| blob_id The blob ID of the object that represents the file content. | VARCHAR |
| commit_id The full commit ID of the commit that contains the content returned by GetFile. | VARCHAR |
| file_content The base-64 encoded binary data object that represents the content of the file. | BLOB |
| file_mode The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values. The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values. | VARCHAR |
| file_size The size of the contents of the file, in bytes. | BIGINT |