Skip to content

aws Submodule

Structs

CdkBootstrapProps

Configuration properties for initializing a Bootstrap instance.

Initializer

1
2
3
import { aws } from '@gcix/gcix'

const cdkBootstrapProps: aws.CdkBootstrapProps = { ... }

Properties

Name Type Description
awsAccountId string The AWS account ID associated with the Bootstrap configuration.
awsRegion string The AWS region in which the Bootstrap will be performed.
qualifier string The qualifier applied to the Bootstrap.
toolkitStackName string The name of the toolkit stack used for Bootstrap.
jobName string An optional name for the Bootstrap job.
jobStage string An optional stage for the Bootstrap job.
resourceTags {[ key: string ]: string} Optional resource tags that can be applied during Bootstrap.

awsAccountIdRequired
public readonly awsAccountId: string;
  • Type: string

The AWS account ID associated with the Bootstrap configuration.


awsRegionRequired
public readonly awsRegion: string;
  • Type: string

The AWS region in which the Bootstrap will be performed.


qualifierRequired
public readonly qualifier: string;
  • Type: string

The qualifier applied to the Bootstrap.


toolkitStackNameRequired
public readonly toolkitStackName: string;
  • Type: string

The name of the toolkit stack used for Bootstrap.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Bootstrap job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Bootstrap job.


resourceTagsOptional
public readonly resourceTags: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional resource tags that can be applied during Bootstrap.


CdkDeployProps

Configuration properties for initializing a Deploy instance.

Initializer

1
2
3
import { aws } from '@gcix/gcix'

const cdkDeployProps: aws.CdkDeployProps = { ... }

Properties

Name Type Description
stacks string[] An array of stack names to be deployed.
context {[ key: string ]: string} Optional context values to provide additional information for deployment.
deployOptions string Optional deployment options.
jobName string An optional name for the Deploy job.
jobStage string An optional stage for the Deploy job.
strict boolean Enable strict deployment mode.
toolkitStackName string Optional toolkit stack name used for deployment.
waitForStack boolean Wait for stacks to complete deployment.
waitForStackAccountId string AWS account ID for stack waiting.
waitForStackAssumeRole string AWS assume role for stack waiting.

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names to be deployed.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for deployment.


deployOptionsOptional
public readonly deployOptions: string;
  • Type: string

Optional deployment options.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Deploy job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Deploy job.


strictOptional
public readonly strict: boolean;
  • Type: boolean

Enable strict deployment mode.


toolkitStackNameOptional
public readonly toolkitStackName: string;
  • Type: string

Optional toolkit stack name used for deployment.


waitForStackOptional
public readonly waitForStack: boolean;
  • Type: boolean

Wait for stacks to complete deployment.


waitForStackAccountIdOptional
public readonly waitForStackAccountId: string;
  • Type: string

AWS account ID for stack waiting.


waitForStackAssumeRoleOptional
public readonly waitForStackAssumeRole: string;
  • Type: string

AWS assume role for stack waiting.


CdkDiffDeployProps

Configuration properties for initializing a DiffDeploy instance.

Initializer

1
2
3
import { aws } from '@gcix/gcix'

const cdkDiffDeployProps: aws.CdkDiffDeployProps = { ... }

Properties

Name Type Description
stacks string[] An array of stack names for which to generate a diff and perform deployment.
context {[ key: string ]: string} Optional context values to provide additional information for the diff and deployment.

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff and perform deployment.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff and deployment.


CdkDiffProps

Configuration properties for initializing a Diff instance.

Initializer

1
2
3
import { aws } from '@gcix/gcix'

const cdkDiffProps: aws.CdkDiffProps = { ... }

Properties

Name Type Description
stacks string[] An array of stack names for which to generate a diff.
context {[ key: string ]: string} Optional context values to provide additional information for the diff.
diffOptions string Optional diff options to customize the diff process.
jobName string An optional name for the Diff job.
jobStage string An optional stage for the Diff job.

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff.


diffOptionsOptional
public readonly diffOptions: string;
  • Type: string

Optional diff options to customize the diff process.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Diff job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Diff job.


CdkMirrorToCodecommitProps

Initializer

1
2
3
import { aws } from '@gcix/gcix'

const cdkMirrorToCodecommitProps: aws.CdkMirrorToCodecommitProps = { ... }

Properties

Name Type Description
awsRegion string The AWS region you want to operate in.
infrastructureTags string Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.
mirrorOpts @gcix/gcix.git.GitMirrorProps Options for the upstream Mirror job.
repositoryName string The name of the target Codecommit repository.

awsRegionOptional
public readonly awsRegion: string;
  • Type: string

The AWS region you want to operate in.

When not set, it would be curl'ed from the current EC2 instance metadata.


infrastructureTagsOptional
public readonly infrastructureTags: string;
  • Type: string

Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.

Changed values won't change the tags on an already existing ECR. This string must have the pattern: Tag1=Value1,Tag2=Value2


mirrorOptsOptional
public readonly mirrorOpts: GitMirrorProps;
  • Type: @gcix/gcix.git.GitMirrorProps

Options for the upstream Mirror job.


repositoryNameOptional
public readonly repositoryName: string;
  • Type: string
  • Default: CI_PROJECT_PATH_SLUG.

The name of the target Codecommit repository.


Classes

AWSAccount

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.AWSAccount()
Name Type Description

Static Functions

Name Description
awsAccountId Retrieves the AWS Account ID associated with the current AWS credentials or environment.
awsRegion Retrieves the AWS region associated with the current AWS credentials or environment.

awsAccountId
1
2
3
import { aws } from '@gcix/gcix'

aws.AWSAccount.awsAccountId()

Retrieves the AWS Account ID associated with the current AWS credentials or environment.

If available, it uses the environment variable AWS_ACCOUNT_ID. Otherwise, it fetches the AWS Account ID from the caller identity response obtained via STS.

awsRegion
1
2
3
import { aws } from '@gcix/gcix'

aws.AWSAccount.awsRegion()

Retrieves the AWS region associated with the current AWS credentials or environment.

If available, it uses the environment variable AWS_DEFAULT_REGION. Otherwise, it fetches the AWS region from the caller identity response obtained via STS.

CdkBootstrap

Creates an instance of Bootstrap.

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.CdkBootstrap(props: CdkBootstrapProps)
Name Type Description
props CdkBootstrapProps No description.

propsRequired

Methods

