Skip to content

Commit 8199422

Browse files
authored
LAMBJ-150 Invalid PhysicalResourceId Error (#480)
1 parent bab91ae commit 8199422

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.github/releases/v0.9.2.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Bug Fixes
2+
3+
- Fixes an issue where custom resources would sometimes return an 'Invalid PhysicalResourceId' error.

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"markdown.extension.toc.levels": "2..6",
1010
"editor.semanticHighlighting.enabled": true,
1111
"csharp.semanticHighlighting.enabled": true,
12+
"files.exclude": {
13+
"**/.nuget": true,
14+
},
1215
"yaml.customTags": [
1316
"!And",
1417
"!And sequence",

src/CustomResource/CustomResourceRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class CustomResourceRequest
5858
/// for the requested custom resource.
5959
/// </summary>
6060
/// <value>The physical resource ID of the requested custom resource.</value>
61-
public virtual string PhysicalResourceId { get; set; } = string.Empty;
61+
public virtual string? PhysicalResourceId { get; set; }
6262

6363
/// <summary>
6464
/// Gets or sets the extra properties that appear when deserializing a request to this type.

src/CustomResource/CustomResourceResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class CustomResourceResponse<TResourceOutputData>
2020
/// Gets or sets the physical resource ID of the requested custom resource.
2121
/// </summary>
2222
/// <value>The physical resource ID of the requested custom resource.</value>
23-
public string PhysicalResourceId { get; set; } = string.Empty;
23+
public string? PhysicalResourceId { get; set; }
2424

2525
/// <summary>
2626
/// Gets or sets the ID of the CloudFormation stack the requested custom resource belongs to.

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"publicReleaseRefSpec": [
55
"^refs/tags/v\\d\\.\\d"
66
]

0 commit comments

Comments
 (0)