Skip to content
v2.277.0

OutputProperty Struct ​

The Output data type.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const outputProperty: cloudformation.CfnStack.OutputProperty = {
  description: 'description',
  exportName: 'exportName',
  outputKey: 'outputKey',
  outputValue: 'outputValue',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudformation as cloudformation

output_property = cloudformation.CfnStack.OutputProperty(
    description="description",
    export_name="exportName",
    output_key="outputKey",
    output_value="outputValue"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudformation.*;

OutputProperty outputProperty = OutputProperty.builder()
        .description("description")
        .exportName("exportName")
        .outputKey("outputKey")
        .outputValue("outputValue")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFormation;

var outputProperty = new OutputProperty {
    Description = "description",
    ExportName = "exportName",
    OutputKey = "outputKey",
    OutputValue = "outputValue"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

outputProperty := &OutputProperty{
	Description: jsii.String("description"),
	ExportName: jsii.String("exportName"),
	OutputKey: jsii.String("outputKey"),
	OutputValue: jsii.String("outputValue"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
User defined description associated with the output.
exportNameoptionalstringexport_nameoptionalstrexportNameoptionalStringExportNameoptionalstringExportNameoptional*string#
The name of the export associated with the output.
outputKeyoptionalstringoutput_keyoptionalstroutputKeyoptionalStringOutputKeyoptionalstringOutputKeyoptional*string#
The key associated with the output.
outputValueoptionalstringoutput_valueoptionalstroutputValueoptionalStringOutputValueoptionalstringOutputValueoptional*string#
The value associated with the output.