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

Create new policies with a construct for SCP, AI OptOut, Back and Tag policies #717

Open
pflorek opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pflorek
Copy link
Member

pflorek commented Nov 3, 2022

It's not comfortable to pass the stringified JSON as to the Policy, let's have constructs for each policy type.

const policy = new Policy(stack, "Policy", {
  content: '{\n"tags":{\n"CostCenter":{\n"tag_key":{\n"@@assign":"CostCenter"\n}\n}\n}\n}',
  description: "Defines the CostCenter tag key",
  policyName: "CostCenterTag",
  policyType: PolicyType.TAG_POLICY,
});
@pflorek pflorek added the enhancement New feature or request label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant