@gradientedge/cdk-utils-azure 2.53.0 → 2.53.1
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.
- package/dist/src/services/eventgrid/main.d.ts +10 -1
- package/dist/src/services/eventgrid/main.js +18 -1
- package/dist/src/services/eventgrid/types.d.ts +8 -1
- package/dist/src/services/storage/main.d.ts +17 -1
- package/dist/src/services/storage/main.js +28 -1
- package/dist/src/services/storage/types.d.ts +15 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetSystemTopicResult, SystemTopic } from '@pulumi/azure-native/eventgrid/index.js';
|
|
2
2
|
import { Output, ResourceOptions } from '@pulumi/pulumi';
|
|
3
3
|
import { CommonAzureConstruct } from '../../common/index.js';
|
|
4
|
-
import { EventgridEventSubscriptionProps, EventgridSystemTopicEventSubscriptionProps, EventgridSystemTopicProps, EventgridTopicProps, ResolveEventgridTopicProps } from './types.js';
|
|
4
|
+
import { EventgridEventSubscriptionProps, EventgridSystemTopicEventSubscriptionProps, EventgridSystemTopicProps, EventgridTopicProps, ResolveEventgridTopicProps, ResolveEventgridSystemTopicProps } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Provides operations on Azure Event Grid using Pulumi
|
|
7
7
|
* - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
|
|
@@ -67,4 +67,13 @@ export declare class AzureEventgridManager {
|
|
|
67
67
|
* @see [Pulumi Azure Native Event Grid System Topic Event Subscription]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/eventgrid/systemtopiceventsubscription/}
|
|
68
68
|
*/
|
|
69
69
|
createEventgridSystemTopicEventSubscription(id: string, scope: CommonAzureConstruct, props: EventgridSystemTopicEventSubscriptionProps, systemTopic: SystemTopic | Output<GetSystemTopicResult>, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/eventgrid/systemTopicEventSubscription.js").SystemTopicEventSubscription;
|
|
70
|
+
/**
|
|
71
|
+
* @summary Method to resolve an existing eventgrid system topic
|
|
72
|
+
* @param id scoped id of the resource
|
|
73
|
+
* @param scope scope in which this resource is defined
|
|
74
|
+
* @param props eventgrid system topic properties
|
|
75
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
76
|
+
* @see [Pulumi Azure Native Event Grid System Topic Lookup]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/eventgrid/getsystemtopic/}
|
|
77
|
+
*/
|
|
78
|
+
resolveEventgridSystemTopic(id: string, scope: CommonAzureConstruct, props: ResolveEventgridSystemTopicProps, resourceOptions?: ResourceOptions): Output<GetSystemTopicResult>;
|
|
70
79
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataResidencyBoundary, EventDeliverySchema, EventSubscription, getTopicOutput, SystemTopic, SystemTopicEventSubscription, TlsVersion, Topic, } from '@pulumi/azure-native/eventgrid/index.js';
|
|
1
|
+
import { DataResidencyBoundary, EventDeliverySchema, EventSubscription, getTopicOutput, getSystemTopicOutput, SystemTopic, SystemTopicEventSubscription, TlsVersion, Topic, } from '@pulumi/azure-native/eventgrid/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Provides operations on Azure Event Grid using Pulumi
|
|
4
4
|
* - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
|
|
@@ -126,4 +126,21 @@ export class AzureEventgridManager {
|
|
|
126
126
|
resourceGroupName,
|
|
127
127
|
}, { parent: scope, ...resourceOptions });
|
|
128
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* @summary Method to resolve an existing eventgrid system topic
|
|
131
|
+
* @param id scoped id of the resource
|
|
132
|
+
* @param scope scope in which this resource is defined
|
|
133
|
+
* @param props eventgrid system topic properties
|
|
134
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
135
|
+
* @see [Pulumi Azure Native Event Grid System Topic Lookup]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/eventgrid/getsystemtopic/}
|
|
136
|
+
*/
|
|
137
|
+
resolveEventgridSystemTopic(id, scope, props, resourceOptions) {
|
|
138
|
+
if (!props)
|
|
139
|
+
throw new Error(`Props undefined for ${id}`);
|
|
140
|
+
return getSystemTopicOutput({
|
|
141
|
+
systemTopicName: props.systemTopicName ??
|
|
142
|
+
scope.resourceNameFormatter.format(props.systemTopicName, scope.props.resourceNameOptions?.eventGridSystemTopic),
|
|
143
|
+
resourceGroupName: props.resourceGroupName ?? scope.resourceNameFormatter.format(scope.props.resourceGroupName),
|
|
144
|
+
}, { parent: scope, ...resourceOptions });
|
|
145
|
+
}
|
|
129
146
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventSubscriptionArgs, GetTopicOutputArgs, SystemTopicArgs, SystemTopicEventSubscriptionArgs, TopicArgs } from '@pulumi/azure-native/eventgrid/index.js';
|
|
1
|
+
import { EventSubscriptionArgs, GetSystemTopicOutputArgs, GetTopicOutputArgs, SystemTopicArgs, SystemTopicEventSubscriptionArgs, TopicArgs } from '@pulumi/azure-native/eventgrid/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Properties for creating an EventGrid topic
|
|
4
4
|
* @see [Pulumi Azure Native Event Grid Topic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/eventgrid/topic/}
|
|
@@ -34,3 +34,10 @@ export interface EventgridSystemTopicEventSubscriptionProps extends SystemTopicE
|
|
|
34
34
|
*/
|
|
35
35
|
export interface ResolveEventgridTopicProps extends GetTopicOutputArgs {
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Properties for resolving an existing EventGrid system topic
|
|
39
|
+
* @see [Pulumi Azure Native Event Grid System Topic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/eventgrid/systemtopic/}
|
|
40
|
+
* @category Interface
|
|
41
|
+
*/
|
|
42
|
+
export interface ResolveEventgridSystemTopicProps extends GetSystemTopicOutputArgs {
|
|
43
|
+
}
|
|
@@ -2,7 +2,7 @@ import { StorageAccount } from '@pulumi/azure-native/storage/index.js';
|
|
|
2
2
|
import * as pulumi from '@pulumi/pulumi';
|
|
3
3
|
import { ResourceOptions } from '@pulumi/pulumi';
|
|
4
4
|
import { CommonAzureConstruct } from '../../common/index.js';
|
|
5
|
-
import { ContainerSasTokenProps, ManagementPolicyProps, StorageAccountProps, StorageBlobProps, StorageContainerProps, StorageTableProps } from './types.js';
|
|
5
|
+
import { ContainerSasTokenProps, ManagementPolicyProps, ResolveStorageAccountProps, ResolveStorageContainerProps, StorageAccountProps, StorageBlobProps, StorageContainerProps, StorageTableProps } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Provides operations on Azure Storage using Pulumi
|
|
8
8
|
* - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
|
|
@@ -85,4 +85,20 @@ export declare class AzureStorageManager {
|
|
|
85
85
|
* @see [Pulumi Azure Native Storage Table]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/table/}
|
|
86
86
|
*/
|
|
87
87
|
createTable(id: string, scope: CommonAzureConstruct, props: StorageTableProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/storage/table.js").Table;
|
|
88
|
+
/**
|
|
89
|
+
* @param id scoped id of the resource
|
|
90
|
+
* @param scope scope in which this resource is defined
|
|
91
|
+
* @param props storage account properties
|
|
92
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
93
|
+
* @see [Pulumi Azure Native Storage Table]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/table/}
|
|
94
|
+
*/
|
|
95
|
+
resolveStorageAccount(id: string, scope: CommonAzureConstruct, props: ResolveStorageAccountProps, resourceOptions?: ResourceOptions): pulumi.Output<import("@pulumi/azure-native/storage/getStorageAccount.js").GetStorageAccountResult>;
|
|
96
|
+
/**
|
|
97
|
+
* @param id scoped id of the resource
|
|
98
|
+
* @param scope scope in which this resource is defined
|
|
99
|
+
* @param props storage account container properties
|
|
100
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
101
|
+
|
|
102
|
+
*/
|
|
103
|
+
resolveStorageContainer(id: string, scope: CommonAzureConstruct, props: ResolveStorageContainerProps, resourceOptions?: ResourceOptions): pulumi.Output<import("@pulumi/azure-native/storage/getBlobContainer.js").GetBlobContainerResult>;
|
|
88
104
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Blob, BlobContainer, BlobServiceProperties, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, MinimumTlsVersion, Permissions, PublicAccess, Services, SignedResourceTypes, SkuName, StorageAccount, Table, } from '@pulumi/azure-native/storage/index.js';
|
|
1
|
+
import { Blob, BlobContainer, BlobServiceProperties, getStorageAccountOutput, getBlobContainerOutput, HttpProtocol, Kind, listStorageAccountSAS, ManagementPolicy, MinimumTlsVersion, Permissions, PublicAccess, Services, SignedResourceTypes, SkuName, StorageAccount, Table, } from '@pulumi/azure-native/storage/index.js';
|
|
2
2
|
import * as pulumi from '@pulumi/pulumi';
|
|
3
3
|
/**
|
|
4
4
|
* Provides operations on Azure Storage using Pulumi
|
|
@@ -169,4 +169,31 @@ export class AzureStorageManager {
|
|
|
169
169
|
throw new Error(`Props undefined for ${id}`);
|
|
170
170
|
return new Table(`${id}`, props, { parent: scope, ...resourceOptions });
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @param id scoped id of the resource
|
|
174
|
+
* @param scope scope in which this resource is defined
|
|
175
|
+
* @param props storage account properties
|
|
176
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
177
|
+
* @see [Pulumi Azure Native Storage Table]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/table/}
|
|
178
|
+
*/
|
|
179
|
+
resolveStorageAccount(id, scope, props, resourceOptions) {
|
|
180
|
+
return getStorageAccountOutput({
|
|
181
|
+
accountName: scope.resourceNameFormatter.format(props.accountName?.toString(), scope.props.resourceNameOptions?.storageAccount),
|
|
182
|
+
resourceGroupName: props.resourceGroupName ?? scope.resourceNameFormatter.format(scope.props.resourceGroupName),
|
|
183
|
+
}, { parent: scope, ...resourceOptions });
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @param id scoped id of the resource
|
|
187
|
+
* @param scope scope in which this resource is defined
|
|
188
|
+
* @param props storage account container properties
|
|
189
|
+
* @param resourceOptions Optional settings to control resource behaviour
|
|
190
|
+
|
|
191
|
+
*/
|
|
192
|
+
resolveStorageContainer(id, scope, props, resourceOptions) {
|
|
193
|
+
return getBlobContainerOutput({
|
|
194
|
+
accountName: scope.resourceNameFormatter.format(props.accountName?.toString(), scope.props.resourceNameOptions?.storageAccount),
|
|
195
|
+
containerName: props.containerName,
|
|
196
|
+
resourceGroupName: props.resourceGroupName ?? scope.resourceNameFormatter.format(scope.props.resourceGroupName),
|
|
197
|
+
}, { parent: scope, ...resourceOptions });
|
|
198
|
+
}
|
|
172
199
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlobArgs, BlobContainerArgs, BlobServicePropertiesArgs, ListStorageAccountSASArgs, ManagementPolicyArgs, StorageAccountArgs, TableArgs } from '@pulumi/azure-native/storage/index.js';
|
|
1
|
+
import { BlobArgs, BlobContainerArgs, BlobServicePropertiesArgs, GetStorageAccountOutputArgs, GetBlobContainerOutputArgs, ListStorageAccountSASArgs, ManagementPolicyArgs, StorageAccountArgs, TableArgs } from '@pulumi/azure-native/storage/index.js';
|
|
2
2
|
import { BaseAzureConfigProps } from '../../types/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Properties for creating an Azure Storage account
|
|
@@ -58,3 +58,17 @@ export interface ContainerSasTokenProps extends ListStorageAccountSASArgs {
|
|
|
58
58
|
/** SAS expiry date in 'YYYY-MM-DD' format; defaults to 7 days from now */
|
|
59
59
|
expiry?: string;
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Properties for resolving an existing Storage account
|
|
63
|
+
* @see [Pulumi Azure Native Event Grid Topic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/getstorageaccount/}
|
|
64
|
+
* @category Interface
|
|
65
|
+
*/
|
|
66
|
+
export interface ResolveStorageAccountProps extends GetStorageAccountOutputArgs {
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Properties for resolving an existing Storage account container
|
|
70
|
+
* @see [Pulumi Azure Native Event Grid Topic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/getstorageaccount/}
|
|
71
|
+
* @category Interface
|
|
72
|
+
*/
|
|
73
|
+
export interface ResolveStorageContainerProps extends GetBlobContainerOutputArgs {
|
|
74
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils-azure",
|
|
3
|
-
"version": "2.53.
|
|
3
|
+
"version": "2.53.1",
|
|
4
4
|
"description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@pulumi/archive": "0.5.0",
|
|
18
18
|
"@pulumi/azure-native": "3.19.0",
|
|
19
19
|
"@pulumi/azuread": "6.9.1",
|
|
20
|
-
"@pulumi/pulumi": "3.
|
|
20
|
+
"@pulumi/pulumi": "3.246.0",
|
|
21
21
|
"@types/lodash": "4.17.24",
|
|
22
22
|
"app-root-path": "3.1.0",
|
|
23
23
|
"lodash": "4.18.1",
|