-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created extension of basic resource dependency, defining a dependency…
… on KSK for DNSSEC.
- Loading branch information
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Sagittaras.CDK.Testing.Resources; | ||
|
||
namespace Sagittaras.CDK.Testing.Route53; | ||
|
||
/// <summary> | ||
/// Class defining DNS SEC dependency on Key Signing Key. | ||
/// </summary> | ||
public class DnsSecDependency : ResourceDependency | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="kskName">Identification of KSK by its name.</param> | ||
public DnsSecDependency(string kskName) | ||
{ | ||
With(new KeySigningKeyAssertion | ||
{ | ||
Properties = new KeySigningKeyProperties | ||
{ | ||
Name = kskName | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters