@gradientedge/cdk-utils 9.59.0 → 9.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,6 +59,8 @@ export declare class AzureStorageManager {
|
|
|
59
59
|
* - storageAccountName: The name of the existing Azure Storage Account
|
|
60
60
|
* - storageContainerName: The name of the container within the storage account
|
|
61
61
|
* - resourceGroupName: The name of the resource group containing the storage account
|
|
62
|
+
* - sasStart: Optional start date in the format 'YYYY-MM-DD'. If not provided, defaults to today’s date.
|
|
63
|
+
* To avoid diffs on every deploy, it is recommended to supply a fixed value.
|
|
62
64
|
* - sasExpiry: Optional expiry date in the format 'YYYY-MM-DD'. Defaults to 7 days from current date if not provided.
|
|
63
65
|
*
|
|
64
66
|
* @returns A `DataAzurermStorageAccountBlobContainerSas` instance with the generated SAS token
|
|
@@ -69,6 +71,7 @@ export declare class AzureStorageManager {
|
|
|
69
71
|
storageAccountName: string;
|
|
70
72
|
storageContainerName: string;
|
|
71
73
|
resourceGroupName: string;
|
|
74
|
+
sasStart?: string;
|
|
72
75
|
sasExpiry?: string;
|
|
73
76
|
}): DataAzurermStorageAccountBlobContainerSas;
|
|
74
77
|
}
|
|
@@ -131,6 +131,8 @@ class AzureStorageManager {
|
|
|
131
131
|
* - storageAccountName: The name of the existing Azure Storage Account
|
|
132
132
|
* - storageContainerName: The name of the container within the storage account
|
|
133
133
|
* - resourceGroupName: The name of the resource group containing the storage account
|
|
134
|
+
* - sasStart: Optional start date in the format 'YYYY-MM-DD'. If not provided, defaults to today’s date.
|
|
135
|
+
* To avoid diffs on every deploy, it is recommended to supply a fixed value.
|
|
134
136
|
* - sasExpiry: Optional expiry date in the format 'YYYY-MM-DD'. Defaults to 7 days from current date if not provided.
|
|
135
137
|
*
|
|
136
138
|
* @returns A `DataAzurermStorageAccountBlobContainerSas` instance with the generated SAS token
|
|
@@ -146,7 +148,7 @@ class AzureStorageManager {
|
|
|
146
148
|
connectionString: storageAccountLookup.primaryConnectionString,
|
|
147
149
|
containerName: props.storageContainerName,
|
|
148
150
|
httpsOnly: true,
|
|
149
|
-
start: new Date().toISOString().split('T')[0],
|
|
151
|
+
start: props.sasStart ?? new Date().toISOString().split('T')[0],
|
|
150
152
|
expiry: props.sasExpiry ?? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
|
|
151
153
|
permissions: {
|
|
152
154
|
read: true,
|
package/package.json
CHANGED
|
@@ -144,6 +144,8 @@ export class AzureStorageManager {
|
|
|
144
144
|
* - storageAccountName: The name of the existing Azure Storage Account
|
|
145
145
|
* - storageContainerName: The name of the container within the storage account
|
|
146
146
|
* - resourceGroupName: The name of the resource group containing the storage account
|
|
147
|
+
* - sasStart: Optional start date in the format 'YYYY-MM-DD'. If not provided, defaults to today’s date.
|
|
148
|
+
* To avoid diffs on every deploy, it is recommended to supply a fixed value.
|
|
147
149
|
* - sasExpiry: Optional expiry date in the format 'YYYY-MM-DD'. Defaults to 7 days from current date if not provided.
|
|
148
150
|
*
|
|
149
151
|
* @returns A `DataAzurermStorageAccountBlobContainerSas` instance with the generated SAS token
|
|
@@ -157,6 +159,7 @@ export class AzureStorageManager {
|
|
|
157
159
|
storageAccountName: string
|
|
158
160
|
storageContainerName: string
|
|
159
161
|
resourceGroupName: string
|
|
162
|
+
sasStart?: string
|
|
160
163
|
sasExpiry?: string
|
|
161
164
|
}
|
|
162
165
|
): DataAzurermStorageAccountBlobContainerSas {
|
|
@@ -169,7 +172,7 @@ export class AzureStorageManager {
|
|
|
169
172
|
connectionString: storageAccountLookup.primaryConnectionString,
|
|
170
173
|
containerName: props.storageContainerName,
|
|
171
174
|
httpsOnly: true,
|
|
172
|
-
start: new Date().toISOString().split('T')[0],
|
|
175
|
+
start: props.sasStart ?? new Date().toISOString().split('T')[0],
|
|
173
176
|
expiry: props.sasExpiry ?? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
|
|
174
177
|
permissions: {
|
|
175
178
|
read: true,
|