import { NamedEnv } from '@time-loop/cdk-named-environments'
const namedEnv: NamedEnv = { ... }| Name | Type | Description |
|---|---|---|
account |
string |
The AWS account ID for this environment. |
region |
string |
The AWS region for this environment. |
defaultRegion |
string |
If a region isn't specified, where should we default to. |
name |
string |
The proper name of the environment. |
organizationalUnit |
string |
What kind of an account is this? |
zoneName |
string |
The DNS zone into which services should be deployed. |
ssoRegion |
string |
In which region does SSO live in? |
ssoStartUrl |
string |
Is this an SSO accessible account? |
shard |
IShard |
The shard within a region. |
public readonly account: string;- Type: string
- Default: Aws.accountId which means that the stack will be account-agnostic.
The AWS account ID for this environment.
This can be either a concrete value such as 585191031104 or Aws.accountId which
indicates that account ID will only be determined during deployment (it
will resolve to the CloudFormation intrinsic {"Ref":"AWS::AccountId"}).
Note that certain features, such as cross-stack references and
environmental context providers require concerete region information and
will cause this stack to emit synthesis errors.
public readonly region: string;- Type: string
- Default: Aws.region which means that the stack will be region-agnostic.
The AWS region for this environment.
This can be either a concrete value such as eu-west-2 or Aws.region
which indicates that account ID will only be determined during deployment
(it will resolve to the CloudFormation intrinsic {"Ref":"AWS::Region"}).
Note that certain features, such as cross-stack references and
environmental context providers require concerete region information and
will cause this stack to emit synthesis errors.
public readonly defaultRegion: string;- Type: string
If a region isn't specified, where should we default to.
Also considered for centralized resources.
public readonly name: string;- Type: string
The proper name of the environment.
public readonly organizationalUnit: string;- Type: string
What kind of an account is this?
public readonly zoneName: string;- Type: string
The DNS zone into which services should be deployed.
public readonly ssoRegion: string;- Type: string
In which region does SSO live in?
public readonly ssoStartUrl: string;- Type: string
Is this an SSO accessible account?
If so, what's the start url?
public readonly shard: IShard;- Type: IShard
The shard within a region.
import { NamedEnvCommonProps } from '@time-loop/cdk-named-environments'
const namedEnvCommonProps: NamedEnvCommonProps = { ... }| Name | Type | Description |
|---|---|---|
defaultRegion |
string |
If a region isn't specified, where should we default to. |
name |
string |
The proper name of the environment. |
organizationalUnit |
string |
What kind of an account is this? |
zoneName |
string |
The DNS zone into which services should be deployed. |
ssoRegion |
string |
In which region does SSO live in? |
ssoStartUrl |
string |
Is this an SSO accessible account? |
public readonly defaultRegion: string;- Type: string
If a region isn't specified, where should we default to.
Also considered for centralized resources.
public readonly name: string;- Type: string
The proper name of the environment.
public readonly organizationalUnit: string;- Type: string
What kind of an account is this?
public readonly zoneName: string;- Type: string
The DNS zone into which services should be deployed.
public readonly ssoRegion: string;- Type: string
In which region does SSO live in?
public readonly ssoStartUrl: string;- Type: string
Is this an SSO accessible account?
If so, what's the start url?
Generator of NamedEnv objects.
import { NamedEnvFactory } from '@time-loop/cdk-named-environments'
const namedEnvFactory: NamedEnvFactory = { ... }| Name | Type | Description |
|---|---|---|
account |
string |
The numeric account id as used by cdk.Environment.account. |
environmentName |
string |
The proper name of the environment. |
shards |
IShard[] |
Enumerates all existing shards grouped in the NamedEnv. |
public readonly account: string;- Type: string
The numeric account id as used by cdk.Environment.account.
public readonly environmentName: string;- Type: string
The proper name of the environment.
public readonly shards: IShard[];- Type: IShard[]
Enumerates all existing shards grouped in the NamedEnv.
Used by newNamedEnvFactory.
Is it used elsewhere?
import { NamedEnvFactoryProps } from '@time-loop/cdk-named-environments'
const namedEnvFactoryProps: NamedEnvFactoryProps = { ... }| Name | Type | Description |
|---|---|---|
defaultRegion |
string |
If a region isn't specified, where should we default to. |
name |
string |
The proper name of the environment. |
organizationalUnit |
string |
What kind of an account is this? |
zoneName |
string |
The DNS zone into which services should be deployed. |
ssoRegion |
string |
In which region does SSO live in? |
ssoStartUrl |
string |
Is this an SSO accessible account? |
account |
string |
The numeric account id as used by cdk.Environment.account. |
shards |
IShard[] |
Enumerates all existing shards grouped in the NamedEnv. |
public readonly defaultRegion: string;- Type: string
If a region isn't specified, where should we default to.
Also considered for centralized resources.
public readonly name: string;- Type: string
The proper name of the environment.
public readonly organizationalUnit: string;- Type: string
What kind of an account is this?
public readonly zoneName: string;- Type: string
The DNS zone into which services should be deployed.
public readonly ssoRegion: string;- Type: string
In which region does SSO live in?
public readonly ssoStartUrl: string;- Type: string
Is this an SSO accessible account?
If so, what's the start url?
public readonly account: string;- Type: string
The numeric account id as used by cdk.Environment.account.
public readonly shards: IShard[];- Type: IShard[]
Enumerates all existing shards grouped in the NamedEnv.
- Implements: IShard
import { Shard } from '@time-loop/cdk-named-environments'
new Shard(props: IShardProps)| Name | Type | Description |
|---|---|---|
props |
IShardProps |
No description. |
- Type: IShardProps
| Name | Type | Description |
|---|---|---|
cidr |
string |
The CIDR block for a shard. |
name |
string |
There are numerous different ways to name a shard. |
number |
number |
The shard-number within the region. |
region |
string |
The AWS region for a shard. |
identifier |
string |
The shard-identifier. |
public readonly cidr: string;- Type: string
The CIDR block for a shard.
public readonly name: string;- Type: string
There are numerous different ways to name a shard.
Pick one and stick with it.
public readonly number: number;- Type: number
The shard-number within the region.
public readonly region: string;- Type: string
The AWS region for a shard.
public readonly identifier: string;- Type: string
The shard-identifier.
-
Extends: IShardProps
| Name | Type | Description |
|---|---|---|
cidr |
string |
The CIDR block for a shard. |
number |
number |
The shard-number within the region. |
region |
string |
The AWS region for a shard. |
identifier |
string |
The shard-identifier. |
name |
string |
The proper name for a shard (without numeric suffix). |
public readonly cidr: string;- Type: string
The CIDR block for a shard.
public readonly number: number;- Type: number
The shard-number within the region.
public readonly region: string;- Type: string
The AWS region for a shard.
public readonly identifier: string;- Type: string
The shard-identifier.
public readonly name: string;- Type: string
The proper name for a shard (without numeric suffix).
- Implemented By: Shard, IShard, IShardProps
| Name | Type | Description |
|---|---|---|
cidr |
string |
The CIDR block for a shard. |
number |
number |
The shard-number within the region. |
region |
string |
The AWS region for a shard. |
identifier |
string |
The shard-identifier. |
public readonly cidr: string;- Type: string
The CIDR block for a shard.
public readonly number: number;- Type: number
The shard-number within the region.
public readonly region: string;- Type: string
The AWS region for a shard.
public readonly identifier: string;- Type: string
The shard-identifier.