Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Last active April 14, 2019 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskuech/790ada2764137d54fd430f070c798a36 to your computer and use it in GitHub Desktop.
Save chriskuech/790ada2764137d54fd430f070c798a36 to your computer and use it in GitHub Desktop.
class Cluster {
[ValidatePattern("^[A-z]+$")]
[string] $Service
[ValidateSet("TEST", "STAGE", "CANARY", "PROD")]
[string] $FlightingRing
[ValidateSet("EastUS", "WestUS", "NorthEurope")]
[string] $Region
[ValidateRange(0, 255)]
[int] $Index
}
[Cluster]@{
Service = "MyService"
FlightingRing = "PROD"
Region = "EastUS"
Index = 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment