A rule for matching events from CloudTrail where Organizations created a new account.
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new CreatedAccountByOrganizationsRule(scope: Construct, id: string, props: BaseRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BaseRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BaseRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where Control Tower created a new account.
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new CreatedAccountRule(scope: Construct, id: string, props: OuRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
OuRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: OuRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where Control Tower deregistered an Organizational Unit.
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new DeregisteredOrganizationalUnitRule(scope: Construct, id: string, props: OuRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
OuRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: OuRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where a guard rail was disabled via Control Tower for an Organizational Unit.
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new DisabledGuardrailRule(scope: Construct, id: string, props: GuardrailRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
GuardrailRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: GuardrailRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where a guardrail was enabled via Control Tower for an Organizational Unit.
import { EnabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new EnabledGuardrailRule(scope: Construct, id: string, props: GuardrailRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
GuardrailRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: GuardrailRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { EnabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
EnabledGuardrailRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { EnabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
EnabledGuardrailRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { EnabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
EnabledGuardrailRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { EnabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
EnabledGuardrailRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where Control Tower registered a new Organizational Unit.
import { RegisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new RegisteredOrganizationalUnitRule(scope: Construct, id: string, props: BaseRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BaseRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BaseRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { RegisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
RegisteredOrganizationalUnitRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { RegisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
RegisteredOrganizationalUnitRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { RegisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
RegisteredOrganizationalUnitRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { RegisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
RegisteredOrganizationalUnitRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where a landing zone was setup via Control Tower.
import { SetupLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new SetupLandingZoneRule(scope: Construct, id: string, props: BaseRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BaseRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BaseRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { SetupLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
SetupLandingZoneRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { SetupLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
SetupLandingZoneRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { SetupLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
SetupLandingZoneRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { SetupLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
SetupLandingZoneRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where a landing zone was updated via Control Tower.
import { UpdatedLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new UpdatedLandingZoneRule(scope: Construct, id: string, props: BaseRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
BaseRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: BaseRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { UpdatedLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedLandingZoneRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { UpdatedLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedLandingZoneRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { UpdatedLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedLandingZoneRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { UpdatedLandingZoneRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedLandingZoneRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
A rule for matching events from CloudTrail where Control Tower updated a managed account.
import { UpdatedManagedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new UpdatedManagedAccountRule(scope: Construct, id: string, props: AccountRuleProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
AccountRuleProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: AccountRuleProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
applyRemovalPolicy |
Apply the given removal policy to this resource. |
addEventPattern |
Adds an event pattern filter to this rule. |
addTarget |
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
public toString(): stringReturns a string representation of this construct.
public applyRemovalPolicy(policy: RemovalPolicy): voidApply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
- Type: aws-cdk-lib.RemovalPolicy
public addEventPattern(eventPattern?: EventPattern): voidAdds an event pattern filter to this rule.
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{ "resources": [ "r1" ], "detail": { "hello": [ 1 ] } }
And addEventPattern is called with the pattern:
{ "resources": [ "r2" ], "detail": { "foo": [ "bar" ] } }
The resulting event pattern will be:
{ "resources": [ "r1", "r2" ], "detail": { "hello": [ 1 ], "foo": [ "bar" ] } }
- Type: aws-cdk-lib.aws_events.EventPattern
public addTarget(target?: IRuleTarget): voidAdds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
- Type: aws-cdk-lib.aws_events.IRuleTarget
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isOwnedResource |
Returns true if the construct was created by CDK, and false otherwise. |
isResource |
Check whether the given construct is a Resource. |
fromEventRuleArn |
Import an existing EventBridge Rule provided an ARN. |
import { UpdatedManagedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedManagedAccountRule.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
import { UpdatedManagedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedManagedAccountRule.isOwnedResource(construct: IConstruct)Returns true if the construct was created by CDK, and false otherwise.
- Type: constructs.IConstruct
import { UpdatedManagedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedManagedAccountRule.isResource(construct: IConstruct)Check whether the given construct is a Resource.
- Type: constructs.IConstruct
import { UpdatedManagedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
UpdatedManagedAccountRule.fromEventRuleArn(scope: Construct, id: string, eventRuleArn: string)Import an existing EventBridge Rule provided an ARN.
- Type: constructs.Construct
The parent creating construct (usually this).
- Type: string
The construct's name.
- Type: string
Event Rule ARN (i.e. arn:aws:events:::rule/MyScheduledRule).
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
env |
aws-cdk-lib.ResourceEnvironment |
The environment this resource belongs to. |
stack |
aws-cdk-lib.Stack |
The stack in which this resource is defined. |
ruleArn |
string |
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
ruleName |
string |
The name event rule. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly env: ResourceEnvironment;- Type: aws-cdk-lib.ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The stack in which this resource is defined.
public readonly ruleArn: string;- Type: string
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
public readonly ruleName: string;- Type: string
The name event rule.
| Name | Type | Description |
|---|---|---|
PROPERTY_INJECTION_ID |
string |
Uniquely identifies this class. |
public readonly PROPERTY_INJECTION_ID: string;- Type: string
Uniquely identifies this class.
import { AccountRuleProps } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
const accountRuleProps: AccountRuleProps = { ... }| Name | Type | Description |
|---|---|---|
description |
string |
A description of the rule's purpose. |
enabled |
boolean |
Indicates whether the rule is enabled. |
eventBus |
aws-cdk-lib.aws_events.IEventBus |
The event bus to associate with this rule. |
eventState |
EventStates |
Which event state should this rule trigger for. |
ruleName |
string |
A name for the rule. |
targets |
aws-cdk-lib.aws_events.IRuleTarget[] |
Targets to invoke when this rule matches an event. |
accountId |
string |
The account ID to match. |
accountName |
string |
The account name to match. |
ouId |
string |
The OU ID to match. |
ouName |
string |
The OU name to match. |
public readonly description: string;- Type: string
- Default: A rule for new account creation in Organizations
A description of the rule's purpose.
public readonly enabled: boolean;- Type: boolean
- Default: true
Indicates whether the rule is enabled.
public readonly eventBus: IEventBus;- Type: aws-cdk-lib.aws_events.IEventBus
- Default: The default event bus.
The event bus to associate with this rule.
public readonly eventState: EventStates;- Type: EventStates
- Default: EventStates.SUCCEEDED
Which event state should this rule trigger for.
public readonly ruleName: string;- Type: string
- Default: AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
A name for the rule.
public readonly targets: IRuleTarget[];- Type: aws-cdk-lib.aws_events.IRuleTarget[]
- Default: No targets.
Targets to invoke when this rule matches an event.
public readonly accountId: string;- Type: string
The account ID to match.
public readonly accountName: string;- Type: string
The account name to match.
public readonly ouId: string;- Type: string
The OU ID to match.
public readonly ouName: string;- Type: string
The OU name to match.
import { BaseRuleProps } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
const baseRuleProps: BaseRuleProps = { ... }| Name | Type | Description |
|---|---|---|
description |
string |
A description of the rule's purpose. |
enabled |
boolean |
Indicates whether the rule is enabled. |
eventBus |
aws-cdk-lib.aws_events.IEventBus |
The event bus to associate with this rule. |
eventState |
EventStates |
Which event state should this rule trigger for. |
ruleName |
string |
A name for the rule. |
targets |
aws-cdk-lib.aws_events.IRuleTarget[] |
Targets to invoke when this rule matches an event. |
public readonly description: string;- Type: string
- Default: A rule for new account creation in Organizations
A description of the rule's purpose.
public readonly enabled: boolean;- Type: boolean
- Default: true
Indicates whether the rule is enabled.
public readonly eventBus: IEventBus;- Type: aws-cdk-lib.aws_events.IEventBus
- Default: The default event bus.
The event bus to associate with this rule.
public readonly eventState: EventStates;- Type: EventStates
- Default: EventStates.SUCCEEDED
Which event state should this rule trigger for.
public readonly ruleName: string;- Type: string
- Default: AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
A name for the rule.
public readonly targets: IRuleTarget[];- Type: aws-cdk-lib.aws_events.IRuleTarget[]
- Default: No targets.
Targets to invoke when this rule matches an event.
import { GuardrailRuleProps } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
const guardrailRuleProps: GuardrailRuleProps = { ... }| Name | Type | Description |
|---|---|---|
description |
string |
A description of the rule's purpose. |
enabled |
boolean |
Indicates whether the rule is enabled. |
eventBus |
aws-cdk-lib.aws_events.IEventBus |
The event bus to associate with this rule. |
eventState |
EventStates |
Which event state should this rule trigger for. |
ruleName |
string |
A name for the rule. |
targets |
aws-cdk-lib.aws_events.IRuleTarget[] |
Targets to invoke when this rule matches an event. |
guardrailBehavior |
GuardrailBehaviors |
The guardrail behavior to match. |
guardrailId |
string |
The guardrail ID to match. |
ouId |
string |
The OU ID to match. |
ouName |
string |
The OU name to match. |
public readonly description: string;- Type: string
- Default: A rule for new account creation in Organizations
A description of the rule's purpose.
public readonly enabled: boolean;- Type: boolean
- Default: true
Indicates whether the rule is enabled.
public readonly eventBus: IEventBus;- Type: aws-cdk-lib.aws_events.IEventBus
- Default: The default event bus.
The event bus to associate with this rule.
public readonly eventState: EventStates;- Type: EventStates
- Default: EventStates.SUCCEEDED
Which event state should this rule trigger for.
public readonly ruleName: string;- Type: string
- Default: AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
A name for the rule.
public readonly targets: IRuleTarget[];- Type: aws-cdk-lib.aws_events.IRuleTarget[]
- Default: No targets.
Targets to invoke when this rule matches an event.
public readonly guardrailBehavior: GuardrailBehaviors;- Type: GuardrailBehaviors
The guardrail behavior to match.
public readonly guardrailId: string;- Type: string
The guardrail ID to match.
public readonly ouId: string;- Type: string
The OU ID to match.
public readonly ouName: string;- Type: string
The OU name to match.
import { OuRuleProps } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
const ouRuleProps: OuRuleProps = { ... }| Name | Type | Description |
|---|---|---|
description |
string |
A description of the rule's purpose. |
enabled |
boolean |
Indicates whether the rule is enabled. |
eventBus |
aws-cdk-lib.aws_events.IEventBus |
The event bus to associate with this rule. |
eventState |
EventStates |
Which event state should this rule trigger for. |
ruleName |
string |
A name for the rule. |
targets |
aws-cdk-lib.aws_events.IRuleTarget[] |
Targets to invoke when this rule matches an event. |
ouId |
string |
The OU ID to match. |
ouName |
string |
The OU name to match. |
public readonly description: string;- Type: string
- Default: A rule for new account creation in Organizations
A description of the rule's purpose.
public readonly enabled: boolean;- Type: boolean
- Default: true
Indicates whether the rule is enabled.
public readonly eventBus: IEventBus;- Type: aws-cdk-lib.aws_events.IEventBus
- Default: The default event bus.
The event bus to associate with this rule.
public readonly eventState: EventStates;- Type: EventStates
- Default: EventStates.SUCCEEDED
Which event state should this rule trigger for.
public readonly ruleName: string;- Type: string
- Default: AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
A name for the rule.
public readonly targets: IRuleTarget[];- Type: aws-cdk-lib.aws_events.IRuleTarget[]
- Default: No targets.
Targets to invoke when this rule matches an event.
public readonly ouId: string;- Type: string
The OU ID to match.
public readonly ouName: string;- Type: string
The OU name to match.
| Name | Description |
|---|---|
SUCCEEDED |
No description. |
FAILED |
No description. |
| Name | Description |
|---|---|
DETECTIVE |
No description. |
PREVENTATIVE |
No description. |