Name Description
addDependencies No description.
addNeeds No description.
addParent This method is called by gcix.JobCollections when the job is added to that JobCollection.
addTags No description.
addVariables No description.
appendRules No description.
appendScripts No description.
assignAllowFailure No description.
assignArtifacts No description.
assignCache No description.
assignDependencies No description.
assignImage Sets the image of this job.
assignNeeds No description.
assignTags No description.
copy Returns an independent, deep copy object of this job.
extendName This method is used by gcix.JobCollections to populate the jobs name.
extendStage This method is used by gcix.JobCollections to populate the jobs name and stage.
extendStageValue This method is used by gcix.JobCollections to populate the jobs stage.
getAllInstanceNames Return all instance names from the given child.
isEqual isEqual checks if this object is equal to given object.
prependRules No description.
prependScripts No description.
render Returns a representation of any object which implements IBase.

addDependencies
public addDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addNeeds
public addNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addParent
public addParent(parent: Job | JobCollection): void

This method is called by gcix.JobCollections when the job is added to that JobCollection.

The job needs to know its parents when getAllInstanceNames() is called.

parentRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

addTags
public addTags(tags: string[]): Job
tagsRequired
  • Type: string[]

addVariables
public addVariables(variables: {[ key: string ]: string}): Job
variablesRequired
  • Type: {[ key: string ]: string}

appendRules
public appendRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

appendScripts
public appendScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

assignAllowFailure
public assignAllowFailure(allowFailure: boolean | number[]): Job
allowFailureRequired
  • Type: boolean | number[]

assignArtifacts
public assignArtifacts(artifacts: Artifacts): Job
artifactsRequired
  • Type: @gcix/gcix.Artifacts

assignCache
public assignCache(cache: Cache): Job
cacheRequired
  • Type: @gcix/gcix.Cache

assignDependencies
public assignDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignImage
public assignImage(image: string | Image): Job

Sets the image of this job.

For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.

!! Any previous values will be overwritten.

imageRequired
  • Type: string | @gcix/gcix.Image

assignNeeds
public assignNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignTags
public assignTags(tags: string[]): Job
tagsRequired
  • Type: string[]

copy
public copy(): Job

Returns an independent, deep copy object of this job.

extendName
public extendName(name: string): void

This method is used by gcix.JobCollections to populate the jobs name.

nameRequired
  • Type: string

extendStage
public extendStage(stage: string): void

This method is used by gcix.JobCollections to populate the jobs name and stage.

stageRequired
  • Type: string

extendStageValue
public extendStageValue(stage: string): void

This method is used by gcix.JobCollections to populate the jobs stage.

stageRequired
  • Type: string

getAllInstanceNames
public getAllInstanceNames(child?: Job | JobCollection): OrderedStringSet

Return all instance names from the given child.

That means all combinations of the childs name and stage within this sequence and all parent sequences.

childOptional
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

isEqual
public isEqual(comparable: IBase): boolean

isEqual checks if this object is equal to given object.

comparableRequired
  • Type: @gcix/gcix.IBase

prependRules
public prependRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

prependScripts
public prependScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

render
public render(): any

Returns a representation of any object which implements IBase.

The rendered representation is used by the gcix to dump it in YAML format as part of the .gitlab-ci.yml pipeline.

Properties

Name Type Description
tags string[] Getter method to receive added tags.
allowFailure string | boolean | number[] No description.
name string No description.
orderedTags @gcix/gcix.OrderedStringSet No description.
parents @gcix/gcix.Job | @gcix/gcix.JobCollection[] No description.
scripts string[] No description.
stage string No description.
artifacts @gcix/gcix.Artifacts No description.
cache @gcix/gcix.Cache No description.
dependencies @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
image @gcix/gcix.Image No description.
needs @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
original @gcix/gcix.Job No description.
rules @gcix/gcix.Rule[] No description.
variables {[ key: string ]: string} No description.
awsAccountId string The AWS account ID associated with the Bootstrap configuration.
awsRegion string The AWS region in which the Bootstrap will be performed.
jobName string The name of the Bootstrap job.
jobStage string The stage of the Bootstrap job.
qualifier string The qualifier applied to the Bootstrap.
toolkitStackName string The name of the toolkit stack used for Bootstrap.
resourceTags {[ key: string ]: string} Optional resource tags that can be applied during Bootstrap.

tagsRequired
public readonly tags: string[];
  • Type: string[]

Getter method to receive added tags.


allowFailureRequired
public readonly allowFailure: string | boolean | number[];
  • Type: string | boolean | number[]

nameRequired
public readonly name: string;
  • Type: string

orderedTagsRequired
public readonly orderedTags: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

parentsRequired
public readonly parents: Job | JobCollection[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]

scriptsRequired
public readonly scripts: string[];
  • Type: string[]

stageRequired
public readonly stage: string;
  • Type: string

artifactsOptional
public readonly artifacts: Artifacts;
  • Type: @gcix/gcix.Artifacts

cacheOptional
public readonly cache: Cache;
  • Type: @gcix/gcix.Cache

dependenciesOptional
public readonly dependencies: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

imageOptional
public readonly image: Image;
  • Type: @gcix/gcix.Image

needsOptional
public readonly needs: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

originalOptional
public readonly original: Job;
  • Type: @gcix/gcix.Job

rulesOptional
public readonly rules: Rule[];
  • Type: @gcix/gcix.Rule[]

variablesOptional
public readonly variables: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

awsAccountIdRequired
public readonly awsAccountId: string;
  • Type: string

The AWS account ID associated with the Bootstrap configuration.


awsRegionRequired
public readonly awsRegion: string;
  • Type: string

The AWS region in which the Bootstrap will be performed.


jobNameRequired
public readonly jobName: string;
  • Type: string

The name of the Bootstrap job.


jobStageRequired
public readonly jobStage: string;
  • Type: string

The stage of the Bootstrap job.


qualifierRequired
public readonly qualifier: string;
  • Type: string

The qualifier applied to the Bootstrap.


toolkitStackNameRequired
public readonly toolkitStackName: string;
  • Type: string

The name of the toolkit stack used for Bootstrap.


resourceTagsOptional
public readonly resourceTags: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional resource tags that can be applied during Bootstrap.


CdkDeploy

A class that manages the configuration and rendering of a Deploy job.

Inherits from the base Job class and implements the IDeploy interface.

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.CdkDeploy(props: CdkDeployProps)
Name Type Description
props CdkDeployProps - Configuration properties for the Deploy job.

propsRequired

Configuration properties for the Deploy job.


Methods

Name Description
addDependencies No description.
addNeeds No description.
addParent This method is called by gcix.JobCollections when the job is added to that JobCollection.
addTags No description.
addVariables No description.
appendRules No description.
appendScripts No description.
assignAllowFailure No description.
assignArtifacts No description.
assignCache No description.
assignDependencies No description.
assignImage Sets the image of this job.
assignNeeds No description.
assignTags No description.
copy Returns an independent, deep copy object of this job.
extendName This method is used by gcix.JobCollections to populate the jobs name.
extendStage This method is used by gcix.JobCollections to populate the jobs name and stage.
extendStageValue This method is used by gcix.JobCollections to populate the jobs stage.
getAllInstanceNames Return all instance names from the given child.
isEqual isEqual checks if this object is equal to given object.
prependRules No description.
prependScripts No description.
render Renders the Deploy job's configuration and scripts.

addDependencies
public addDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addNeeds
public addNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addParent
public addParent(parent: Job | JobCollection): void

This method is called by gcix.JobCollections when the job is added to that JobCollection.

The job needs to know its parents when getAllInstanceNames() is called.

parentRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

addTags
public addTags(tags: string[]): Job
tagsRequired
  • Type: string[]

addVariables
public addVariables(variables: {[ key: string ]: string}): Job
variablesRequired
  • Type: {[ key: string ]: string}

appendRules
public appendRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

appendScripts
public appendScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

assignAllowFailure
public assignAllowFailure(allowFailure: boolean | number[]): Job
allowFailureRequired
  • Type: boolean | number[]

assignArtifacts
public assignArtifacts(artifacts: Artifacts): Job
artifactsRequired
  • Type: @gcix/gcix.Artifacts

assignCache
public assignCache(cache: Cache): Job
cacheRequired
  • Type: @gcix/gcix.Cache

assignDependencies
public assignDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignImage
public assignImage(image: string | Image): Job

Sets the image of this job.

For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.

!! Any previous values will be overwritten.

imageRequired
  • Type: string | @gcix/gcix.Image

assignNeeds
public assignNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignTags
public assignTags(tags: string[]): Job
tagsRequired
  • Type: string[]

copy
public copy(): Job

Returns an independent, deep copy object of this job.

extendName
public extendName(name: string): void

This method is used by gcix.JobCollections to populate the jobs name.

nameRequired
  • Type: string

extendStage
public extendStage(stage: string): void

This method is used by gcix.JobCollections to populate the jobs name and stage.

stageRequired
  • Type: string

extendStageValue
public extendStageValue(stage: string): void

This method is used by gcix.JobCollections to populate the jobs stage.

stageRequired
  • Type: string

getAllInstanceNames
public getAllInstanceNames(child?: Job | JobCollection): OrderedStringSet

Return all instance names from the given child.

That means all combinations of the childs name and stage within this sequence and all parent sequences.

childOptional
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

isEqual
public isEqual(comparable: IBase): boolean

isEqual checks if this object is equal to given object.

comparableRequired
  • Type: @gcix/gcix.IBase

prependRules
public prependRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

prependScripts
public prependScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

render
public render(): any

Renders the Deploy job's configuration and scripts.

Properties

Name Type Description
tags string[] Getter method to receive added tags.
allowFailure string | boolean | number[] No description.
name string No description.
orderedTags @gcix/gcix.OrderedStringSet No description.
parents @gcix/gcix.Job | @gcix/gcix.JobCollection[] No description.
scripts string[] No description.
stage string No description.
artifacts @gcix/gcix.Artifacts No description.
cache @gcix/gcix.Cache No description.
dependencies @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
image @gcix/gcix.Image No description.
needs @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
original @gcix/gcix.Job No description.
rules @gcix/gcix.Rule[] No description.
variables {[ key: string ]: string} No description.
stacks string[] An array of stack names to be deployed.
strict boolean Flag indicating if strict deployment mode is enabled.
waitForStack boolean Flag indicating if the deployment should wait for stack completion.
context {[ key: string ]: string} Optional context values to provide additional information for deployment.
deployOptions string Optional deployment options.
jobName string An optional name for the Deploy job.
jobStage string An optional stage for the Deploy job.
toolkitStackName string Optional toolkit stack name used for deployment.
waitForStackAccountId string AWS account ID for stack waiting.
waitForStackAssumeRole string AWS assume role for stack waiting.

tagsRequired
public readonly tags: string[];
  • Type: string[]

Getter method to receive added tags.


allowFailureRequired
public readonly allowFailure: string | boolean | number[];
  • Type: string | boolean | number[]

nameRequired
public readonly name: string;
  • Type: string

orderedTagsRequired
public readonly orderedTags: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

parentsRequired
public readonly parents: Job | JobCollection[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]

scriptsRequired
public readonly scripts: string[];
  • Type: string[]

stageRequired
public readonly stage: string;
  • Type: string

artifactsOptional
public readonly artifacts: Artifacts;
  • Type: @gcix/gcix.Artifacts

cacheOptional
public readonly cache: Cache;
  • Type: @gcix/gcix.Cache

dependenciesOptional
public readonly dependencies: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

imageOptional
public readonly image: Image;
  • Type: @gcix/gcix.Image

needsOptional
public readonly needs: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

originalOptional
public readonly original: Job;
  • Type: @gcix/gcix.Job

rulesOptional
public readonly rules: Rule[];
  • Type: @gcix/gcix.Rule[]

variablesOptional
public readonly variables: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names to be deployed.


strictRequired
public readonly strict: boolean;
  • Type: boolean

Flag indicating if strict deployment mode is enabled.


waitForStackRequired
public readonly waitForStack: boolean;
  • Type: boolean

Flag indicating if the deployment should wait for stack completion.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for deployment.


deployOptionsOptional
public readonly deployOptions: string;
  • Type: string

Optional deployment options.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Deploy job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Deploy job.


toolkitStackNameOptional
public readonly toolkitStackName: string;
  • Type: string

Optional toolkit stack name used for deployment.


waitForStackAccountIdOptional
public readonly waitForStackAccountId: string;
  • Type: string

AWS account ID for stack waiting.


waitForStackAssumeRoleOptional
public readonly waitForStackAssumeRole: string;
  • Type: string

AWS assume role for stack waiting.


CdkDiff

A class that manages the configuration and rendering of a Diff job.

Inherits from the base Job class and implements the IDiff interface.

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.CdkDiff(props: CdkDiffProps)
Name Type Description
props CdkDiffProps - Configuration properties for the Diff job.

propsRequired

Configuration properties for the Diff job.


Methods

Name Description
addDependencies No description.
addNeeds No description.
addParent This method is called by gcix.JobCollections when the job is added to that JobCollection.
addTags No description.
addVariables No description.
appendRules No description.
appendScripts No description.
assignAllowFailure No description.
assignArtifacts No description.
assignCache No description.
assignDependencies No description.
assignImage Sets the image of this job.
assignNeeds No description.
assignTags No description.
copy Returns an independent, deep copy object of this job.
extendName This method is used by gcix.JobCollections to populate the jobs name.
extendStage This method is used by gcix.JobCollections to populate the jobs name and stage.
extendStageValue This method is used by gcix.JobCollections to populate the jobs stage.
getAllInstanceNames Return all instance names from the given child.
isEqual isEqual checks if this object is equal to given object.
prependRules No description.
prependScripts No description.
render Returns a representation of any object which implements IBase.

addDependencies
public addDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addNeeds
public addNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addParent
public addParent(parent: Job | JobCollection): void

This method is called by gcix.JobCollections when the job is added to that JobCollection.

The job needs to know its parents when getAllInstanceNames() is called.

parentRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

addTags
public addTags(tags: string[]): Job
tagsRequired
  • Type: string[]

addVariables
public addVariables(variables: {[ key: string ]: string}): Job
variablesRequired
  • Type: {[ key: string ]: string}

appendRules
public appendRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

appendScripts
public appendScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

assignAllowFailure
public assignAllowFailure(allowFailure: boolean | number[]): Job
allowFailureRequired
  • Type: boolean | number[]

assignArtifacts
public assignArtifacts(artifacts: Artifacts): Job
artifactsRequired
  • Type: @gcix/gcix.Artifacts

assignCache
public assignCache(cache: Cache): Job
cacheRequired
  • Type: @gcix/gcix.Cache

assignDependencies
public assignDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignImage
public assignImage(image: string | Image): Job

Sets the image of this job.

For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.

!! Any previous values will be overwritten.

imageRequired
  • Type: string | @gcix/gcix.Image

assignNeeds
public assignNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignTags
public assignTags(tags: string[]): Job
tagsRequired
  • Type: string[]

copy
public copy(): Job

Returns an independent, deep copy object of this job.

extendName
public extendName(name: string): void

This method is used by gcix.JobCollections to populate the jobs name.

nameRequired
  • Type: string

extendStage
public extendStage(stage: string): void

This method is used by gcix.JobCollections to populate the jobs name and stage.

stageRequired
  • Type: string

extendStageValue
public extendStageValue(stage: string): void

This method is used by gcix.JobCollections to populate the jobs stage.

stageRequired
  • Type: string

getAllInstanceNames
public getAllInstanceNames(child?: Job | JobCollection): OrderedStringSet

Return all instance names from the given child.

That means all combinations of the childs name and stage within this sequence and all parent sequences.

childOptional
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

isEqual
public isEqual(comparable: IBase): boolean

isEqual checks if this object is equal to given object.

comparableRequired
  • Type: @gcix/gcix.IBase

prependRules
public prependRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

prependScripts
public prependScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

render
public render(): any

Returns a representation of any object which implements IBase.

The rendered representation is used by the gcix to dump it in YAML format as part of the .gitlab-ci.yml pipeline.

Properties

Name Type Description
tags string[] Getter method to receive added tags.
allowFailure string | boolean | number[] No description.
name string No description.
orderedTags @gcix/gcix.OrderedStringSet No description.
parents @gcix/gcix.Job | @gcix/gcix.JobCollection[] No description.
scripts string[] No description.
stage string No description.
artifacts @gcix/gcix.Artifacts No description.
cache @gcix/gcix.Cache No description.
dependencies @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
image @gcix/gcix.Image No description.
needs @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
original @gcix/gcix.Job No description.
rules @gcix/gcix.Rule[] No description.
variables {[ key: string ]: string} No description.
stacks string[] An array of stack names for which to generate a diff.
context {[ key: string ]: string} Optional context values to provide additional information for the diff.
diffOptions string Optional diff options to customize the diff process.
jobName string An optional name for the Diff job.
jobStage string An optional stage for the Diff job.

tagsRequired
public readonly tags: string[];
  • Type: string[]

Getter method to receive added tags.


allowFailureRequired
public readonly allowFailure: string | boolean | number[];
  • Type: string | boolean | number[]

nameRequired
public readonly name: string;
  • Type: string

orderedTagsRequired
public readonly orderedTags: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

parentsRequired
public readonly parents: Job | JobCollection[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]

scriptsRequired
public readonly scripts: string[];
  • Type: string[]

stageRequired
public readonly stage: string;
  • Type: string

artifactsOptional
public readonly artifacts: Artifacts;
  • Type: @gcix/gcix.Artifacts

cacheOptional
public readonly cache: Cache;
  • Type: @gcix/gcix.Cache

dependenciesOptional
public readonly dependencies: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

imageOptional
public readonly image: Image;
  • Type: @gcix/gcix.Image

needsOptional
public readonly needs: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

originalOptional
public readonly original: Job;
  • Type: @gcix/gcix.Job

rulesOptional
public readonly rules: Rule[];
  • Type: @gcix/gcix.Rule[]

variablesOptional
public readonly variables: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff.


diffOptionsOptional
public readonly diffOptions: string;
  • Type: string

Optional diff options to customize the diff process.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Diff job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Diff job.


CdkDiffDeploy

A class that manages the configuration and execution of combined Diff and Deploy operations.

Inherits from the base JobCollection class and implements the IDiffDeploy interface.

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.CdkDiffDeploy(props: CdkDiffDeployProps)
Name Type Description
props CdkDiffDeployProps - Configuration properties for the DiffDeploy job collection.

propsRequired

Configuration properties for the DiffDeploy job collection.


Methods

Name Description
addChildren Add gcix.Jobs or other gcix.JobCollections to this JobCollection.
addDependencies No description.
addNeeds No description.
addParent No description.
addTags No description.
addVariables No description.
appendRules No description.
appendScripts No description.
assignArtifacts No description.
assignCache No description.
getAllInstanceNames Return all instance names from the given child.
initializeAllowFailure Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before.
initializeArtifacts Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before.
initializeCache Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before.
initializeDependencies Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before.
initializeImage Calling gcix.Job.assignImage() to all jobs within this JobCollection.
initializeNeeds Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before.
initializeRules Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before.
initializeTags Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before.
initializeVariables Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before.
isEqual isEqual checks if this object is equal to given object.
overrideAllowFailure Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value.
overrideDependencies Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.
overrideImage Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value.
overrideNeeds Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.
overrideRules Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs.
overrideTags Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs.
overrideVariables Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs.
prependRules No description.
prependScripts No description.
render Returns a representation of any object which implements IBase.

addChildren
public addChildren(props: AddChildrenProps): JobCollection

Add gcix.Jobs or other gcix.JobCollections to this JobCollection.

Adding a child creates a copy of that child. You should provide a name or stage when adding children, to make them different from other places where they will be used.

propsRequired
  • Type: @gcix/gcix.AddChildrenProps

addDependencies
public addDependencies(dependencies: Job | JobCollection | Need[]): JobCollection
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addNeeds
public addNeeds(needs: Job | JobCollection | Need[]): JobCollection
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addParent
public addParent(parent: JobCollection): void
parentRequired
  • Type: @gcix/gcix.JobCollection

addTags
public addTags(tags: string[]): JobCollection
tagsRequired
  • Type: string[]

addVariables
public addVariables(variables: {[ key: string ]: string}): JobCollection
variablesRequired
  • Type: {[ key: string ]: string}

appendRules
public appendRules(rules: Rule[]): JobCollection
rulesRequired
  • Type: @gcix/gcix.Rule[]

appendScripts
public appendScripts(scripts: string[]): JobCollection
scriptsRequired
  • Type: string[]

assignArtifacts
public assignArtifacts(artifacts: Artifacts): JobCollection
artifactsRequired
  • Type: @gcix/gcix.Artifacts

assignCache
public assignCache(cache: Cache): JobCollection
cacheRequired
  • Type: @gcix/gcix.Cache

getAllInstanceNames
public getAllInstanceNames(child?: Job | JobCollection): OrderedStringSet

Return all instance names from the given child.

That means all combinations of the childs name and stage within this JobCollection and all parent JobCollection's.

childOptional
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

initializeAllowFailure
public initializeAllowFailure(allowFailure: boolean | number[]): JobCollection

Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before.

allowFailureRequired
  • Type: boolean | number[]

initializeArtifacts
public initializeArtifacts(artifacts: Artifacts): JobCollection

Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before.

artifactsRequired
  • Type: @gcix/gcix.Artifacts

initializeCache
public initializeCache(cache: Cache): JobCollection

Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before.

cacheRequired
  • Type: @gcix/gcix.Cache

initializeDependencies
public initializeDependencies(dependencies: Job | JobCollection | Need[]): JobCollection

Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before.

An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts by default.

dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

initializeImage
public initializeImage(image: string | Image): JobCollection

Calling gcix.Job.assignImage() to all jobs within this JobCollection.

imageRequired
  • Type: string | @gcix/gcix.Image

initializeNeeds
public initializeNeeds(needs: Job | JobCollection | Need[]): JobCollection

Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before.

An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs by default.

needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

initializeRules
public initializeRules(rules: Rule[]): JobCollection

Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before.

rulesRequired
  • Type: @gcix/gcix.Rule[]

initializeTags
public initializeTags(tags: string[]): JobCollection

Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before.

tagsRequired
  • Type: string[]

initializeVariables
public initializeVariables(variables: {[ key: string ]: string}): JobCollection

Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before.

variablesRequired
  • Type: {[ key: string ]: string}

isEqual
public isEqual(comparable: IBase): boolean

isEqual checks if this object is equal to given object.

comparableRequired
  • Type: @gcix/gcix.IBase

overrideAllowFailure
public overrideAllowFailure(allowFailure: boolean | number[]): JobCollection

Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value.

allowFailureRequired
  • Type: boolean | number[]

overrideDependencies
public overrideDependencies(dependencies: Job | JobCollection | Need[]): JobCollection

Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs.

An empty parameter list means that jobs will get an empty dependency list and thus does not download artifacts.

dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

overrideImage
public overrideImage(image: string | Image): JobCollection

Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value.

imageRequired
  • Type: string | @gcix/gcix.Image

overrideNeeds
public overrideNeeds(needs: Job | JobCollection | Need[]): JobCollection

Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs.

An empty parameter list means that jobs will get an empty dependency list and thus does not depend on other jobs.

needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

overrideRules
public overrideRules(rules: Rule[]): JobCollection

Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs.

rulesRequired
  • Type: @gcix/gcix.Rule[]

overrideTags
public overrideTags(tags: string[]): JobCollection

Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs.

tagsRequired
  • Type: string[]

overrideVariables
public overrideVariables(variables: {[ key: string ]: string}): JobCollection

Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs.

variablesRequired
  • Type: {[ key: string ]: string}

prependRules
public prependRules(rules: Rule[]): JobCollection
rulesRequired
  • Type: @gcix/gcix.Rule[]

prependScripts
public prependScripts(scripts: string[]): JobCollection
scriptsRequired
  • Type: string[]

render
public render(): any

Returns a representation of any object which implements IBase.

The rendered representation is used by the gcix to dump it in YAML format as part of the .gitlab-ci.yml pipeline.

Properties

Name Type Description
lastJobsExecuted @gcix/gcix.Job[] This property returns all Jobs from the last stage of this JobCollection.
nestedJobs @gcix/gcix.Job[] No description.
populatedJobs @gcix/gcix.Job[] Returns a list with populated copies of all nested jobs of this JobCollection.
children @gcix/gcix.ChildDict[] No description.
orderedTags @gcix/gcix.OrderedStringSet No description.
orderedTagsForInitialization @gcix/gcix.OrderedStringSet No description.
orderedTagsForReplacement @gcix/gcix.OrderedStringSet No description.
parents @gcix/gcix.Job | @gcix/gcix.JobCollection[] No description.
allowFailureForInitialization string | boolean | number[] No description.
allowFailureForReplacement string | boolean | number[] No description.
artifacts @gcix/gcix.Artifacts No description.
artifactsForInitialization @gcix/gcix.Artifacts No description.
artifactsForReplacement @gcix/gcix.Artifacts No description.
cache @gcix/gcix.Cache No description.
cacheForInitialization @gcix/gcix.Cache No description.
dependencies @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
dependenciesForInitialization @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
dependenciesForReplacement @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
imageForInitialization string | @gcix/gcix.Image No description.
imageForReplacement string | @gcix/gcix.Image No description.
needs @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
needsForInitialization @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
needsForReplacement @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
rulesForInitialization @gcix/gcix.Rule[] No description.
rulesForReplacement @gcix/gcix.Rule[] No description.
rulesToAppend @gcix/gcix.Rule[] No description.
rulesToPrepend @gcix/gcix.Rule[] No description.
scriptsToAppend string[] No description.
scriptsToPrepend string[] No description.
variables {[ key: string ]: string} No description.
variablesForInitialization {[ key: string ]: string} No description.
variablesForReplacement {[ key: string ]: string} No description.
deployJob CdkDeploy The instance of the Deploy job associated with this DiffDeploy instance.
diffJob CdkDiff The instance of the Diff job associated with this DiffDeploy instance.
stacks string[] An array of stack names for which to generate a diff and perform deployment.
context {[ key: string ]: string} Optional context values to provide additional information for the diff and deployment.

lastJobsExecutedRequired
public readonly lastJobsExecuted: Job[];
  • Type: @gcix/gcix.Job[]

This property returns all Jobs from the last stage of this JobCollection.

This is typically be requested from a job which has setup this JobCollection as need, to determine all actual jobs of this JobCollection as need.


nestedJobsRequired
public readonly nestedJobs: Job[];
  • Type: @gcix/gcix.Job[]

populatedJobsRequired
public readonly populatedJobs: Job[];
  • Type: @gcix/gcix.Job[]

Returns a list with populated copies of all nested jobs of this JobCollection.

Populated means, that all attributes of a Job which depends on its context are resolved to their final values. The context is primarily the JobCollection within the jobs resides but also dependencies to other jobs and JobCollection's. Thus this JobCollection will apply its own configuration, like variables to add, tags to set, etc., to all its jobs and JobCollection's.

Copies means what it says, that the returned job are not the same job objects, originally added to this JobCollection, but copies of them.

Nested means, that also jobs from JobCollection's within this JobCollection, are returned, as well as jobs from JobCollection's within JobCollection's within this JobCollection and so on.


childrenRequired
public readonly children: ChildDict[];
  • Type: @gcix/gcix.ChildDict[]

orderedTagsRequired
public readonly orderedTags: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

orderedTagsForInitializationRequired
public readonly orderedTagsForInitialization: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

orderedTagsForReplacementRequired
public readonly orderedTagsForReplacement: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

parentsRequired
public readonly parents: Job | JobCollection[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]

allowFailureForInitializationOptional
public readonly allowFailureForInitialization: string | boolean | number[];
  • Type: string | boolean | number[]

allowFailureForReplacementOptional
public readonly allowFailureForReplacement: string | boolean | number[];
  • Type: string | boolean | number[]

artifactsOptional
public readonly artifacts: Artifacts;
  • Type: @gcix/gcix.Artifacts

artifactsForInitializationOptional
public readonly artifactsForInitialization: Artifacts;
  • Type: @gcix/gcix.Artifacts

artifactsForReplacementOptional
public readonly artifactsForReplacement: Artifacts;
  • Type: @gcix/gcix.Artifacts

cacheOptional
public readonly cache: Cache;
  • Type: @gcix/gcix.Cache

cacheForInitializationOptional
public readonly cacheForInitialization: Cache;
  • Type: @gcix/gcix.Cache

dependenciesOptional
public readonly dependencies: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

dependenciesForInitializationOptional
public readonly dependenciesForInitialization: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

dependenciesForReplacementOptional
public readonly dependenciesForReplacement: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

imageForInitializationOptional
public readonly imageForInitialization: string | Image;
  • Type: string | @gcix/gcix.Image

imageForReplacementOptional
public readonly imageForReplacement: string | Image;
  • Type: string | @gcix/gcix.Image

needsOptional
public readonly needs: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

needsForInitializationOptional
public readonly needsForInitialization: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

needsForReplacementOptional
public readonly needsForReplacement: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

rulesForInitializationOptional
public readonly rulesForInitialization: Rule[];
  • Type: @gcix/gcix.Rule[]

rulesForReplacementOptional
public readonly rulesForReplacement: Rule[];
  • Type: @gcix/gcix.Rule[]

rulesToAppendOptional
public readonly rulesToAppend: Rule[];
  • Type: @gcix/gcix.Rule[]

rulesToPrependOptional
public readonly rulesToPrepend: Rule[];
  • Type: @gcix/gcix.Rule[]

scriptsToAppendOptional
public readonly scriptsToAppend: string[];
  • Type: string[]

scriptsToPrependOptional
public readonly scriptsToPrepend: string[];
  • Type: string[]

variablesOptional
public readonly variables: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

variablesForInitializationOptional
public readonly variablesForInitialization: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

variablesForReplacementOptional
public readonly variablesForReplacement: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

deployJobRequired
public readonly deployJob: CdkDeploy;

The instance of the Deploy job associated with this DiffDeploy instance.


diffJobRequired
public readonly diffJob: CdkDiff;

The instance of the Diff job associated with this DiffDeploy instance.


stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff and perform deployment.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff and deployment.


CdkMirrorToCodecommit

This job clones the CI_COMMIT_REF_NAME of the current repository and forcefully pushes this REF to a AWS CodeCommit repository.

This job requires following IAM permissions:

  • codecommit:CreateRepository
  • codecommit:GetRepository
  • codecommit:CreateBranch
  • codecommit:GitPush
  • codecommit:TagResource

You could also limit the resource to !Sub arn:aws:codecommit:${AWS::Region}:${AWS::AccountId}:<repository-name>.

Initializers

1
2
3
import { aws } from '@gcix/gcix'

new aws.CdkMirrorToCodecommit(props: CdkMirrorToCodecommitProps)
Name Type Description
props CdkMirrorToCodecommitProps No description.

propsRequired

Methods

Name Description
addDependencies No description.
addNeeds No description.
addParent This method is called by gcix.JobCollections when the job is added to that JobCollection.
addTags No description.
addVariables No description.
appendRules No description.
appendScripts No description.
assignAllowFailure No description.
assignArtifacts No description.
assignCache No description.
assignDependencies No description.
assignImage Sets the image of this job.
assignNeeds No description.
assignTags No description.
copy Returns an independent, deep copy object of this job.
extendName This method is used by gcix.JobCollections to populate the jobs name.
extendStage This method is used by gcix.JobCollections to populate the jobs name and stage.
extendStageValue This method is used by gcix.JobCollections to populate the jobs stage.
getAllInstanceNames Return all instance names from the given child.
isEqual isEqual checks if this object is equal to given object.
prependRules No description.
prependScripts No description.
render Returns a representation of any object which implements IBase.

addDependencies
public addDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addNeeds
public addNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

addParent
public addParent(parent: Job | JobCollection): void

This method is called by gcix.JobCollections when the job is added to that JobCollection.

The job needs to know its parents when getAllInstanceNames() is called.

parentRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

addTags
public addTags(tags: string[]): Job
tagsRequired
  • Type: string[]

addVariables
public addVariables(variables: {[ key: string ]: string}): Job
variablesRequired
  • Type: {[ key: string ]: string}

appendRules
public appendRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

appendScripts
public appendScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

assignAllowFailure
public assignAllowFailure(allowFailure: boolean | number[]): Job
allowFailureRequired
  • Type: boolean | number[]

assignArtifacts
public assignArtifacts(artifacts: Artifacts): Job
artifactsRequired
  • Type: @gcix/gcix.Artifacts

assignCache
public assignCache(cache: Cache): Job
cacheRequired
  • Type: @gcix/gcix.Cache

assignDependencies
public assignDependencies(dependencies: Job | JobCollection | Need[]): Job
dependenciesRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignImage
public assignImage(image: string | Image): Job

Sets the image of this job.

For a simple container image you can provide the origin of the image. If you want to set the entrypoint, you have to provide an Image object instead.

!! Any previous values will be overwritten.

imageRequired
  • Type: string | @gcix/gcix.Image

assignNeeds
public assignNeeds(needs: Job | JobCollection | Need[]): Job
needsRequired
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

assignTags
public assignTags(tags: string[]): Job
tagsRequired
  • Type: string[]

copy
public copy(): Job

Returns an independent, deep copy object of this job.

extendName
public extendName(name: string): void

This method is used by gcix.JobCollections to populate the jobs name.

nameRequired
  • Type: string

extendStage
public extendStage(stage: string): void

This method is used by gcix.JobCollections to populate the jobs name and stage.

stageRequired
  • Type: string

extendStageValue
public extendStageValue(stage: string): void

This method is used by gcix.JobCollections to populate the jobs stage.

stageRequired
  • Type: string

getAllInstanceNames
public getAllInstanceNames(child?: Job | JobCollection): OrderedStringSet

Return all instance names from the given child.

That means all combinations of the childs name and stage within this sequence and all parent sequences.

childOptional
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection

isEqual
public isEqual(comparable: IBase): boolean

isEqual checks if this object is equal to given object.

comparableRequired
  • Type: @gcix/gcix.IBase

prependRules
public prependRules(rules: Rule[]): Job
rulesRequired
  • Type: @gcix/gcix.Rule[]

prependScripts
public prependScripts(scripts: string[]): Job
scriptsRequired
  • Type: string[]

render
public render(): any

Returns a representation of any object which implements IBase.

The rendered representation is used by the gcix to dump it in YAML format as part of the .gitlab-ci.yml pipeline.

Properties

Name Type Description
tags string[] Getter method to receive added tags.
allowFailure string | boolean | number[] No description.
name string No description.
orderedTags @gcix/gcix.OrderedStringSet No description.
parents @gcix/gcix.Job | @gcix/gcix.JobCollection[] No description.
scripts string[] No description.
stage string No description.
artifacts @gcix/gcix.Artifacts No description.
cache @gcix/gcix.Cache No description.
dependencies @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
image @gcix/gcix.Image No description.
needs @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[] No description.
original @gcix/gcix.Job No description.
rules @gcix/gcix.Rule[] No description.
variables {[ key: string ]: string} No description.
gitConfigUserEmail string The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
gitConfigUserName string The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remoteRepository string The git repository the code of the pipelines repository should be mirrored to.
scriptHook string[] This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.
privateKeyVariable string DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.
runOnlyForRepositoryUrl string When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.
repositoryName string The name of the target Codecommit repository.
awsRegion string The AWS region you want to operate in.
infrastructureTags string Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.
mirrorOpts @gcix/gcix.git.GitMirrorProps No description.

tagsRequired
public readonly tags: string[];
  • Type: string[]

Getter method to receive added tags.


allowFailureRequired
public readonly allowFailure: string | boolean | number[];
  • Type: string | boolean | number[]

nameRequired
public readonly name: string;
  • Type: string

orderedTagsRequired
public readonly orderedTags: OrderedStringSet;
  • Type: @gcix/gcix.OrderedStringSet

