@renovosolutions/cdk-library-control-tower-lifecycle-events
Version:
An AWS CDK library that provides event patterns that match common Control Tower lifecycle events.
1,218 lines (753 loc) • 144 kB
Markdown
# API Reference <a name="API Reference" id="api-reference"></a>
## Constructs <a name="Constructs" id="Constructs"></a>
### CreatedAccountByOrganizationsRule <a name="CreatedAccountByOrganizationsRule" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule"></a>
A rule for matching events from CloudTrail where Organizations created a new account.
#### Initializers <a name="Initializers" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer"></a>
```typescript
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new CreatedAccountByOrganizationsRule(scope: Construct, id: string, props: BaseRuleProps)
```
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.props">props</a></code> | <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.BaseRuleProps">BaseRuleProps</a></code> | *No description.* |
---
##### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.scope"></a>
- *Type:* constructs.Construct
---
##### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.id"></a>
- *Type:* string
---
##### `props`<sup>Required</sup> <a name="props" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.Initializer.parameter.props"></a>
- *Type:* <a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.BaseRuleProps">BaseRuleProps</a>
---
#### Methods <a name="Methods" id="Methods"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.toString">toString</a></code> | Returns a string representation of this construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.applyRemovalPolicy">applyRemovalPolicy</a></code> | Apply the given removal policy to this resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addEventPattern">addEventPattern</a></code> | Adds an event pattern filter to this rule. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addTarget">addTarget</a></code> | Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
---
##### `toString` <a name="toString" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.toString"></a>
```typescript
public toString(): string
```
Returns a string representation of this construct.
##### `applyRemovalPolicy` <a name="applyRemovalPolicy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.applyRemovalPolicy"></a>
```typescript
public applyRemovalPolicy(policy: RemovalPolicy): void
```
Apply 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`).
###### `policy`<sup>Required</sup> <a name="policy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.applyRemovalPolicy.parameter.policy"></a>
- *Type:* aws-cdk-lib.RemovalPolicy
---
##### `addEventPattern` <a name="addEventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addEventPattern"></a>
```typescript
public addEventPattern(eventPattern?: EventPattern): void
```
Adds 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" ]
}
}
###### `eventPattern`<sup>Optional</sup> <a name="eventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addEventPattern.parameter.eventPattern"></a>
- *Type:* aws-cdk-lib.aws_events.EventPattern
---
##### `addTarget` <a name="addTarget" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addTarget"></a>
```typescript
public addTarget(target?: IRuleTarget): void
```
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
###### `target`<sup>Optional</sup> <a name="target" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.addTarget.parameter.target"></a>
- *Type:* aws-cdk-lib.aws_events.IRuleTarget
---
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isOwnedResource">isOwnedResource</a></code> | Returns true if the construct was created by CDK, and false otherwise. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isResource">isResource</a></code> | Check whether the given construct is a Resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.fromEventRuleArn">fromEventRuleArn</a></code> | Import an existing EventBridge Rule provided an ARN. |
---
##### ~~`isConstruct`~~ <a name="isConstruct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isConstruct"></a>
```typescript
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.isConstruct(x: any)
```
Checks if `x` is a construct.
###### `x`<sup>Required</sup> <a name="x" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isConstruct.parameter.x"></a>
- *Type:* any
Any object.
---
##### `isOwnedResource` <a name="isOwnedResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isOwnedResource"></a>
```typescript
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.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isOwnedResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `isResource` <a name="isResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isResource"></a>
```typescript
import { CreatedAccountByOrganizationsRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountByOrganizationsRule.isResource(construct: IConstruct)
```
Check whether the given construct is a Resource.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.isResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `fromEventRuleArn` <a name="fromEventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.fromEventRuleArn"></a>
```typescript
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.
###### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.fromEventRuleArn.parameter.scope"></a>
- *Type:* constructs.Construct
The parent creating construct (usually `this`).
---
###### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.fromEventRuleArn.parameter.id"></a>
- *Type:* string
The construct's name.
---
###### `eventRuleArn`<sup>Required</sup> <a name="eventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.fromEventRuleArn.parameter.eventRuleArn"></a>
- *Type:* string
Event Rule ARN (i.e. arn:aws:events:<region>:<account-id>:rule/MyScheduledRule).
---
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.env">env</a></code> | <code>aws-cdk-lib.ResourceEnvironment</code> | The environment this resource belongs to. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.stack">stack</a></code> | <code>aws-cdk-lib.Stack</code> | The stack in which this resource is defined. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.ruleArn">ruleArn</a></code> | <code>string</code> | The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.ruleName">ruleName</a></code> | <code>string</code> | The name event rule. |
---
##### `node`<sup>Required</sup> <a name="node" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.node"></a>
```typescript
public readonly node: Node;
```
- *Type:* constructs.Node
The tree node.
---
##### `env`<sup>Required</sup> <a name="env" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.env"></a>
```typescript
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.
---
##### `stack`<sup>Required</sup> <a name="stack" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.stack"></a>
```typescript
public readonly stack: Stack;
```
- *Type:* aws-cdk-lib.Stack
The stack in which this resource is defined.
---
##### `ruleArn`<sup>Required</sup> <a name="ruleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.ruleArn"></a>
```typescript
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.
---
##### `ruleName`<sup>Required</sup> <a name="ruleName" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.ruleName"></a>
```typescript
public readonly ruleName: string;
```
- *Type:* string
The name event rule.
---
#### Constants <a name="Constants" id="Constants"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.PROPERTY_INJECTION_ID">PROPERTY_INJECTION_ID</a></code> | <code>string</code> | Uniquely identifies this class. |
---
##### `PROPERTY_INJECTION_ID`<sup>Required</sup> <a name="PROPERTY_INJECTION_ID" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountByOrganizationsRule.property.PROPERTY_INJECTION_ID"></a>
```typescript
public readonly PROPERTY_INJECTION_ID: string;
```
- *Type:* string
Uniquely identifies this class.
---
### CreatedAccountRule <a name="CreatedAccountRule" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule"></a>
A rule for matching events from CloudTrail where Control Tower created a new account.
#### Initializers <a name="Initializers" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer"></a>
```typescript
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new CreatedAccountRule(scope: Construct, id: string, props: OuRuleProps)
```
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.props">props</a></code> | <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.OuRuleProps">OuRuleProps</a></code> | *No description.* |
---
##### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.scope"></a>
- *Type:* constructs.Construct
---
##### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.id"></a>
- *Type:* string
---
##### `props`<sup>Required</sup> <a name="props" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.Initializer.parameter.props"></a>
- *Type:* <a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.OuRuleProps">OuRuleProps</a>
---
#### Methods <a name="Methods" id="Methods"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.toString">toString</a></code> | Returns a string representation of this construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.applyRemovalPolicy">applyRemovalPolicy</a></code> | Apply the given removal policy to this resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addEventPattern">addEventPattern</a></code> | Adds an event pattern filter to this rule. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addTarget">addTarget</a></code> | Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
---
##### `toString` <a name="toString" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.toString"></a>
```typescript
public toString(): string
```
Returns a string representation of this construct.
##### `applyRemovalPolicy` <a name="applyRemovalPolicy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.applyRemovalPolicy"></a>
```typescript
public applyRemovalPolicy(policy: RemovalPolicy): void
```
Apply 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`).
###### `policy`<sup>Required</sup> <a name="policy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.applyRemovalPolicy.parameter.policy"></a>
- *Type:* aws-cdk-lib.RemovalPolicy
---
##### `addEventPattern` <a name="addEventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addEventPattern"></a>
```typescript
public addEventPattern(eventPattern?: EventPattern): void
```
Adds 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" ]
}
}
###### `eventPattern`<sup>Optional</sup> <a name="eventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addEventPattern.parameter.eventPattern"></a>
- *Type:* aws-cdk-lib.aws_events.EventPattern
---
##### `addTarget` <a name="addTarget" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addTarget"></a>
```typescript
public addTarget(target?: IRuleTarget): void
```
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
###### `target`<sup>Optional</sup> <a name="target" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.addTarget.parameter.target"></a>
- *Type:* aws-cdk-lib.aws_events.IRuleTarget
---
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isOwnedResource">isOwnedResource</a></code> | Returns true if the construct was created by CDK, and false otherwise. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isResource">isResource</a></code> | Check whether the given construct is a Resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.fromEventRuleArn">fromEventRuleArn</a></code> | Import an existing EventBridge Rule provided an ARN. |
---
##### ~~`isConstruct`~~ <a name="isConstruct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isConstruct"></a>
```typescript
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.isConstruct(x: any)
```
Checks if `x` is a construct.
###### `x`<sup>Required</sup> <a name="x" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isConstruct.parameter.x"></a>
- *Type:* any
Any object.
---
##### `isOwnedResource` <a name="isOwnedResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isOwnedResource"></a>
```typescript
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.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isOwnedResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `isResource` <a name="isResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isResource"></a>
```typescript
import { CreatedAccountRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
CreatedAccountRule.isResource(construct: IConstruct)
```
Check whether the given construct is a Resource.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.isResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `fromEventRuleArn` <a name="fromEventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.fromEventRuleArn"></a>
```typescript
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.
###### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.fromEventRuleArn.parameter.scope"></a>
- *Type:* constructs.Construct
The parent creating construct (usually `this`).
---
###### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.fromEventRuleArn.parameter.id"></a>
- *Type:* string
The construct's name.
---
###### `eventRuleArn`<sup>Required</sup> <a name="eventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.fromEventRuleArn.parameter.eventRuleArn"></a>
- *Type:* string
Event Rule ARN (i.e. arn:aws:events:<region>:<account-id>:rule/MyScheduledRule).
---
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.env">env</a></code> | <code>aws-cdk-lib.ResourceEnvironment</code> | The environment this resource belongs to. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.stack">stack</a></code> | <code>aws-cdk-lib.Stack</code> | The stack in which this resource is defined. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.ruleArn">ruleArn</a></code> | <code>string</code> | The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.ruleName">ruleName</a></code> | <code>string</code> | The name event rule. |
---
##### `node`<sup>Required</sup> <a name="node" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.node"></a>
```typescript
public readonly node: Node;
```
- *Type:* constructs.Node
The tree node.
---
##### `env`<sup>Required</sup> <a name="env" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.env"></a>
```typescript
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.
---
##### `stack`<sup>Required</sup> <a name="stack" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.stack"></a>
```typescript
public readonly stack: Stack;
```
- *Type:* aws-cdk-lib.Stack
The stack in which this resource is defined.
---
##### `ruleArn`<sup>Required</sup> <a name="ruleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.ruleArn"></a>
```typescript
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.
---
##### `ruleName`<sup>Required</sup> <a name="ruleName" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.ruleName"></a>
```typescript
public readonly ruleName: string;
```
- *Type:* string
The name event rule.
---
#### Constants <a name="Constants" id="Constants"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.PROPERTY_INJECTION_ID">PROPERTY_INJECTION_ID</a></code> | <code>string</code> | Uniquely identifies this class. |
---
##### `PROPERTY_INJECTION_ID`<sup>Required</sup> <a name="PROPERTY_INJECTION_ID" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.CreatedAccountRule.property.PROPERTY_INJECTION_ID"></a>
```typescript
public readonly PROPERTY_INJECTION_ID: string;
```
- *Type:* string
Uniquely identifies this class.
---
### DeregisteredOrganizationalUnitRule <a name="DeregisteredOrganizationalUnitRule" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule"></a>
A rule for matching events from CloudTrail where Control Tower deregistered an Organizational Unit.
#### Initializers <a name="Initializers" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer"></a>
```typescript
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new DeregisteredOrganizationalUnitRule(scope: Construct, id: string, props: OuRuleProps)
```
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.props">props</a></code> | <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.OuRuleProps">OuRuleProps</a></code> | *No description.* |
---
##### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.scope"></a>
- *Type:* constructs.Construct
---
##### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.id"></a>
- *Type:* string
---
##### `props`<sup>Required</sup> <a name="props" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.Initializer.parameter.props"></a>
- *Type:* <a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.OuRuleProps">OuRuleProps</a>
---
#### Methods <a name="Methods" id="Methods"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.toString">toString</a></code> | Returns a string representation of this construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.applyRemovalPolicy">applyRemovalPolicy</a></code> | Apply the given removal policy to this resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addEventPattern">addEventPattern</a></code> | Adds an event pattern filter to this rule. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addTarget">addTarget</a></code> | Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
---
##### `toString` <a name="toString" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.toString"></a>
```typescript
public toString(): string
```
Returns a string representation of this construct.
##### `applyRemovalPolicy` <a name="applyRemovalPolicy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.applyRemovalPolicy"></a>
```typescript
public applyRemovalPolicy(policy: RemovalPolicy): void
```
Apply 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`).
###### `policy`<sup>Required</sup> <a name="policy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.applyRemovalPolicy.parameter.policy"></a>
- *Type:* aws-cdk-lib.RemovalPolicy
---
##### `addEventPattern` <a name="addEventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addEventPattern"></a>
```typescript
public addEventPattern(eventPattern?: EventPattern): void
```
Adds 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" ]
}
}
###### `eventPattern`<sup>Optional</sup> <a name="eventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addEventPattern.parameter.eventPattern"></a>
- *Type:* aws-cdk-lib.aws_events.EventPattern
---
##### `addTarget` <a name="addTarget" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addTarget"></a>
```typescript
public addTarget(target?: IRuleTarget): void
```
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
###### `target`<sup>Optional</sup> <a name="target" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.addTarget.parameter.target"></a>
- *Type:* aws-cdk-lib.aws_events.IRuleTarget
---
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isOwnedResource">isOwnedResource</a></code> | Returns true if the construct was created by CDK, and false otherwise. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isResource">isResource</a></code> | Check whether the given construct is a Resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.fromEventRuleArn">fromEventRuleArn</a></code> | Import an existing EventBridge Rule provided an ARN. |
---
##### ~~`isConstruct`~~ <a name="isConstruct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isConstruct"></a>
```typescript
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.isConstruct(x: any)
```
Checks if `x` is a construct.
###### `x`<sup>Required</sup> <a name="x" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isConstruct.parameter.x"></a>
- *Type:* any
Any object.
---
##### `isOwnedResource` <a name="isOwnedResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isOwnedResource"></a>
```typescript
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.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isOwnedResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `isResource` <a name="isResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isResource"></a>
```typescript
import { DeregisteredOrganizationalUnitRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DeregisteredOrganizationalUnitRule.isResource(construct: IConstruct)
```
Check whether the given construct is a Resource.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.isResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `fromEventRuleArn` <a name="fromEventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.fromEventRuleArn"></a>
```typescript
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.
###### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.fromEventRuleArn.parameter.scope"></a>
- *Type:* constructs.Construct
The parent creating construct (usually `this`).
---
###### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.fromEventRuleArn.parameter.id"></a>
- *Type:* string
The construct's name.
---
###### `eventRuleArn`<sup>Required</sup> <a name="eventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.fromEventRuleArn.parameter.eventRuleArn"></a>
- *Type:* string
Event Rule ARN (i.e. arn:aws:events:<region>:<account-id>:rule/MyScheduledRule).
---
#### Properties <a name="Properties" id="Properties"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.env">env</a></code> | <code>aws-cdk-lib.ResourceEnvironment</code> | The environment this resource belongs to. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.stack">stack</a></code> | <code>aws-cdk-lib.Stack</code> | The stack in which this resource is defined. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.ruleArn">ruleArn</a></code> | <code>string</code> | The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.ruleName">ruleName</a></code> | <code>string</code> | The name event rule. |
---
##### `node`<sup>Required</sup> <a name="node" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.node"></a>
```typescript
public readonly node: Node;
```
- *Type:* constructs.Node
The tree node.
---
##### `env`<sup>Required</sup> <a name="env" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.env"></a>
```typescript
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.
---
##### `stack`<sup>Required</sup> <a name="stack" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.stack"></a>
```typescript
public readonly stack: Stack;
```
- *Type:* aws-cdk-lib.Stack
The stack in which this resource is defined.
---
##### `ruleArn`<sup>Required</sup> <a name="ruleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.ruleArn"></a>
```typescript
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.
---
##### `ruleName`<sup>Required</sup> <a name="ruleName" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.ruleName"></a>
```typescript
public readonly ruleName: string;
```
- *Type:* string
The name event rule.
---
#### Constants <a name="Constants" id="Constants"></a>
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.PROPERTY_INJECTION_ID">PROPERTY_INJECTION_ID</a></code> | <code>string</code> | Uniquely identifies this class. |
---
##### `PROPERTY_INJECTION_ID`<sup>Required</sup> <a name="PROPERTY_INJECTION_ID" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DeregisteredOrganizationalUnitRule.property.PROPERTY_INJECTION_ID"></a>
```typescript
public readonly PROPERTY_INJECTION_ID: string;
```
- *Type:* string
Uniquely identifies this class.
---
### DisabledGuardrailRule <a name="DisabledGuardrailRule" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule"></a>
A rule for matching events from CloudTrail where a guard rail was disabled via Control Tower for an Organizational Unit.
#### Initializers <a name="Initializers" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer"></a>
```typescript
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
new DisabledGuardrailRule(scope: Construct, id: string, props: GuardrailRuleProps)
```
| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.props">props</a></code> | <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.GuardrailRuleProps">GuardrailRuleProps</a></code> | *No description.* |
---
##### `scope`<sup>Required</sup> <a name="scope" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.scope"></a>
- *Type:* constructs.Construct
---
##### `id`<sup>Required</sup> <a name="id" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.id"></a>
- *Type:* string
---
##### `props`<sup>Required</sup> <a name="props" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.Initializer.parameter.props"></a>
- *Type:* <a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.GuardrailRuleProps">GuardrailRuleProps</a>
---
#### Methods <a name="Methods" id="Methods"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.toString">toString</a></code> | Returns a string representation of this construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.applyRemovalPolicy">applyRemovalPolicy</a></code> | Apply the given removal policy to this resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addEventPattern">addEventPattern</a></code> | Adds an event pattern filter to this rule. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addTarget">addTarget</a></code> | Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets. |
---
##### `toString` <a name="toString" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.toString"></a>
```typescript
public toString(): string
```
Returns a string representation of this construct.
##### `applyRemovalPolicy` <a name="applyRemovalPolicy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.applyRemovalPolicy"></a>
```typescript
public applyRemovalPolicy(policy: RemovalPolicy): void
```
Apply 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`).
###### `policy`<sup>Required</sup> <a name="policy" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.applyRemovalPolicy.parameter.policy"></a>
- *Type:* aws-cdk-lib.RemovalPolicy
---
##### `addEventPattern` <a name="addEventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addEventPattern"></a>
```typescript
public addEventPattern(eventPattern?: EventPattern): void
```
Adds 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" ]
}
}
###### `eventPattern`<sup>Optional</sup> <a name="eventPattern" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addEventPattern.parameter.eventPattern"></a>
- *Type:* aws-cdk-lib.aws_events.EventPattern
---
##### `addTarget` <a name="addTarget" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addTarget"></a>
```typescript
public addTarget(target?: IRuleTarget): void
```
Adds a target to the rule. The abstract class RuleTarget can be extended to define new targets.
No-op if target is undefined.
###### `target`<sup>Optional</sup> <a name="target" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.addTarget.parameter.target"></a>
- *Type:* aws-cdk-lib.aws_events.IRuleTarget
---
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
| **Name** | **Description** |
| --- | --- |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isOwnedResource">isOwnedResource</a></code> | Returns true if the construct was created by CDK, and false otherwise. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isResource">isResource</a></code> | Check whether the given construct is a Resource. |
| <code><a href="#@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.fromEventRuleArn">fromEventRuleArn</a></code> | Import an existing EventBridge Rule provided an ARN. |
---
##### ~~`isConstruct`~~ <a name="isConstruct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isConstruct"></a>
```typescript
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.isConstruct(x: any)
```
Checks if `x` is a construct.
###### `x`<sup>Required</sup> <a name="x" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isConstruct.parameter.x"></a>
- *Type:* any
Any object.
---
##### `isOwnedResource` <a name="isOwnedResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isOwnedResource"></a>
```typescript
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.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isOwnedResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `isResource` <a name="isResource" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isResource"></a>
```typescript
import { DisabledGuardrailRule } from '@renovosolutions/cdk-library-control-tower-lifecycle-events'
DisabledGuardrailRule.isResource(construct: IConstruct)
```
Check whether the given construct is a Resource.
###### `construct`<sup>Required</sup> <a name="construct" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.isResource.parameter.construct"></a>
- *Type:* constructs.IConstruct
---
##### `fromEventRuleArn` <a name="fromEventRuleArn" id="@renovosolutions/cdk-library-control-tower-lifecycle-events.DisabledGuardrailRule.fromEventRuleArn"></a>
```typescript
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.
###### `scope`<sup>Required</sup> <a name="scope" id