-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draft of get, read and refactor to readOrRegisterResource #328
Conversation
bd3b265
to
17d2a5f
Compare
…ropagation and ValidatedResult
…y for Decoder[R <: Resource]
…source family via ReadResource call
|
||
final case class CustomResourceOptions private[internal] ( | ||
common: CommonResourceOptions, | ||
provider: Option[ProviderResource], | ||
deleteBeforeReplace: Boolean, | ||
additionalSecretOutputs: List[String], | ||
importId: Option[NonEmptyString] // TODO should this be Id? | ||
importId: Option[ResourceId] // TODO should this be Id? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the todo note appears to be fixed now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
importId: Option[ResourceId] // TODO should this be Id? | |
importId: Option[ResourceId] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it isn't really, resource options require a rewrite
@@ -81,13 +95,13 @@ trait CustomResourceOptionsFactory: | |||
customTimeouts: String | NotProvided = NotProvided, // CustomTimeouts // TODO | |||
// resourceTransformations: List[ResourceTransformation], // TODO | |||
// aliases: List[Output[Alias]], // TODO | |||
urn: String | NotProvided = NotProvided, // TODO better type | |||
urn: URN | NotProvided = NotProvided, // TODO better type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the todo appear to be fixed now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urn: URN | NotProvided = NotProvided, // TODO better type | |
urn: URN | NotProvided = NotProvided, |
* | ||
* If you want to understand this regex better head to: https://regex101.com/r/o2QWJ3/1 | ||
* | ||
* Now hear me out, this regex is a bit complicated, but it's not that bad. Let's break it down. We have to adhere to this grammar: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like your humor, "not that bad regex" is dark, but still funny ;)
Don't worry, one day we'll write a proper parser :)
No description provided.