StackOutputReference
- class aws_cdk.pipelines.StackOutputReference(*args: Any, **kwargs)
Bases:
object
A Reference to a Stack Output.
- ExampleMetadata:
infused
Example:
# Example automatically generated from non-compiling source. May contain errors. @jsii.implements(pipelines.ICodePipelineActionFactory) class MyLambdaStep(pipelines.Step): def __init__(self): pass super().__init__("MyLambdaStep") self.stack_output_reference = pipelines.StackOutputReference.from_cfn_output(stack_output)produce_action(stage, codepipeline.IStage, options, pipelines.ProduceActionOptions)pipelines.CodePipelineActionFactoryResult stage.add_action(cpactions.LambdaInvokeAction( action_name=options.action_name, run_order=options.run_order, # Map the reference to the variable name the CDK has generated for you. user_parameters={"stack_output": options.stack_outputs_map.to_code_pipeline(self.stack_output_reference)}, lambda_=self.function )) return {"run_orders_consumed": 1}getconsumed_stack_outputs()pipelines.StackOutputReference[] return [self.stack_output_reference]
Methods
- is_produced_by(stack)
Whether or not this stack output is being produced by the given Stack deployment.
- Parameters:
stack (
StackDeployment
) –- Return type:
bool
Attributes
- output_name
Output name of the producing stack.
- stack_description
A human-readable description of the producing stack.
Static Methods