Data Source: azurermStorageBlob
Use this data source to access information about an existing Storage Blob.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermStorageBlob.DataAzurermStorageBlob(this, "example", {
name: "example-blob-name",
storage_account_name: "example-storage-account-name",
storage_container_name: "example-storage-container-name",
});
Argument Reference
The following arguments are supported:
-
name
- The name of the Blob. -
storageAccountName
- The name of the Storage Account where the Container exists. -
storageContainerName
- The name of the Storage Container where the Blob exists.
Attributes Reference
-
id
- The ID of the storage blob. -
url
- The URL of the storage blob. -
type
- The type of the storage blob -
accessTier
- The access tier of the storage blob. -
contentType
- The content type of the storage blob. -
contentMd5
- The MD5 sum of the blob contents. -
metadata
- A map of custom blob metadata.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage Blob.