You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to propose a framework for organizations to set default values to Construct Properties such as BucketProps.
Key Components:
IPropertyInjector - has constructFqn and and inject function that takes in the original BucketProps and returns a BucketProps.
PropertyInjectors - A collection of IPropertyInjectors. There is only one IPropertyInjector for a Construct. We can attach PropertyInjectors to any Construct, but the typical use case is to set PropertyInjectors on App, Stage, or Stack.
applyInjectors - Constructs such as Bucket will call applyInjectors in their constructors to get the new BucketProps. It calls findInjectorsFromConstruct to find the correct injector to apply to the properties.
findInjectorsFromConstruct - This starts from the Construct's parent Node and walk up the Tree to find an IPropertyInjector applicable to this Construct.
Constructs that support Property Injection will need a FQN and call applyInjectors.
With this PropertyInjector Framework, AWS and SDO Security orgs can set default properties for builders that meet their security bars.
API bar raiser assigned (ping us at #aws-cdk-rfcs if needed)
Kick off meeting
RFC pull request submitted (label: status/review)
Community reach out (via Slack and/or Twitter)
API signed-off (label status/api-approved applied to pull request)
Final comments period (label: status/final-comments-period)
Approved and merged (label: status/approved)
Execution plan submitted (label: status/planning)
Plan approved and merged (label: status/implementing)
Implementation complete (label: status/done)
Author is responsible to progress the RFC according to this checklist, and
apply the relevant labels to this issue so that the RFC table in README gets
updated.
The text was updated successfully, but these errors were encountered:
Description
We would like to propose a framework for organizations to set default values to Construct Properties such as BucketProps.
Key Components:
constructFqn
and andinject
function that takes in the original BucketProps and returns a BucketProps.IPropertyInjectors
. There is only oneIPropertyInjector
for a Construct. We can attach PropertyInjectors to any Construct, but the typical use case is to setPropertyInjectors
onApp
,Stage
, orStack
.Bucket
will call applyInjectors in their constructors to get the newBucketProps
. It callsfindInjectorsFromConstruct
to find the correct injector to apply to the properties.IPropertyInjector
applicable to this Construct.With this PropertyInjector Framework, AWS and SDO Security orgs can set default properties for builders that meet their security bars.
Roles
Workflow
status/proposed
)status/review
)status/api-approved
applied to pull request)status/final-comments-period
)status/approved
)status/planning
)status/implementing
)status/done
)The text was updated successfully, but these errors were encountered: