Skip to content
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

Add policy as tag=value on pms #7

Open
mariotoffia opened this issue May 5, 2020 · 0 comments
Open

Add policy as tag=value on pms #7

mariotoffia opened this issue May 5, 2020 · 0 comments

Comments

@mariotoffia
Copy link
Owner

mariotoffia commented May 5, 2020

So one may have the ability to write:

type MyStruct struct  {
  MyField string `pms:"test, expires:2021-02-17T08:10:12.000Z"`
}

This would generate a a policy for the parameter test as follows:

{
   "Type":"Expiration",
   "Version":"1.0",
   "Attributes":{
      "Timestamp":"2018-12-02T21:34:33.000Z"
   }
}

This would apply for any standard policy such as:

  • ExpirationNotification
  • NoChangeNotification

Since Policys are only for advanced parameters this would yield automatically that the parameter is converted as advanced even if the default tier is set as standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant