aws
Submodule ¶
Structs ¶
CdkBootstrapProps ¶
Configuration properties for initializing a Bootstrap instance.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
aws_account_id |
str |
The AWS account ID associated with the Bootstrap configuration. |
aws_region |
str |
The AWS region in which the Bootstrap will be performed. |
qualifier |
str |
The qualifier applied to the Bootstrap. |
toolkit_stack_name |
str |
The name of the toolkit stack used for Bootstrap. |
job_name |
str |
An optional name for the Bootstrap job. |
job_stage |
str |
An optional stage for the Bootstrap job. |
resource_tags |
typing.Mapping[str] |
Optional resource tags that can be applied during Bootstrap. |
aws_account_id
Required ¶
- Type: str
The AWS account ID associated with the Bootstrap configuration.
aws_region
Required ¶
- Type: str
The AWS region in which the Bootstrap will be performed.
qualifier
Required ¶
- Type: str
The qualifier applied to the Bootstrap.
toolkit_stack_name
Required ¶
- Type: str
The name of the toolkit stack used for Bootstrap.
job_name
Optional ¶
- Type: str
An optional name for the Bootstrap job.
job_stage
Optional ¶
- Type: str
An optional stage for the Bootstrap job.
resource_tags
Optional ¶
- Type: typing.Mapping[str]
Optional resource tags that can be applied during Bootstrap.
CdkDeployProps ¶
Configuration properties for initializing a Deploy instance.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names to be deployed. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for deployment. |
deploy_options |
str |
Optional deployment options. |
job_name |
str |
An optional name for the Deploy job. |
job_stage |
str |
An optional stage for the Deploy job. |
strict |
bool |
Enable strict deployment mode. |
toolkit_stack_name |
str |
Optional toolkit stack name used for deployment. |
wait_for_stack |
bool |
Wait for stacks to complete deployment. |
wait_for_stack_account_id |
str |
AWS account ID for stack waiting. |
wait_for_stack_assume_role |
str |
AWS assume role for stack waiting. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names to be deployed.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for deployment.
deploy_options
Optional ¶
- Type: str
Optional deployment options.
job_name
Optional ¶
- Type: str
An optional name for the Deploy job.
job_stage
Optional ¶
- Type: str
An optional stage for the Deploy job.
strict
Optional ¶
- Type: bool
Enable strict deployment mode.
toolkit_stack_name
Optional ¶
- Type: str
Optional toolkit stack name used for deployment.
wait_for_stack
Optional ¶
- Type: bool
Wait for stacks to complete deployment.
wait_for_stack_account_id
Optional ¶
- Type: str
AWS account ID for stack waiting.
wait_for_stack_assume_role
Optional ¶
- Type: str
AWS assume role for stack waiting.
CdkDiffDeployProps ¶
Configuration properties for initializing a DiffDeploy instance.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names for which to generate a diff and perform deployment. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff and deployment. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff and perform deployment.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff and deployment.
CdkDiffProps ¶
Configuration properties for initializing a Diff instance.
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names for which to generate a diff. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff. |
diff_options |
str |
Optional diff options to customize the diff process. |
job_name |
str |
An optional name for the Diff job. |
job_stage |
str |
An optional stage for the Diff job. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff.
diff_options
Optional ¶
- Type: str
Optional diff options to customize the diff process.
job_name
Optional ¶
- Type: str
An optional name for the Diff job.
job_stage
Optional ¶
- Type: str
An optional stage for the Diff job.
CdkMirrorToCodecommitProps ¶
Initializer ¶
Properties ¶
Name | Type | Description |
---|---|---|
aws_region |
str |
The AWS region you want to operate in. |
infrastructure_tags |
str |
Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource. |
mirror_opts |
gcix.git.GitMirrorProps |
Options for the upstream Mirror job. |
repository_name |
str |
The name of the target Codecommit repository. |
aws_region
Optional ¶
- Type: str
The AWS region you want to operate in.
When not set, it would be curl'ed from the current EC2 instance metadata.
infrastructure_tags
Optional ¶
- Type: str
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
mirror_opts
Optional ¶
- Type: gcix.git.GitMirrorProps
Options for the upstream Mirror job.
repository_name
Optional ¶
- Type: str
- Default: CI_PROJECT_PATH_SLUG.
The name of the target Codecommit repository.
Classes ¶
AWSAccount ¶
Initializers ¶
Name | Type | Description |
---|---|---|
Static Functions ¶
Name | Description |
---|---|
aws_account_id |
Retrieves the AWS Account ID associated with the current AWS credentials or environment. |
aws_region |
Retrieves the AWS region associated with the current AWS credentials or environment. |
aws_account_id
¶
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.
aws_region
¶
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 ¶
- Implements: ICdkBootstrap
Creates an instance of Bootstrap.
Initializers ¶
Name | Type | Description |
---|---|---|
aws_account_id |
str |
The AWS account ID associated with the Bootstrap configuration. |
aws_region |
str |
The AWS region in which the Bootstrap will be performed. |
qualifier |
str |
The qualifier applied to the Bootstrap. |
toolkit_stack_name |
str |
The name of the toolkit stack used for Bootstrap. |
job_name |
str |
An optional name for the Bootstrap job. |
job_stage |
str |
An optional stage for the Bootstrap job. |
resource_tags |
typing.Mapping[str] |
Optional resource tags that can be applied during Bootstrap. |
aws_account_id
Required ¶
- Type: str
The AWS account ID associated with the Bootstrap configuration.
aws_region
Required ¶
- Type: str
The AWS region in which the Bootstrap will be performed.
qualifier
Required ¶
- Type: str
The qualifier applied to the Bootstrap.
toolkit_stack_name
Required ¶
- Type: str
The name of the toolkit stack used for Bootstrap.
job_name
Optional ¶
- Type: str
An optional name for the Bootstrap job.
job_stage
Optional ¶
- Type: str
An optional stage for the Bootstrap job.
resource_tags
Optional ¶
- Type: typing.Mapping[str]
Optional resource tags that can be applied during Bootstrap.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
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.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
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 |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
aws_account_id |
str |
The AWS account ID associated with the Bootstrap configuration. |
aws_region |
str |
The AWS region in which the Bootstrap will be performed. |
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
qualifier |
str |
The qualifier applied to the Bootstrap. |
toolkit_stack_name |
str |
The name of the toolkit stack used for Bootstrap. |
resource_tags |
typing.Mapping[str] |
Optional resource tags that can be applied during Bootstrap. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
aws_account_id
Required ¶
- Type: str
The AWS account ID associated with the Bootstrap configuration.
aws_region
Required ¶
- Type: str
The AWS region in which the Bootstrap will be performed.
job_name
Required ¶
- Type: str
The name of the Bootstrap job.
job_stage
Required ¶
- Type: str
The stage of the Bootstrap job.
qualifier
Required ¶
- Type: str
The qualifier applied to the Bootstrap.
toolkit_stack_name
Required ¶
- Type: str
The name of the toolkit stack used for Bootstrap.
resource_tags
Optional ¶
- Type: typing.Mapping[str]
Optional resource tags that can be applied during Bootstrap.
CdkDeploy ¶
- Implements: ICdkDeploy
A class that manages the configuration and rendering of a Deploy job.
Inherits from the base Job class and implements the IDeploy interface.
Initializers ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names to be deployed. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for deployment. |
deploy_options |
str |
Optional deployment options. |
job_name |
str |
An optional name for the Deploy job. |
job_stage |
str |
An optional stage for the Deploy job. |
strict |
bool |
Enable strict deployment mode. |
toolkit_stack_name |
str |
Optional toolkit stack name used for deployment. |
wait_for_stack |
bool |
Wait for stacks to complete deployment. |
wait_for_stack_account_id |
str |
AWS account ID for stack waiting. |
wait_for_stack_assume_role |
str |
AWS assume role for stack waiting. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names to be deployed.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for deployment.
deploy_options
Optional ¶
- Type: str
Optional deployment options.
job_name
Optional ¶
- Type: str
An optional name for the Deploy job.
job_stage
Optional ¶
- Type: str
An optional stage for the Deploy job.
strict
Optional ¶
- Type: bool
Enable strict deployment mode.
toolkit_stack_name
Optional ¶
- Type: str
Optional toolkit stack name used for deployment.
wait_for_stack
Optional ¶
- Type: bool
Wait for stacks to complete deployment.
wait_for_stack_account_id
Optional ¶
- Type: str
AWS account ID for stack waiting.
wait_for_stack_assume_role
Optional ¶
- Type: str
AWS assume role for stack waiting.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Renders the Deploy job's configuration and scripts. |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
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.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
Renders the Deploy job's configuration and scripts.
Properties ¶
Name | Type | Description |
---|---|---|
tags |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
stacks |
typing.List[str] |
An array of stack names to be deployed. |
strict |
bool |
Flag indicating if strict deployment mode is enabled. |
wait_for_stack |
bool |
Flag indicating if the deployment should wait for stack completion. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for deployment. |
deploy_options |
str |
Optional deployment options. |
job_name |
str |
An optional name for the Deploy job. |
job_stage |
str |
An optional stage for the Deploy job. |
toolkit_stack_name |
str |
Optional toolkit stack name used for deployment. |
wait_for_stack_account_id |
str |
AWS account ID for stack waiting. |
wait_for_stack_assume_role |
str |
AWS assume role for stack waiting. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
stacks
Required ¶
- Type: typing.List[str]
An array of stack names to be deployed.
strict
Required ¶
- Type: bool
Flag indicating if strict deployment mode is enabled.
wait_for_stack
Required ¶
- Type: bool
Flag indicating if the deployment should wait for stack completion.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for deployment.
deploy_options
Optional ¶
- Type: str
Optional deployment options.
job_name
Optional ¶
- Type: str
An optional name for the Deploy job.
job_stage
Optional ¶
- Type: str
An optional stage for the Deploy job.
toolkit_stack_name
Optional ¶
- Type: str
Optional toolkit stack name used for deployment.
wait_for_stack_account_id
Optional ¶
- Type: str
AWS account ID for stack waiting.
wait_for_stack_assume_role
Optional ¶
- Type: str
AWS assume role for stack waiting.
CdkDiff ¶
- Implements: ICdkDiff
A class that manages the configuration and rendering of a Diff job.
Inherits from the base Job class and implements the IDiff interface.
Initializers ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names for which to generate a diff. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff. |
diff_options |
str |
Optional diff options to customize the diff process. |
job_name |
str |
An optional name for the Diff job. |
job_stage |
str |
An optional stage for the Diff job. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff.
diff_options
Optional ¶
- Type: str
Optional diff options to customize the diff process.
job_name
Optional ¶
- Type: str
An optional name for the Diff job.
job_stage
Optional ¶
- Type: str
An optional stage for the Diff job.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
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.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
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 |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
stacks |
typing.List[str] |
An array of stack names for which to generate a diff. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff. |
diff_options |
str |
Optional diff options to customize the diff process. |
job_name |
str |
An optional name for the Diff job. |
job_stage |
str |
An optional stage for the Diff job. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff.
diff_options
Optional ¶
- Type: str
Optional diff options to customize the diff process.
job_name
Optional ¶
- Type: str
An optional name for the Diff job.
job_stage
Optional ¶
- Type: str
An optional stage for the Diff job.
CdkDiffDeploy ¶
- Implements: ICdkDiffDeploy
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 ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names for which to generate a diff and perform deployment. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff and deployment. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff and perform deployment.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff and deployment.
Methods ¶
Name | Description |
---|---|
add_children |
Add gcix.Job s or other gcix.JobCollection s to this JobCollection. |
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
No description. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
get_all_instance_names |
Return all instance names from the given child. |
initialize_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection that haven't been set the allowFailure before. |
initialize_artifacts |
Sets gcix.Job.artifacts to all jobs within this JobCollection that haven't been set the artifacs before. |
initialize_cache |
Calling gcix.Job.assigneCache() to all jobs within this JobCollection that haven't been set the cache before. |
initialize_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection that haven't been added dependencies before. |
initialize_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection. |
initialize_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection that haven't been added needs before. |
initialize_rules |
Calling gcix.Job.append_rules() to all jobs within this JobCollection that haven't been added rules before. |
initialize_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection that haven't been added tags before. |
initialize_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection that haven't been added variables before. |
is_equal |
isEqual checks if this object is equal to given object. |
override_allow_failure |
Calling gcix.Job.assignAllowFailure() to all jobs within this JobCollection overriding any previous set value. |
override_dependencies |
Calling gcix.Job.assignDependencies() to all jobs within the first stage of this JobCollection and overriding any previously added dependencies to that jobs. |
override_image |
Calling gcix.Job.assignImage() to all jobs within this JobCollection overriding any previous set value. |
override_needs |
Calling gcix.Job.assignNeeds() to all jobs within the first stage of this JobCollection and overriding any previously added needs to that jobs. |
override_rules |
Calling gcix.Job.overrideRules() to all jobs within this JobCollection and overriding any previously added rules to that jobs. |
override_tags |
Calling gcix.Job.addTags([...]) to all jobs within this JobCollection and overriding any previously added tags to that jobs. |
override_variables |
Calling gcix.Job.addVariables({...}) to all jobs within this JobCollection and overriding any previously added variables to that jobs. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_children
¶
Add gcix.Job
s or other gcix.JobCollection
s 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.
jobs_or_job_collections
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
name
Optional ¶
- Type: str
stage
Optional ¶
- Type: str
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
parent
Required ¶
- Type: gcix.JobCollection
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
get_all_instance_names
¶
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.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
initialize_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection that haven't been set the allowFailure before.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
initialize_artifacts
¶
Sets gcix.Job.artifacts
to all jobs within this JobCollection that haven't been set the artifacs before.
artifacts
Required ¶
- Type: gcix.Artifacts
initialize_cache
¶
Calling gcix.Job.assigneCache()
to all jobs within this JobCollection that haven't been set the cache before.
cache
Required ¶
- Type: gcix.Cache
initialize_dependencies
¶
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.
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
initialize_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
initialize_needs
¶
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.
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
initialize_rules
¶
Calling gcix.Job.append_rules()
to all jobs within this JobCollection that haven't been added rules before.
rules
Required ¶
- Type: typing.List[gcix.Rule]
initialize_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection that haven't been added tags before.
tags
Required ¶
- Type: typing.List[str]
initialize_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection that haven't been added variables before.
variables
Required ¶
- Type: typing.Mapping[str]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
override_allow_failure
¶
Calling gcix.Job.assignAllowFailure()
to all jobs within this JobCollection overriding any previous set value.
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
override_dependencies
¶
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.
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
override_image
¶
Calling gcix.Job.assignImage()
to all jobs within this JobCollection overriding any previous set value.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
override_needs
¶
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.
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
override_rules
¶
Calling gcix.Job.overrideRules()
to all jobs within this JobCollection and overriding any previously added rules to that jobs.
rules
Required ¶
- Type: typing.List[gcix.Rule]
override_tags
¶
Calling gcix.Job.addTags([...])
to all jobs within this JobCollection and overriding any previously added tags to that jobs.
tags
Required ¶
- Type: typing.List[str]
override_variables
¶
Calling gcix.Job.addVariables({...})
to all jobs within this JobCollection and overriding any previously added variables to that jobs.
variables
Required ¶
- Type: typing.Mapping[str]
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
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 |
---|---|---|
last_jobs_executed |
typing.List[gcix.Job] |
This property returns all Jobs from the last stage of this JobCollection. |
nested_jobs |
typing.List[gcix.Job] |
No description. |
populated_jobs |
typing.List[gcix.Job] |
Returns a list with populated copies of all nested jobs of this JobCollection. |
children |
typing.List[gcix.ChildDict] |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
ordered_tags_for_initialization |
gcix.OrderedStringSet |
No description. |
ordered_tags_for_replacement |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
allow_failure_for_initialization |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
allow_failure_for_replacement |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
artifacts |
gcix.Artifacts |
No description. |
artifacts_for_initialization |
gcix.Artifacts |
No description. |
artifacts_for_replacement |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
cache_for_initialization |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
dependencies_for_initialization |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
dependencies_for_replacement |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image_for_initialization |
typing.Union[str, gcix.Image] |
No description. |
image_for_replacement |
typing.Union[str, gcix.Image] |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
needs_for_initialization |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
needs_for_replacement |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
rules_for_initialization |
typing.List[gcix.Rule] |
No description. |
rules_for_replacement |
typing.List[gcix.Rule] |
No description. |
rules_to_append |
typing.List[gcix.Rule] |
No description. |
rules_to_prepend |
typing.List[gcix.Rule] |
No description. |
scripts_to_append |
typing.List[str] |
No description. |
scripts_to_prepend |
typing.List[str] |
No description. |
variables |
typing.Mapping[str] |
No description. |
variables_for_initialization |
typing.Mapping[str] |
No description. |
variables_for_replacement |
typing.Mapping[str] |
No description. |
deploy_job |
CdkDeploy |
The instance of the Deploy job associated with this DiffDeploy instance. |
diff_job |
CdkDiff |
The instance of the Diff job associated with this DiffDeploy instance. |
stacks |
typing.List[str] |
An array of stack names for which to generate a diff and perform deployment. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff and deployment. |
last_jobs_executed
Required ¶
- Type: typing.List[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.
nested_jobs
Required ¶
- Type: typing.List[gcix.Job]
populated_jobs
Required ¶
- Type: typing.List[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.
children
Required ¶
- Type: typing.List[gcix.ChildDict]
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
ordered_tags_for_initialization
Required ¶
- Type: gcix.OrderedStringSet
ordered_tags_for_replacement
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
allow_failure_for_initialization
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
allow_failure_for_replacement
Optional ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
artifacts
Optional ¶
- Type: gcix.Artifacts
artifacts_for_initialization
Optional ¶
- Type: gcix.Artifacts
artifacts_for_replacement
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
cache_for_initialization
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
dependencies_for_initialization
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
dependencies_for_replacement
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image_for_initialization
Optional ¶
- Type: typing.Union[str, gcix.Image]
image_for_replacement
Optional ¶
- Type: typing.Union[str, gcix.Image]
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
needs_for_initialization
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
needs_for_replacement
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
rules_for_initialization
Optional ¶
- Type: typing.List[gcix.Rule]
rules_for_replacement
Optional ¶
- Type: typing.List[gcix.Rule]
rules_to_append
Optional ¶
- Type: typing.List[gcix.Rule]
rules_to_prepend
Optional ¶
- Type: typing.List[gcix.Rule]
scripts_to_append
Optional ¶
- Type: typing.List[str]
scripts_to_prepend
Optional ¶
- Type: typing.List[str]
variables
Optional ¶
- Type: typing.Mapping[str]
variables_for_initialization
Optional ¶
- Type: typing.Mapping[str]
variables_for_replacement
Optional ¶
- Type: typing.Mapping[str]
deploy_job
Required ¶
- Type: CdkDeploy
The instance of the Deploy job associated with this DiffDeploy instance.
diff_job
Required ¶
- Type: CdkDiff
The instance of the Diff job associated with this DiffDeploy instance.
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff and perform deployment.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff and deployment.
CdkMirrorToCodecommit ¶
- Implements: ICdkMirrorToCodecommit
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 ¶
Name | Type | Description |
---|---|---|
aws_region |
str |
The AWS region you want to operate in. |
infrastructure_tags |
str |
Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource. |
mirror_opts |
gcix.git.GitMirrorProps |
Options for the upstream Mirror job. |
repository_name |
str |
The name of the target Codecommit repository. |
aws_region
Optional ¶
- Type: str
The AWS region you want to operate in.
When not set, it would be curl'ed from the current EC2 instance metadata.
infrastructure_tags
Optional ¶
- Type: str
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
mirror_opts
Optional ¶
- Type: gcix.git.GitMirrorProps
Options for the upstream Mirror job.
repository_name
Optional ¶
- Type: str
- Default: CI_PROJECT_PATH_SLUG.
The name of the target Codecommit repository.
Methods ¶
Name | Description |
---|---|
add_dependencies |
No description. |
add_needs |
No description. |
add_parent |
This method is called by gcix.JobCollection s when the job is added to that JobCollection. |
add_tags |
No description. |
add_variables |
No description. |
append_rules |
No description. |
append_scripts |
No description. |
assign_allow_failure |
No description. |
assign_artifacts |
No description. |
assign_cache |
No description. |
assign_dependencies |
No description. |
assign_image |
Sets the image of this job. |
assign_needs |
No description. |
assign_tags |
No description. |
copy |
Returns an independent, deep copy object of this job. |
extend_name |
This method is used by gcix.JobCollection s to populate the jobs name. |
extend_stage |
This method is used by gcix.JobCollection s to populate the jobs name and stage. |
extend_stage_value |
This method is used by gcix.JobCollection s to populate the jobs stage. |
get_all_instance_names |
Return all instance names from the given child. |
is_equal |
isEqual checks if this object is equal to given object. |
prepend_rules |
No description. |
prepend_scripts |
No description. |
render |
Returns a representation of any object which implements IBase . |
add_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
add_parent
¶
This method is called by gcix.JobCollection
s when the job is added to that JobCollection.
The job needs to know its parents when getAllInstanceNames()
is called.
parent
Required ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
add_tags
¶
tags
Required ¶
- Type: typing.List[str]
add_variables
¶
variables
Required ¶
- Type: typing.Mapping[str]
append_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
append_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
assign_allow_failure
¶
allow_failure
Required ¶
- Type: typing.Union[bool, typing.List[typing.Union[int, float]]]
assign_artifacts
¶
artifacts
Required ¶
- Type: gcix.Artifacts
assign_cache
¶
cache
Required ¶
- Type: gcix.Cache
assign_dependencies
¶
dependencies
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_image
¶
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.
image
Required ¶
- Type: typing.Union[str, gcix.Image]
assign_needs
¶
needs
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
assign_tags
¶
tags
Required ¶
- Type: typing.List[str]
copy
¶
Returns an independent, deep copy object of this job.
extend_name
¶
This method is used by gcix.JobCollection
s to populate the jobs name.
name
Required ¶
- Type: str
extend_stage
¶
This method is used by gcix.JobCollection
s to populate the jobs name and stage.
stage
Required ¶
- Type: str
extend_stage_value
¶
This method is used by gcix.JobCollection
s to populate the jobs stage.
stage
Required ¶
- Type: str
get_all_instance_names
¶
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.
child
Optional ¶
- Type: typing.Union[gcix.Job, gcix.JobCollection]
is_equal
¶
isEqual
checks if this
object is equal to given object.
comparable
Required ¶
- Type: gcix.IBase
prepend_rules
¶
rules
Required ¶
- Type: typing.List[gcix.Rule]
prepend_scripts
¶
scripts
Required ¶
- Type: typing.List[str]
render
¶
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 |
typing.List[str] |
Getter method to receive added tags. |
allow_failure |
typing.Union[str, bool, typing.List[typing.Union[int, float]]] |
No description. |
name |
str |
No description. |
ordered_tags |
gcix.OrderedStringSet |
No description. |
parents |
typing.List[typing.Union[gcix.Job, gcix.JobCollection]] |
No description. |
scripts |
typing.List[str] |
No description. |
stage |
str |
No description. |
artifacts |
gcix.Artifacts |
No description. |
cache |
gcix.Cache |
No description. |
dependencies |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
image |
gcix.Image |
No description. |
needs |
typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]] |
No description. |
original |
gcix.Job |
No description. |
rules |
typing.List[gcix.Rule] |
No description. |
variables |
typing.Mapping[str] |
No description. |
git_config_user_email |
str |
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL. |
git_config_user_name |
str |
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME. |
remote_repository |
str |
The git repository the code of the pipelines repository should be mirrored to. |
script_hook |
typing.List[str] |
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote. |
private_key_variable |
str |
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. |
run_only_for_repository_url |
str |
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again. |
repository_name |
str |
The name of the target Codecommit repository. |
aws_region |
str |
The AWS region you want to operate in. |
infrastructure_tags |
str |
Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource. |
mirror_opts |
gcix.git.GitMirrorProps |
No description. |
tags
Required ¶
- Type: typing.List[str]
Getter method to receive added tags.
allow_failure
Required ¶
- Type: typing.Union[str, bool, typing.List[typing.Union[int, float]]]
name
Required ¶
- Type: str
ordered_tags
Required ¶
- Type: gcix.OrderedStringSet
parents
Required ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection]]
scripts
Required ¶
- Type: typing.List[str]
stage
Required ¶
- Type: str
artifacts
Optional ¶
- Type: gcix.Artifacts
cache
Optional ¶
- Type: gcix.Cache
dependencies
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
image
Optional ¶
- Type: gcix.Image
needs
Optional ¶
- Type: typing.List[typing.Union[gcix.Job, gcix.JobCollection, gcix.Need]]
original
Optional ¶
- Type: gcix.Job
rules
Optional ¶
- Type: typing.List[gcix.Rule]
variables
Optional ¶
- Type: typing.Mapping[str]
git_config_user_email
Required ¶
- Type: str
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
git_config_user_name
Required ¶
- Type: str
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remote_repository
Required ¶
- Type: str
The git repository the code of the pipelines repository should be mirrored to.
script_hook
Required ¶
- Type: typing.List[str]
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.
private_key_variable
Optional ¶
- Type: str
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.
run_only_for_repository_url
Optional ¶
- Type: str
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.
repository_name
Required ¶
- Type: str
The name of the target Codecommit repository.
aws_region
Optional ¶
- Type: str
The AWS region you want to operate in.
When not set, it would be curl'ed from the current EC2 instance metadata.
infrastructure_tags
Optional ¶
- Type: str
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
mirror_opts
Optional ¶
- Type: gcix.git.GitMirrorProps
Protocols ¶
ICdkBootstrap ¶
- Implemented By: CdkBootstrap, ICdkBootstrap
Represents the interface that a Bootstrap instance adheres to.
Properties ¶
Name | Type | Description |
---|---|---|
aws_account_id |
str |
The AWS account ID associated with the Bootstrap configuration. |
aws_region |
str |
The AWS region in which the Bootstrap will be performed. |
job_name |
str |
The name of the Bootstrap job. |
job_stage |
str |
The stage of the Bootstrap job. |
qualifier |
str |
The qualifier applied to the Bootstrap. |
toolkit_stack_name |
str |
The name of the toolkit stack used for Bootstrap. |
resource_tags |
typing.Mapping[str] |
Optional resource tags that can be applied during Bootstrap. |
aws_account_id
Required ¶
- Type: str
The AWS account ID associated with the Bootstrap configuration.
aws_region
Required ¶
- Type: str
The AWS region in which the Bootstrap will be performed.
job_name
Required ¶
- Type: str
The name of the Bootstrap job.
job_stage
Required ¶
- Type: str
The stage of the Bootstrap job.
qualifier
Required ¶
- Type: str
The qualifier applied to the Bootstrap.
toolkit_stack_name
Required ¶
- Type: str
The name of the toolkit stack used for Bootstrap.
resource_tags
Optional ¶
- Type: typing.Mapping[str]
Optional resource tags that can be applied during Bootstrap.
ICdkDeploy ¶
- Implemented By: CdkDeploy, ICdkDeploy
Represents the interface that a Deploy instance adheres to.
Properties ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names to be deployed. |
strict |
bool |
Flag indicating if strict deployment mode is enabled. |
wait_for_stack |
bool |
Flag indicating if the deployment should wait for stack completion. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for deployment. |
deploy_options |
str |
Optional deployment options. |
job_name |
str |
An optional name for the Deploy job. |
job_stage |
str |
An optional stage for the Deploy job. |
toolkit_stack_name |
str |
Optional toolkit stack name used for deployment. |
wait_for_stack_account_id |
str |
AWS account ID for stack waiting. |
wait_for_stack_assume_role |
str |
AWS assume role for stack waiting. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names to be deployed.
strict
Required ¶
- Type: bool
Flag indicating if strict deployment mode is enabled.
wait_for_stack
Required ¶
- Type: bool
Flag indicating if the deployment should wait for stack completion.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for deployment.
deploy_options
Optional ¶
- Type: str
Optional deployment options.
job_name
Optional ¶
- Type: str
An optional name for the Deploy job.
job_stage
Optional ¶
- Type: str
An optional stage for the Deploy job.
toolkit_stack_name
Optional ¶
- Type: str
Optional toolkit stack name used for deployment.
wait_for_stack_account_id
Optional ¶
- Type: str
AWS account ID for stack waiting.
wait_for_stack_assume_role
Optional ¶
- Type: str
AWS assume role for stack waiting.
ICdkDiff ¶
Represents the interface that a Diff instance adheres to.
Properties ¶
Name | Type | Description |
---|---|---|
stacks |
typing.List[str] |
An array of stack names for which to generate a diff. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff. |
diff_options |
str |
Optional diff options to customize the diff process. |
job_name |
str |
An optional name for the Diff job. |
job_stage |
str |
An optional stage for the Diff job. |
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff.
diff_options
Optional ¶
- Type: str
Optional diff options to customize the diff process.
job_name
Optional ¶
- Type: str
An optional name for the Diff job.
job_stage
Optional ¶
- Type: str
An optional stage for the Diff job.
ICdkDiffDeploy ¶
- Implemented By: CdkDiffDeploy, ICdkDiffDeploy
Represents the interface that a DiffDeploy instance adheres to.
Properties ¶
Name | Type | Description |
---|---|---|
deploy_job |
CdkDeploy |
The instance of the Deploy job associated with this DiffDeploy instance. |
diff_job |
CdkDiff |
The instance of the Diff job associated with this DiffDeploy instance. |
stacks |
typing.List[str] |
An array of stack names for which to generate a diff and perform deployment. |
context |
typing.Mapping[str] |
Optional context values to provide additional information for the diff and deployment. |
deploy_job
Required ¶
- Type: CdkDeploy
The instance of the Deploy job associated with this DiffDeploy instance.
diff_job
Required ¶
- Type: CdkDiff
The instance of the Diff job associated with this DiffDeploy instance.
stacks
Required ¶
- Type: typing.List[str]
An array of stack names for which to generate a diff and perform deployment.
context
Optional ¶
- Type: typing.Mapping[str]
Optional context values to provide additional information for the diff and deployment.
ICdkMirrorToCodecommit ¶
-
Extends: gcix.git.IGitMirror
-
Implemented By: CdkMirrorToCodecommit, ICdkMirrorToCodecommit
Properties ¶
Name | Type | Description |
---|---|---|
git_config_user_email |
str |
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL. |
git_config_user_name |
str |
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME. |
remote_repository |
str |
The git repository the code of the pipelines repository should be mirrored to. |
script_hook |
typing.List[str] |
This list of strings could contain any commands that should be executed between pulling the current repository and pushing it to the remote. |
private_key_variable |
str |
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. |
run_only_for_repository_url |
str |
When mirroring to a remote Gitlab instance, you don't want to run this mirroring job there again. |
repository_name |
str |
The name of the target Codecommit repository. |
aws_region |
str |
The AWS region you want to operate in. |
infrastructure_tags |
str |
Only if the ECR would be created on the first call, these AWS Tags becomes applied to the AWS Codecommit resource. |
git_config_user_email
Required ¶
- Type: str
The 'user.email' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_EMAIL.
git_config_user_name
Required ¶
- Type: str
The 'user.name' with which the commits to the remote repository should be made. Defaults to GITLAB_USER_NAME.
remote_repository
Required ¶
- Type: str
The git repository the code of the pipelines repository should be mirrored to.
script_hook
Required ¶
- Type: typing.List[str]
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.
private_key_variable
Optional ¶
- Type: str
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.
run_only_for_repository_url
Optional ¶
- Type: str
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.
repository_name
Required ¶
- Type: str
- Default: CI_PROJECT_PATH_SLUG.
The name of the target Codecommit repository.
aws_region
Optional ¶
- Type: str
The AWS region you want to operate in.
When not set, it would be curl'ed from the current EC2 instance metadata.
infrastructure_tags
Optional ¶
- Type: str
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
Created: November 14, 2023