aws-cdk-lib 2.191.0__py3-none-any.whl → 2.193.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +18 -21
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.191.0.jsii.tgz → aws-cdk-lib@2.193.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +90 -19
- aws_cdk/aws_appsync/__init__.py +4367 -336
- aws_cdk/aws_codepipeline/__init__.py +16 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +526 -0
- aws_cdk/aws_cognito_identitypool/__init__.py +9 -1
- aws_cdk/aws_ec2/__init__.py +39 -39
- aws_cdk/aws_ecs/__init__.py +230 -155
- aws_cdk/aws_eks/__init__.py +170 -2
- aws_cdk/aws_events/__init__.py +38 -0
- aws_cdk/aws_iam/__init__.py +178 -0
- aws_cdk/aws_opensearchservice/__init__.py +45 -25
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_servicediscovery/__init__.py +66 -36
- aws_cdk/aws_ses/__init__.py +44 -0
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/RECORD +23 -23
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.191.0.dist-info → aws_cdk_lib-2.193.0.dist-info}/top_level.txt +0 -0
|
@@ -1629,6 +1629,37 @@ pipeline.add_stage(
|
|
|
1629
1629
|
See [the AWS documentation](https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-StepFunctions.html)
|
|
1630
1630
|
for information on Action structure reference.
|
|
1631
1631
|
|
|
1632
|
+
### Pipeline
|
|
1633
|
+
|
|
1634
|
+
This module contains an Action that allows you to invoke another pipeline execution in a pipeline:
|
|
1635
|
+
|
|
1636
|
+
```python
|
|
1637
|
+
import aws_cdk.aws_codepipeline_actions as cpactions
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
pipeline = codepipeline.Pipeline(self, "MyPipeline")
|
|
1641
|
+
target_pipeline = codepipeline.Pipeline.from_pipeline_arn(self, "Pipeline", "arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction") # If targetPipeline is not created by cdk, import from arn.
|
|
1642
|
+
pipeline.add_stage(
|
|
1643
|
+
stage_name="stageName",
|
|
1644
|
+
actions=[cpactions.PipelineInvokeAction(
|
|
1645
|
+
action_name="Invoke",
|
|
1646
|
+
target_pipeline=target_pipeline,
|
|
1647
|
+
variables=[cpactions.Variable(
|
|
1648
|
+
name="name1",
|
|
1649
|
+
value="value1"
|
|
1650
|
+
)],
|
|
1651
|
+
source_revisions=[cpactions.SourceRevision(
|
|
1652
|
+
action_name="Source",
|
|
1653
|
+
revision_type=cpactions.RevisionType.S3_OBJECT_VERSION_ID,
|
|
1654
|
+
revision_value="testRevisionValue"
|
|
1655
|
+
)]
|
|
1656
|
+
)]
|
|
1657
|
+
)
|
|
1658
|
+
```
|
|
1659
|
+
|
|
1660
|
+
See [the AWS documentation](https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-PipelineInvoke.html)
|
|
1661
|
+
for information on Action structure reference.
|
|
1662
|
+
|
|
1632
1663
|
## Invoke
|
|
1633
1664
|
|
|
1634
1665
|
### Inspector
|
|
@@ -1857,6 +1888,7 @@ from ..aws_codepipeline import (
|
|
|
1857
1888
|
ArtifactPath as _ArtifactPath_bf444090,
|
|
1858
1889
|
CommonActionProps as _CommonActionProps_e3aaeecb,
|
|
1859
1890
|
CommonAwsActionProps as _CommonAwsActionProps_8b809bb6,
|
|
1891
|
+
IPipeline as _IPipeline_0931f838,
|
|
1860
1892
|
IStage as _IStage_415fc571,
|
|
1861
1893
|
)
|
|
1862
1894
|
from ..aws_ecr import IRepository as _IRepository_e6004aa6
|
|
@@ -11154,6 +11186,273 @@ class OrganizationsDeploymentProps:
|
|
|
11154
11186
|
)
|
|
11155
11187
|
|
|
11156
11188
|
|
|
11189
|
+
class PipelineInvokeAction(
|
|
11190
|
+
Action,
|
|
11191
|
+
metaclass=jsii.JSIIMeta,
|
|
11192
|
+
jsii_type="aws-cdk-lib.aws_codepipeline_actions.PipelineInvokeAction",
|
|
11193
|
+
):
|
|
11194
|
+
'''CodePipeline action to invoke a pipeline.
|
|
11195
|
+
|
|
11196
|
+
:exampleMetadata: infused
|
|
11197
|
+
|
|
11198
|
+
Example::
|
|
11199
|
+
|
|
11200
|
+
import aws_cdk.aws_codepipeline_actions as cpactions
|
|
11201
|
+
|
|
11202
|
+
|
|
11203
|
+
pipeline = codepipeline.Pipeline(self, "MyPipeline")
|
|
11204
|
+
target_pipeline = codepipeline.Pipeline.from_pipeline_arn(self, "Pipeline", "arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction") # If targetPipeline is not created by cdk, import from arn.
|
|
11205
|
+
pipeline.add_stage(
|
|
11206
|
+
stage_name="stageName",
|
|
11207
|
+
actions=[cpactions.PipelineInvokeAction(
|
|
11208
|
+
action_name="Invoke",
|
|
11209
|
+
target_pipeline=target_pipeline,
|
|
11210
|
+
variables=[cpactions.Variable(
|
|
11211
|
+
name="name1",
|
|
11212
|
+
value="value1"
|
|
11213
|
+
)],
|
|
11214
|
+
source_revisions=[cpactions.SourceRevision(
|
|
11215
|
+
action_name="Source",
|
|
11216
|
+
revision_type=cpactions.RevisionType.S3_OBJECT_VERSION_ID,
|
|
11217
|
+
revision_value="testRevisionValue"
|
|
11218
|
+
)]
|
|
11219
|
+
)]
|
|
11220
|
+
)
|
|
11221
|
+
'''
|
|
11222
|
+
|
|
11223
|
+
def __init__(
|
|
11224
|
+
self,
|
|
11225
|
+
*,
|
|
11226
|
+
target_pipeline: _IPipeline_0931f838,
|
|
11227
|
+
source_revisions: typing.Optional[typing.Sequence[typing.Union["SourceRevision", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11228
|
+
variables: typing.Optional[typing.Sequence[typing.Union["Variable", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11229
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
11230
|
+
action_name: builtins.str,
|
|
11231
|
+
run_order: typing.Optional[jsii.Number] = None,
|
|
11232
|
+
variables_namespace: typing.Optional[builtins.str] = None,
|
|
11233
|
+
) -> None:
|
|
11234
|
+
'''
|
|
11235
|
+
:param target_pipeline: The pipeline that will, upon running, start the current target pipeline. You must have already created the invoking pipeline.
|
|
11236
|
+
:param source_revisions: The source revisions that you want the target pipeline to use when it is started by the invoking pipeline. Default: - no specific revisions
|
|
11237
|
+
:param variables: The names and values of variables that you want the action to support. Default: - no specific variable
|
|
11238
|
+
:param role: The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your ``IAction.bind`` method in the ``ActionBindOptions.role`` property. Default: a new Role will be generated
|
|
11239
|
+
:param action_name: The physical, human-readable name of the Action. Note that Action names must be unique within a single Stage.
|
|
11240
|
+
:param run_order: The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute. Default: 1
|
|
11241
|
+
:param variables_namespace: The name of the namespace to use for variables emitted by this action. Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
|
|
11242
|
+
'''
|
|
11243
|
+
props = PipelineInvokeActionProps(
|
|
11244
|
+
target_pipeline=target_pipeline,
|
|
11245
|
+
source_revisions=source_revisions,
|
|
11246
|
+
variables=variables,
|
|
11247
|
+
role=role,
|
|
11248
|
+
action_name=action_name,
|
|
11249
|
+
run_order=run_order,
|
|
11250
|
+
variables_namespace=variables_namespace,
|
|
11251
|
+
)
|
|
11252
|
+
|
|
11253
|
+
jsii.create(self.__class__, self, [props])
|
|
11254
|
+
|
|
11255
|
+
@jsii.member(jsii_name="bound")
|
|
11256
|
+
def _bound(
|
|
11257
|
+
self,
|
|
11258
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
11259
|
+
_stage: _IStage_415fc571,
|
|
11260
|
+
*,
|
|
11261
|
+
bucket: _IBucket_42e086fd,
|
|
11262
|
+
role: _IRole_235f5d8e,
|
|
11263
|
+
) -> _ActionConfig_846fc217:
|
|
11264
|
+
'''This is a renamed version of the ``IAction.bind`` method.
|
|
11265
|
+
|
|
11266
|
+
:param scope: -
|
|
11267
|
+
:param _stage: -
|
|
11268
|
+
:param bucket:
|
|
11269
|
+
:param role:
|
|
11270
|
+
'''
|
|
11271
|
+
if __debug__:
|
|
11272
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6ed87a7fa19e6ece9b82b1b37ae387b26ec595dfeea75a3ebc8658a86778c40c)
|
|
11273
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
11274
|
+
check_type(argname="argument _stage", value=_stage, expected_type=type_hints["_stage"])
|
|
11275
|
+
options = _ActionBindOptions_3a612254(bucket=bucket, role=role)
|
|
11276
|
+
|
|
11277
|
+
return typing.cast(_ActionConfig_846fc217, jsii.invoke(self, "bound", [scope, _stage, options]))
|
|
11278
|
+
|
|
11279
|
+
|
|
11280
|
+
@jsii.data_type(
|
|
11281
|
+
jsii_type="aws-cdk-lib.aws_codepipeline_actions.PipelineInvokeActionProps",
|
|
11282
|
+
jsii_struct_bases=[_CommonAwsActionProps_8b809bb6],
|
|
11283
|
+
name_mapping={
|
|
11284
|
+
"action_name": "actionName",
|
|
11285
|
+
"run_order": "runOrder",
|
|
11286
|
+
"variables_namespace": "variablesNamespace",
|
|
11287
|
+
"role": "role",
|
|
11288
|
+
"target_pipeline": "targetPipeline",
|
|
11289
|
+
"source_revisions": "sourceRevisions",
|
|
11290
|
+
"variables": "variables",
|
|
11291
|
+
},
|
|
11292
|
+
)
|
|
11293
|
+
class PipelineInvokeActionProps(_CommonAwsActionProps_8b809bb6):
|
|
11294
|
+
def __init__(
|
|
11295
|
+
self,
|
|
11296
|
+
*,
|
|
11297
|
+
action_name: builtins.str,
|
|
11298
|
+
run_order: typing.Optional[jsii.Number] = None,
|
|
11299
|
+
variables_namespace: typing.Optional[builtins.str] = None,
|
|
11300
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
11301
|
+
target_pipeline: _IPipeline_0931f838,
|
|
11302
|
+
source_revisions: typing.Optional[typing.Sequence[typing.Union["SourceRevision", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11303
|
+
variables: typing.Optional[typing.Sequence[typing.Union["Variable", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11304
|
+
) -> None:
|
|
11305
|
+
'''Construction properties of the ``PipelineInvokeAction``.
|
|
11306
|
+
|
|
11307
|
+
:param action_name: The physical, human-readable name of the Action. Note that Action names must be unique within a single Stage.
|
|
11308
|
+
:param run_order: The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute. Default: 1
|
|
11309
|
+
:param variables_namespace: The name of the namespace to use for variables emitted by this action. Default: - a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set
|
|
11310
|
+
:param role: The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your ``IAction.bind`` method in the ``ActionBindOptions.role`` property. Default: a new Role will be generated
|
|
11311
|
+
:param target_pipeline: The pipeline that will, upon running, start the current target pipeline. You must have already created the invoking pipeline.
|
|
11312
|
+
:param source_revisions: The source revisions that you want the target pipeline to use when it is started by the invoking pipeline. Default: - no specific revisions
|
|
11313
|
+
:param variables: The names and values of variables that you want the action to support. Default: - no specific variable
|
|
11314
|
+
|
|
11315
|
+
:exampleMetadata: infused
|
|
11316
|
+
|
|
11317
|
+
Example::
|
|
11318
|
+
|
|
11319
|
+
import aws_cdk.aws_codepipeline_actions as cpactions
|
|
11320
|
+
|
|
11321
|
+
|
|
11322
|
+
pipeline = codepipeline.Pipeline(self, "MyPipeline")
|
|
11323
|
+
target_pipeline = codepipeline.Pipeline.from_pipeline_arn(self, "Pipeline", "arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction") # If targetPipeline is not created by cdk, import from arn.
|
|
11324
|
+
pipeline.add_stage(
|
|
11325
|
+
stage_name="stageName",
|
|
11326
|
+
actions=[cpactions.PipelineInvokeAction(
|
|
11327
|
+
action_name="Invoke",
|
|
11328
|
+
target_pipeline=target_pipeline,
|
|
11329
|
+
variables=[cpactions.Variable(
|
|
11330
|
+
name="name1",
|
|
11331
|
+
value="value1"
|
|
11332
|
+
)],
|
|
11333
|
+
source_revisions=[cpactions.SourceRevision(
|
|
11334
|
+
action_name="Source",
|
|
11335
|
+
revision_type=cpactions.RevisionType.S3_OBJECT_VERSION_ID,
|
|
11336
|
+
revision_value="testRevisionValue"
|
|
11337
|
+
)]
|
|
11338
|
+
)]
|
|
11339
|
+
)
|
|
11340
|
+
'''
|
|
11341
|
+
if __debug__:
|
|
11342
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2e6b4bcc5a2d9a18c86282291d297ea7e0240c2783c54be4c653d47eacbadd7c)
|
|
11343
|
+
check_type(argname="argument action_name", value=action_name, expected_type=type_hints["action_name"])
|
|
11344
|
+
check_type(argname="argument run_order", value=run_order, expected_type=type_hints["run_order"])
|
|
11345
|
+
check_type(argname="argument variables_namespace", value=variables_namespace, expected_type=type_hints["variables_namespace"])
|
|
11346
|
+
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
11347
|
+
check_type(argname="argument target_pipeline", value=target_pipeline, expected_type=type_hints["target_pipeline"])
|
|
11348
|
+
check_type(argname="argument source_revisions", value=source_revisions, expected_type=type_hints["source_revisions"])
|
|
11349
|
+
check_type(argname="argument variables", value=variables, expected_type=type_hints["variables"])
|
|
11350
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
11351
|
+
"action_name": action_name,
|
|
11352
|
+
"target_pipeline": target_pipeline,
|
|
11353
|
+
}
|
|
11354
|
+
if run_order is not None:
|
|
11355
|
+
self._values["run_order"] = run_order
|
|
11356
|
+
if variables_namespace is not None:
|
|
11357
|
+
self._values["variables_namespace"] = variables_namespace
|
|
11358
|
+
if role is not None:
|
|
11359
|
+
self._values["role"] = role
|
|
11360
|
+
if source_revisions is not None:
|
|
11361
|
+
self._values["source_revisions"] = source_revisions
|
|
11362
|
+
if variables is not None:
|
|
11363
|
+
self._values["variables"] = variables
|
|
11364
|
+
|
|
11365
|
+
@builtins.property
|
|
11366
|
+
def action_name(self) -> builtins.str:
|
|
11367
|
+
'''The physical, human-readable name of the Action.
|
|
11368
|
+
|
|
11369
|
+
Note that Action names must be unique within a single Stage.
|
|
11370
|
+
'''
|
|
11371
|
+
result = self._values.get("action_name")
|
|
11372
|
+
assert result is not None, "Required property 'action_name' is missing"
|
|
11373
|
+
return typing.cast(builtins.str, result)
|
|
11374
|
+
|
|
11375
|
+
@builtins.property
|
|
11376
|
+
def run_order(self) -> typing.Optional[jsii.Number]:
|
|
11377
|
+
'''The runOrder property for this Action.
|
|
11378
|
+
|
|
11379
|
+
RunOrder determines the relative order in which multiple Actions in the same Stage execute.
|
|
11380
|
+
|
|
11381
|
+
:default: 1
|
|
11382
|
+
|
|
11383
|
+
:see: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
|
|
11384
|
+
'''
|
|
11385
|
+
result = self._values.get("run_order")
|
|
11386
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
11387
|
+
|
|
11388
|
+
@builtins.property
|
|
11389
|
+
def variables_namespace(self) -> typing.Optional[builtins.str]:
|
|
11390
|
+
'''The name of the namespace to use for variables emitted by this action.
|
|
11391
|
+
|
|
11392
|
+
:default:
|
|
11393
|
+
|
|
11394
|
+
- a name will be generated, based on the stage and action names,
|
|
11395
|
+
if any of the action's variables were referenced - otherwise,
|
|
11396
|
+
no namespace will be set
|
|
11397
|
+
'''
|
|
11398
|
+
result = self._values.get("variables_namespace")
|
|
11399
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11400
|
+
|
|
11401
|
+
@builtins.property
|
|
11402
|
+
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
11403
|
+
'''The Role in which context's this Action will be executing in.
|
|
11404
|
+
|
|
11405
|
+
The Pipeline's Role will assume this Role
|
|
11406
|
+
(the required permissions for that will be granted automatically)
|
|
11407
|
+
right before executing this Action.
|
|
11408
|
+
This Action will be passed into your ``IAction.bind``
|
|
11409
|
+
method in the ``ActionBindOptions.role`` property.
|
|
11410
|
+
|
|
11411
|
+
:default: a new Role will be generated
|
|
11412
|
+
'''
|
|
11413
|
+
result = self._values.get("role")
|
|
11414
|
+
return typing.cast(typing.Optional[_IRole_235f5d8e], result)
|
|
11415
|
+
|
|
11416
|
+
@builtins.property
|
|
11417
|
+
def target_pipeline(self) -> _IPipeline_0931f838:
|
|
11418
|
+
'''The pipeline that will, upon running, start the current target pipeline.
|
|
11419
|
+
|
|
11420
|
+
You must have already created the invoking pipeline.
|
|
11421
|
+
'''
|
|
11422
|
+
result = self._values.get("target_pipeline")
|
|
11423
|
+
assert result is not None, "Required property 'target_pipeline' is missing"
|
|
11424
|
+
return typing.cast(_IPipeline_0931f838, result)
|
|
11425
|
+
|
|
11426
|
+
@builtins.property
|
|
11427
|
+
def source_revisions(self) -> typing.Optional[typing.List["SourceRevision"]]:
|
|
11428
|
+
'''The source revisions that you want the target pipeline to use when it is started by the invoking pipeline.
|
|
11429
|
+
|
|
11430
|
+
:default: - no specific revisions
|
|
11431
|
+
'''
|
|
11432
|
+
result = self._values.get("source_revisions")
|
|
11433
|
+
return typing.cast(typing.Optional[typing.List["SourceRevision"]], result)
|
|
11434
|
+
|
|
11435
|
+
@builtins.property
|
|
11436
|
+
def variables(self) -> typing.Optional[typing.List["Variable"]]:
|
|
11437
|
+
'''The names and values of variables that you want the action to support.
|
|
11438
|
+
|
|
11439
|
+
:default: - no specific variable
|
|
11440
|
+
'''
|
|
11441
|
+
result = self._values.get("variables")
|
|
11442
|
+
return typing.cast(typing.Optional[typing.List["Variable"]], result)
|
|
11443
|
+
|
|
11444
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11445
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11446
|
+
|
|
11447
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11448
|
+
return not (rhs == self)
|
|
11449
|
+
|
|
11450
|
+
def __repr__(self) -> str:
|
|
11451
|
+
return "PipelineInvokeActionProps(%s)" % ", ".join(
|
|
11452
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11453
|
+
)
|
|
11454
|
+
|
|
11455
|
+
|
|
11157
11456
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_codepipeline_actions.RegistryType")
|
|
11158
11457
|
class RegistryType(enum.Enum):
|
|
11159
11458
|
'''The type of registry to use for the EcrBuildAndPublish action.
|
|
@@ -11203,6 +11502,47 @@ class RegistryType(enum.Enum):
|
|
|
11203
11502
|
'''Public registry.'''
|
|
11204
11503
|
|
|
11205
11504
|
|
|
11505
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_codepipeline_actions.RevisionType")
|
|
11506
|
+
class RevisionType(enum.Enum):
|
|
11507
|
+
'''The types of revision for a pipeline execution.
|
|
11508
|
+
|
|
11509
|
+
:exampleMetadata: infused
|
|
11510
|
+
|
|
11511
|
+
Example::
|
|
11512
|
+
|
|
11513
|
+
import aws_cdk.aws_codepipeline_actions as cpactions
|
|
11514
|
+
|
|
11515
|
+
|
|
11516
|
+
pipeline = codepipeline.Pipeline(self, "MyPipeline")
|
|
11517
|
+
target_pipeline = codepipeline.Pipeline.from_pipeline_arn(self, "Pipeline", "arn:aws:codepipeline:us-east-1:123456789012:InvokePipelineAction") # If targetPipeline is not created by cdk, import from arn.
|
|
11518
|
+
pipeline.add_stage(
|
|
11519
|
+
stage_name="stageName",
|
|
11520
|
+
actions=[cpactions.PipelineInvokeAction(
|
|
11521
|
+
action_name="Invoke",
|
|
11522
|
+
target_pipeline=target_pipeline,
|
|
11523
|
+
variables=[cpactions.Variable(
|
|
11524
|
+
name="name1",
|
|
11525
|
+
value="value1"
|
|
11526
|
+
)],
|
|
11527
|
+
source_revisions=[cpactions.SourceRevision(
|
|
11528
|
+
action_name="Source",
|
|
11529
|
+
revision_type=cpactions.RevisionType.S3_OBJECT_VERSION_ID,
|
|
11530
|
+
revision_value="testRevisionValue"
|
|
11531
|
+
)]
|
|
11532
|
+
)]
|
|
11533
|
+
)
|
|
11534
|
+
'''
|
|
11535
|
+
|
|
11536
|
+
COMMIT_ID = "COMMIT_ID"
|
|
11537
|
+
'''The revision type is a commit id.'''
|
|
11538
|
+
IMAGE_DIGEST = "IMAGE_DIGEST"
|
|
11539
|
+
'''The revision type is an image digest.'''
|
|
11540
|
+
S3_OBJECT_VERSION_ID = "S3_OBJECT_VERSION_ID"
|
|
11541
|
+
'''The revision type is an s3 object version id.'''
|
|
11542
|
+
S3_OBJECT_KEY = "S3_OBJECT_KEY"
|
|
11543
|
+
'''The revision type is an s3 object version key.'''
|
|
11544
|
+
|
|
11545
|
+
|
|
11206
11546
|
class S3DeployAction(
|
|
11207
11547
|
Action,
|
|
11208
11548
|
metaclass=jsii.JSIIMeta,
|
|
@@ -12300,6 +12640,87 @@ class ServiceCatalogDeployActionBeta1Props(_CommonAwsActionProps_8b809bb6):
|
|
|
12300
12640
|
)
|
|
12301
12641
|
|
|
12302
12642
|
|
|
12643
|
+
@jsii.data_type(
|
|
12644
|
+
jsii_type="aws-cdk-lib.aws_codepipeline_actions.SourceRevision",
|
|
12645
|
+
jsii_struct_bases=[],
|
|
12646
|
+
name_mapping={
|
|
12647
|
+
"action_name": "actionName",
|
|
12648
|
+
"revision_type": "revisionType",
|
|
12649
|
+
"revision_value": "revisionValue",
|
|
12650
|
+
},
|
|
12651
|
+
)
|
|
12652
|
+
class SourceRevision:
|
|
12653
|
+
def __init__(
|
|
12654
|
+
self,
|
|
12655
|
+
*,
|
|
12656
|
+
action_name: builtins.str,
|
|
12657
|
+
revision_type: RevisionType,
|
|
12658
|
+
revision_value: builtins.str,
|
|
12659
|
+
) -> None:
|
|
12660
|
+
'''A list that allows you to specify, or override, the source revision for a pipeline execution that's being started.
|
|
12661
|
+
|
|
12662
|
+
:param action_name: The name of the action where the override will be applied.
|
|
12663
|
+
:param revision_type: The type of source revision, based on the source provider.
|
|
12664
|
+
:param revision_value: The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
|
|
12665
|
+
|
|
12666
|
+
:exampleMetadata: fixture=_generated
|
|
12667
|
+
|
|
12668
|
+
Example::
|
|
12669
|
+
|
|
12670
|
+
# The code below shows an example of how to instantiate this type.
|
|
12671
|
+
# The values are placeholders you should change.
|
|
12672
|
+
from aws_cdk import aws_codepipeline_actions as codepipeline_actions
|
|
12673
|
+
|
|
12674
|
+
source_revision = codepipeline_actions.SourceRevision(
|
|
12675
|
+
action_name="actionName",
|
|
12676
|
+
revision_type=codepipeline_actions.RevisionType.COMMIT_ID,
|
|
12677
|
+
revision_value="revisionValue"
|
|
12678
|
+
)
|
|
12679
|
+
'''
|
|
12680
|
+
if __debug__:
|
|
12681
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e6340ae26c25f358935f8374f2fd03813edfede1d33e06124e7c084bd404be8d)
|
|
12682
|
+
check_type(argname="argument action_name", value=action_name, expected_type=type_hints["action_name"])
|
|
12683
|
+
check_type(argname="argument revision_type", value=revision_type, expected_type=type_hints["revision_type"])
|
|
12684
|
+
check_type(argname="argument revision_value", value=revision_value, expected_type=type_hints["revision_value"])
|
|
12685
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
12686
|
+
"action_name": action_name,
|
|
12687
|
+
"revision_type": revision_type,
|
|
12688
|
+
"revision_value": revision_value,
|
|
12689
|
+
}
|
|
12690
|
+
|
|
12691
|
+
@builtins.property
|
|
12692
|
+
def action_name(self) -> builtins.str:
|
|
12693
|
+
'''The name of the action where the override will be applied.'''
|
|
12694
|
+
result = self._values.get("action_name")
|
|
12695
|
+
assert result is not None, "Required property 'action_name' is missing"
|
|
12696
|
+
return typing.cast(builtins.str, result)
|
|
12697
|
+
|
|
12698
|
+
@builtins.property
|
|
12699
|
+
def revision_type(self) -> RevisionType:
|
|
12700
|
+
'''The type of source revision, based on the source provider.'''
|
|
12701
|
+
result = self._values.get("revision_type")
|
|
12702
|
+
assert result is not None, "Required property 'revision_type' is missing"
|
|
12703
|
+
return typing.cast(RevisionType, result)
|
|
12704
|
+
|
|
12705
|
+
@builtins.property
|
|
12706
|
+
def revision_value(self) -> builtins.str:
|
|
12707
|
+
'''The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.'''
|
|
12708
|
+
result = self._values.get("revision_value")
|
|
12709
|
+
assert result is not None, "Required property 'revision_value' is missing"
|
|
12710
|
+
return typing.cast(builtins.str, result)
|
|
12711
|
+
|
|
12712
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
12713
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
12714
|
+
|
|
12715
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
12716
|
+
return not (rhs == self)
|
|
12717
|
+
|
|
12718
|
+
def __repr__(self) -> str:
|
|
12719
|
+
return "SourceRevision(%s)" % ", ".join(
|
|
12720
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
12721
|
+
)
|
|
12722
|
+
|
|
12723
|
+
|
|
12303
12724
|
class StackInstances(
|
|
12304
12725
|
metaclass=jsii.JSIIAbstractClass,
|
|
12305
12726
|
jsii_type="aws-cdk-lib.aws_codepipeline_actions.StackInstances",
|
|
@@ -13119,6 +13540,66 @@ class StepFunctionsInvokeActionProps(_CommonAwsActionProps_8b809bb6):
|
|
|
13119
13540
|
)
|
|
13120
13541
|
|
|
13121
13542
|
|
|
13543
|
+
@jsii.data_type(
|
|
13544
|
+
jsii_type="aws-cdk-lib.aws_codepipeline_actions.Variable",
|
|
13545
|
+
jsii_struct_bases=[],
|
|
13546
|
+
name_mapping={"name": "name", "value": "value"},
|
|
13547
|
+
)
|
|
13548
|
+
class Variable:
|
|
13549
|
+
def __init__(self, *, name: builtins.str, value: builtins.str) -> None:
|
|
13550
|
+
'''A pipeline-level variable used for a pipeline execution.
|
|
13551
|
+
|
|
13552
|
+
:param name: The name of a pipeline-level variable.
|
|
13553
|
+
:param value: The value of a pipeline-level variable.
|
|
13554
|
+
|
|
13555
|
+
:exampleMetadata: fixture=_generated
|
|
13556
|
+
|
|
13557
|
+
Example::
|
|
13558
|
+
|
|
13559
|
+
# The code below shows an example of how to instantiate this type.
|
|
13560
|
+
# The values are placeholders you should change.
|
|
13561
|
+
from aws_cdk import aws_codepipeline_actions as codepipeline_actions
|
|
13562
|
+
|
|
13563
|
+
variable = codepipeline_actions.Variable(
|
|
13564
|
+
name="name",
|
|
13565
|
+
value="value"
|
|
13566
|
+
)
|
|
13567
|
+
'''
|
|
13568
|
+
if __debug__:
|
|
13569
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e8a68dede489d12391ec667e8aa5807439ea94f1c04be5d03a7e3c6d8dc56a12)
|
|
13570
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
13571
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
13572
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13573
|
+
"name": name,
|
|
13574
|
+
"value": value,
|
|
13575
|
+
}
|
|
13576
|
+
|
|
13577
|
+
@builtins.property
|
|
13578
|
+
def name(self) -> builtins.str:
|
|
13579
|
+
'''The name of a pipeline-level variable.'''
|
|
13580
|
+
result = self._values.get("name")
|
|
13581
|
+
assert result is not None, "Required property 'name' is missing"
|
|
13582
|
+
return typing.cast(builtins.str, result)
|
|
13583
|
+
|
|
13584
|
+
@builtins.property
|
|
13585
|
+
def value(self) -> builtins.str:
|
|
13586
|
+
'''The value of a pipeline-level variable.'''
|
|
13587
|
+
result = self._values.get("value")
|
|
13588
|
+
assert result is not None, "Required property 'value' is missing"
|
|
13589
|
+
return typing.cast(builtins.str, result)
|
|
13590
|
+
|
|
13591
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13592
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13593
|
+
|
|
13594
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13595
|
+
return not (rhs == self)
|
|
13596
|
+
|
|
13597
|
+
def __repr__(self) -> str:
|
|
13598
|
+
return "Variable(%s)" % ", ".join(
|
|
13599
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13600
|
+
)
|
|
13601
|
+
|
|
13602
|
+
|
|
13122
13603
|
@jsii.implements(IJenkinsProvider)
|
|
13123
13604
|
class BaseJenkinsProvider(
|
|
13124
13605
|
_constructs_77d1e7e8.Construct,
|
|
@@ -14254,7 +14735,10 @@ __all__ = [
|
|
|
14254
14735
|
"ManualApprovalAction",
|
|
14255
14736
|
"ManualApprovalActionProps",
|
|
14256
14737
|
"OrganizationsDeploymentProps",
|
|
14738
|
+
"PipelineInvokeAction",
|
|
14739
|
+
"PipelineInvokeActionProps",
|
|
14257
14740
|
"RegistryType",
|
|
14741
|
+
"RevisionType",
|
|
14258
14742
|
"S3DeployAction",
|
|
14259
14743
|
"S3DeployActionProps",
|
|
14260
14744
|
"S3SourceAction",
|
|
@@ -14264,6 +14748,7 @@ __all__ = [
|
|
|
14264
14748
|
"SelfManagedDeploymentProps",
|
|
14265
14749
|
"ServiceCatalogDeployActionBeta1",
|
|
14266
14750
|
"ServiceCatalogDeployActionBeta1Props",
|
|
14751
|
+
"SourceRevision",
|
|
14267
14752
|
"StackInstances",
|
|
14268
14753
|
"StackSetDeploymentModel",
|
|
14269
14754
|
"StackSetOrganizationsAutoDeployment",
|
|
@@ -14272,6 +14757,7 @@ __all__ = [
|
|
|
14272
14757
|
"StateMachineInput",
|
|
14273
14758
|
"StepFunctionInvokeAction",
|
|
14274
14759
|
"StepFunctionsInvokeActionProps",
|
|
14760
|
+
"Variable",
|
|
14275
14761
|
]
|
|
14276
14762
|
|
|
14277
14763
|
publication.publish()
|
|
@@ -15030,6 +15516,29 @@ def _typecheckingstub__d66fc0e700f87761939e3003c9e3c3e4c2180d4fbcf47f177722767a1
|
|
|
15030
15516
|
"""Type checking stubs"""
|
|
15031
15517
|
pass
|
|
15032
15518
|
|
|
15519
|
+
def _typecheckingstub__6ed87a7fa19e6ece9b82b1b37ae387b26ec595dfeea75a3ebc8658a86778c40c(
|
|
15520
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
15521
|
+
_stage: _IStage_415fc571,
|
|
15522
|
+
*,
|
|
15523
|
+
bucket: _IBucket_42e086fd,
|
|
15524
|
+
role: _IRole_235f5d8e,
|
|
15525
|
+
) -> None:
|
|
15526
|
+
"""Type checking stubs"""
|
|
15527
|
+
pass
|
|
15528
|
+
|
|
15529
|
+
def _typecheckingstub__2e6b4bcc5a2d9a18c86282291d297ea7e0240c2783c54be4c653d47eacbadd7c(
|
|
15530
|
+
*,
|
|
15531
|
+
action_name: builtins.str,
|
|
15532
|
+
run_order: typing.Optional[jsii.Number] = None,
|
|
15533
|
+
variables_namespace: typing.Optional[builtins.str] = None,
|
|
15534
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
15535
|
+
target_pipeline: _IPipeline_0931f838,
|
|
15536
|
+
source_revisions: typing.Optional[typing.Sequence[typing.Union[SourceRevision, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15537
|
+
variables: typing.Optional[typing.Sequence[typing.Union[Variable, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15538
|
+
) -> None:
|
|
15539
|
+
"""Type checking stubs"""
|
|
15540
|
+
pass
|
|
15541
|
+
|
|
15033
15542
|
def _typecheckingstub__008d01d41b4e94d14ea5b08b27875929ad6e0df8af43fbdcafd84cbd5e0c0d34(
|
|
15034
15543
|
_scope: _constructs_77d1e7e8.Construct,
|
|
15035
15544
|
_stage: _IStage_415fc571,
|
|
@@ -15121,6 +15630,15 @@ def _typecheckingstub__635c5e141213d9eb83c0cf108258fe0bca5f5aaea1d9e71c6d7562baa
|
|
|
15121
15630
|
"""Type checking stubs"""
|
|
15122
15631
|
pass
|
|
15123
15632
|
|
|
15633
|
+
def _typecheckingstub__e6340ae26c25f358935f8374f2fd03813edfede1d33e06124e7c084bd404be8d(
|
|
15634
|
+
*,
|
|
15635
|
+
action_name: builtins.str,
|
|
15636
|
+
revision_type: RevisionType,
|
|
15637
|
+
revision_value: builtins.str,
|
|
15638
|
+
) -> None:
|
|
15639
|
+
"""Type checking stubs"""
|
|
15640
|
+
pass
|
|
15641
|
+
|
|
15124
15642
|
def _typecheckingstub__141e5dc2d58924fb831d931847f37935e361c2a153f9e8c11234fcdf48d5cacd(
|
|
15125
15643
|
artifact_path: _ArtifactPath_bf444090,
|
|
15126
15644
|
regions: typing.Sequence[builtins.str],
|
|
@@ -15197,6 +15715,14 @@ def _typecheckingstub__64ac90d220b5e655386915e2881b269f896519c023a90afd1756161c9
|
|
|
15197
15715
|
"""Type checking stubs"""
|
|
15198
15716
|
pass
|
|
15199
15717
|
|
|
15718
|
+
def _typecheckingstub__e8a68dede489d12391ec667e8aa5807439ea94f1c04be5d03a7e3c6d8dc56a12(
|
|
15719
|
+
*,
|
|
15720
|
+
name: builtins.str,
|
|
15721
|
+
value: builtins.str,
|
|
15722
|
+
) -> None:
|
|
15723
|
+
"""Type checking stubs"""
|
|
15724
|
+
pass
|
|
15725
|
+
|
|
15200
15726
|
def _typecheckingstub__8038675dee538d81000d6714c6f38401c5d7a19b8e5d7a412a3e91fd12717854(
|
|
15201
15727
|
scope: _constructs_77d1e7e8.Construct,
|
|
15202
15728
|
id: builtins.str,
|
|
@@ -411,7 +411,9 @@ from .._jsii import *
|
|
|
411
411
|
import constructs as _constructs_77d1e7e8
|
|
412
412
|
from .. import IResource as _IResource_c80c4260, Resource as _Resource_45bc6135
|
|
413
413
|
from ..aws_cognito import (
|
|
414
|
-
|
|
414
|
+
CfnIdentityPoolRoleAttachment as _CfnIdentityPoolRoleAttachment_6213757a,
|
|
415
|
+
IUserPool as _IUserPool_1f1029e2,
|
|
416
|
+
IUserPoolClient as _IUserPoolClient_75623ba4,
|
|
415
417
|
)
|
|
416
418
|
from ..aws_iam import (
|
|
417
419
|
IOpenIdConnectProvider as _IOpenIdConnectProvider_203f0793,
|
|
@@ -702,6 +704,12 @@ class IdentityPool(
|
|
|
702
704
|
'''
|
|
703
705
|
return typing.cast(builtins.str, jsii.get(self, "identityPoolName"))
|
|
704
706
|
|
|
707
|
+
@builtins.property
|
|
708
|
+
@jsii.member(jsii_name="roleAttachment")
|
|
709
|
+
def role_attachment(self) -> _CfnIdentityPoolRoleAttachment_6213757a:
|
|
710
|
+
'''Role Provider for the default Role for authenticated users.'''
|
|
711
|
+
return typing.cast(_CfnIdentityPoolRoleAttachment_6213757a, jsii.get(self, "roleAttachment"))
|
|
712
|
+
|
|
705
713
|
@builtins.property
|
|
706
714
|
@jsii.member(jsii_name="unauthenticatedRole")
|
|
707
715
|
def unauthenticated_role(self) -> _IRole_235f5d8e:
|