@gradientedge/cdk-utils 9.86.0 → 9.87.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.
|
@@ -65,17 +65,12 @@ export class AzureEventgridManager {
|
|
|
65
65
|
resolveEventgridTopic(id, scope, props) {
|
|
66
66
|
if (!props)
|
|
67
67
|
throw `Props undefined for ${id}`;
|
|
68
|
-
const resourceGroup = new DataAzurermResourceGroup(scope, `${id}-et-rg`, {
|
|
69
|
-
name: scope.props.resourceGroupName
|
|
70
|
-
? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
|
|
71
|
-
: `${props.resourceGroupName}`,
|
|
72
|
-
});
|
|
73
|
-
if (!resourceGroup)
|
|
74
|
-
throw `Resource group undefined for ${id}`;
|
|
75
68
|
const eventgridTopic = new DataAzurermEventgridTopic(scope, `${id}-et`, {
|
|
76
69
|
...props,
|
|
77
70
|
name: scope.resourceNameFormatter.format(props.name, scope.props.resourceNameOptions?.eventGridTopic),
|
|
78
|
-
resourceGroupName:
|
|
71
|
+
resourceGroupName: scope.props.resourceGroupName
|
|
72
|
+
? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
|
|
73
|
+
: `${props.resourceGroupName}`,
|
|
79
74
|
});
|
|
80
75
|
createAzureTfOutput(`${id}-eventgridTopicName`, scope, eventgridTopic.name);
|
|
81
76
|
createAzureTfOutput(`${id}-eventgridTopicFriendlyUniqueId`, scope, eventgridTopic.friendlyUniqueId);
|
package/package.json
CHANGED
|
@@ -80,18 +80,12 @@ export class AzureEventgridManager {
|
|
|
80
80
|
public resolveEventgridTopic(id: string, scope: CommonAzureConstruct, props: DataAzurermEventgridTopicConfig) {
|
|
81
81
|
if (!props) throw `Props undefined for ${id}`
|
|
82
82
|
|
|
83
|
-
const resourceGroup = new DataAzurermResourceGroup(scope, `${id}-et-rg`, {
|
|
84
|
-
name: scope.props.resourceGroupName
|
|
85
|
-
? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
|
|
86
|
-
: `${props.resourceGroupName}`,
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
if (!resourceGroup) throw `Resource group undefined for ${id}`
|
|
90
|
-
|
|
91
83
|
const eventgridTopic = new DataAzurermEventgridTopic(scope, `${id}-et`, {
|
|
92
84
|
...props,
|
|
93
85
|
name: scope.resourceNameFormatter.format(props.name, scope.props.resourceNameOptions?.eventGridTopic),
|
|
94
|
-
resourceGroupName:
|
|
86
|
+
resourceGroupName: scope.props.resourceGroupName
|
|
87
|
+
? scope.resourceNameFormatter.format(scope.props.resourceGroupName)
|
|
88
|
+
: `${props.resourceGroupName}`,
|
|
95
89
|
})
|
|
96
90
|
|
|
97
91
|
createAzureTfOutput(`${id}-eventgridTopicName`, scope, eventgridTopic.name)
|