Skip to content

Commit

Permalink
Support for writing policies in Python
Browse files Browse the repository at this point in the history
Adds a new policy SDK for writing policies in Python.
  • Loading branch information
justinvp committed Mar 16, 2020
1 parent e830f85 commit cf1325e
Show file tree
Hide file tree
Showing 34 changed files with 2,746 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT_NAME := policy
SUB_PROJECTS := sdk/nodejs/policy
SUB_PROJECTS := sdk/nodejs/policy sdk/python
include build/common.mk

.PHONY: ensure
Expand Down
10 changes: 5 additions & 5 deletions sdk/nodejs/policy/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,22 +328,22 @@ export interface PolicyCustomTimeouts {
*/
export interface PolicyProviderResource {
/**
* The type of the resource provider.
* The type of the provider resource.
*/
type: string;

/**
* The properties of the resource provider.
* The properties of the provider resource.
*/
props: Record<string, any>;

/**
* The URN of the resource provider.
* The URN of the provider resource.
*/
urn: string;

/**
* The name of the resource provider.
* The name of the provider resource.
*/
name: string;
}
Expand Down Expand Up @@ -419,7 +419,7 @@ export interface StackValidationPolicy extends Policy {
export type StackValidation = (args: StackValidationArgs, reportViolation: ReportViolation) => Promise<void> | void;

/**
* StackValidationArgs is the argument bag passed to a resource validation.
* StackValidationArgs is the argument bag passed to a stack validation.
*/
export interface StackValidationArgs {
/**
Expand Down
6 changes: 6 additions & 0 deletions sdk/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/
.mypy_cache/
*.pyc
/env/
/*.egg-info
.venv/
Loading

0 comments on commit cf1325e

Please sign in to comment.