parentsRequired
public readonly parents: Job | JobCollection[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection[]

scriptsRequired
public readonly scripts: string[];
  • Type: string[]

stageRequired
public readonly stage: string;
  • Type: string

artifactsOptional
public readonly artifacts: Artifacts;
  • Type: @gcix/gcix.Artifacts

cacheOptional
public readonly cache: Cache;
  • Type: @gcix/gcix.Cache

dependenciesOptional
public readonly dependencies: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

imageOptional
public readonly image: Image;
  • Type: @gcix/gcix.Image

needsOptional
public readonly needs: Job | JobCollection | Need[];
  • Type: @gcix/gcix.Job | @gcix/gcix.JobCollection | @gcix/gcix.Need[]

originalOptional
public readonly original: Job;
  • Type: @gcix/gcix.Job

rulesOptional
public readonly rules: Rule[];
  • Type: @gcix/gcix.Rule[]

variablesOptional
public readonly variables: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

gitConfigUserEmailRequired
public readonly gitConfigUserEmail: string;
  • Type: string

The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.


gitConfigUserNameRequired
public readonly gitConfigUserName: string;
  • Type: string

The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.


remoteRepositoryRequired
public readonly remoteRepository: string;
  • Type: string

The git repository the code of the pipelines repository should be mirrored to.


scriptHookRequired
public readonly scriptHook: string[];
  • Type: string[]

This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.

This hook is mostly meant to be for git configuration commands, required to push to the remote repository.


privateKeyVariableOptional
public readonly privateKeyVariable: string;
  • Type: string

DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.


runOnlyForRepositoryUrlOptional
public readonly runOnlyForRepositoryUrl: string;
  • Type: string

When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.

With this variable the job only runs, when its value matches the CI_REPOSITORY_URL of the current repository.


repositoryNameRequired
public readonly repositoryName: string;
  • Type: string

The name of the target Codecommit repository.


awsRegionOptional
public readonly awsRegion: string;
  • Type: string

The AWS region you want to operate in.

When not set, it would be curl'ed from the current EC2 instance metadata.


infrastructureTagsOptional
public readonly infrastructureTags: string;
  • Type: string

Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.

Changed values won't change the tags on an already existing ECR. This string must have the pattern: Tag1=Value1,Tag2=Value2


mirrorOptsOptional
public readonly mirrorOpts: GitMirrorProps;
  • Type: @gcix/gcix.git.GitMirrorProps

Protocols

ICdkBootstrap

Represents the interface that a Bootstrap instance adheres to.

Properties

Name Type Description
awsAccountId string The AWS account ID associated with the Bootstrap configuration.
awsRegion string The AWS region in which the Bootstrap will be performed.
jobName string The name of the Bootstrap job.
jobStage string The stage of the Bootstrap job.
qualifier string The qualifier applied to the Bootstrap.
toolkitStackName string The name of the toolkit stack used for Bootstrap.
resourceTags {[ key: string ]: string} Optional resource tags that can be applied during Bootstrap.

awsAccountIdRequired
public readonly awsAccountId: string;
  • Type: string

The AWS account ID associated with the Bootstrap configuration.


awsRegionRequired
public readonly awsRegion: string;
  • Type: string

The AWS region in which the Bootstrap will be performed.


jobNameRequired
public readonly jobName: string;
  • Type: string

The name of the Bootstrap job.


jobStageRequired
public readonly jobStage: string;
  • Type: string

The stage of the Bootstrap job.


qualifierRequired
public readonly qualifier: string;
  • Type: string

The qualifier applied to the Bootstrap.


toolkitStackNameRequired
public readonly toolkitStackName: string;
  • Type: string

The name of the toolkit stack used for Bootstrap.


resourceTagsOptional
public readonly resourceTags: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional resource tags that can be applied during Bootstrap.


ICdkDeploy

Represents the interface that a Deploy instance adheres to.

Properties

Name Type Description
stacks string[] An array of stack names to be deployed.
strict boolean Flag indicating if strict deployment mode is enabled.
waitForStack boolean Flag indicating if the deployment should wait for stack completion.
context {[ key: string ]: string} Optional context values to provide additional information for deployment.
deployOptions string Optional deployment options.
jobName string An optional name for the Deploy job.
jobStage string An optional stage for the Deploy job.
toolkitStackName string Optional toolkit stack name used for deployment.
waitForStackAccountId string AWS account ID for stack waiting.
waitForStackAssumeRole string AWS assume role for stack waiting.

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names to be deployed.


strictRequired
public readonly strict: boolean;
  • Type: boolean

Flag indicating if strict deployment mode is enabled.


waitForStackRequired
public readonly waitForStack: boolean;
  • Type: boolean

Flag indicating if the deployment should wait for stack completion.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for deployment.


deployOptionsOptional
public readonly deployOptions: string;
  • Type: string

Optional deployment options.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Deploy job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Deploy job.


toolkitStackNameOptional
public readonly toolkitStackName: string;
  • Type: string

Optional toolkit stack name used for deployment.


waitForStackAccountIdOptional
public readonly waitForStackAccountId: string;
  • Type: string

AWS account ID for stack waiting.


waitForStackAssumeRoleOptional
public readonly waitForStackAssumeRole: string;
  • Type: string

AWS assume role for stack waiting.


ICdkDiff

Represents the interface that a Diff instance adheres to.

Properties

Name Type Description
stacks string[] An array of stack names for which to generate a diff.
context {[ key: string ]: string} Optional context values to provide additional information for the diff.
diffOptions string Optional diff options to customize the diff process.
jobName string An optional name for the Diff job.
jobStage string An optional stage for the Diff job.

stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff.


diffOptionsOptional
public readonly diffOptions: string;
  • Type: string

Optional diff options to customize the diff process.


jobNameOptional
public readonly jobName: string;
  • Type: string

An optional name for the Diff job.


jobStageOptional
public readonly jobStage: string;
  • Type: string

An optional stage for the Diff job.


ICdkDiffDeploy

Represents the interface that a DiffDeploy instance adheres to.

Properties

Name Type Description
deployJob CdkDeploy The instance of the Deploy job associated with this DiffDeploy instance.
diffJob CdkDiff The instance of the Diff job associated with this DiffDeploy instance.
stacks string[] An array of stack names for which to generate a diff and perform deployment.
context {[ key: string ]: string} Optional context values to provide additional information for the diff and deployment.

deployJobRequired
public readonly deployJob: CdkDeploy;

The instance of the Deploy job associated with this DiffDeploy instance.


diffJobRequired
public readonly diffJob: CdkDiff;

The instance of the Diff job associated with this DiffDeploy instance.


stacksRequired
public readonly stacks: string[];
  • Type: string[]

An array of stack names for which to generate a diff and perform deployment.


contextOptional
public readonly context: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Optional context values to provide additional information for the diff and deployment.


ICdkMirrorToCodecommit

Properties

Name Type Description
gitConfigUserEmail string The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
gitConfigUserName string The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remoteRepository string The git repository the code of the pipelines repository should be mirrored to.
scriptHook string[] This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.
privateKeyVariable string DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.
runOnlyForRepositoryUrl string When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.
repositoryName string The name of the target Codecommit repository.
awsRegion string The AWS region you want to operate in.
infrastructureTags string Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.

gitConfigUserEmailRequired
public readonly gitConfigUserEmail: string;
  • Type: string

The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.


gitConfigUserNameRequired
public readonly gitConfigUserName: string;
  • Type: string

The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.


remoteRepositoryRequired
public readonly remoteRepository: string;
  • Type: string

The git repository the code of the pipelines repository should be mirrored to.


scriptHookRequired
public readonly scriptHook: string[];
  • Type: string[]

This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote.

This hook is mostly meant to be for git configuration commands, required to push to the remote repository.


privateKeyVariableOptional
public readonly privateKeyVariable: string;
  • Type: string

DO NOT PROVIDE YOUR PRIVATE SSH KEY HERE!!! This parameter takes the name of the Gitlab environment variable, which contains the private ssh key used to push to the remote repository. This one should be created as protected and masked variable in the 'CI/CD' settings of your project.


runOnlyForRepositoryUrlOptional
public readonly runOnlyForRepositoryUrl: string;
  • Type: string

When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again.

With this variable the job only runs, when its value matches the CI_REPOSITORY_URL of the current repository.


repositoryNameRequired
public readonly repositoryName: string;
  • Type: string
  • Default: CI_PROJECT_PATH_SLUG.

The name of the target Codecommit repository.


awsRegionOptional
public readonly awsRegion: string;
  • Type: string

The AWS region you want to operate in.

When not set, it would be curl'ed from the current EC2 instance metadata.


infrastructureTagsOptional
public readonly infrastructureTags: string;
  • Type: string

Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource.

Changed values won't change the tags on an already existing ECR. This string must have the pattern: Tag1=Value1,Tag2=Value2