Interface CfnOutputProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnOutputProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.890Z") @Stability(Stable) public interface CfnOutputProps extends software.amazon.jsii.JsiiSerializable
Example:

 Cluster cluster;
 // add service account
 ServiceAccount serviceAccount = cluster.addServiceAccount("MyServiceAccount");
 Bucket bucket = new Bucket(this, "Bucket");
 bucket.grantReadWrite(serviceAccount);
 KubernetesManifest mypod = cluster.addManifest("mypod", Map.of(
         "apiVersion", "v1",
         "kind", "Pod",
         "metadata", Map.of("name", "mypod"),
         "spec", Map.of(
                 "serviceAccountName", serviceAccount.getServiceAccountName(),
                 "containers", List.of(Map.of(
                         "name", "hello",
                         "image", "paulbouwer/hello-kubernetes:1.5",
                         "ports", List.of(Map.of("containerPort", 8080)))))));
 // create the resource after the service account.
 mypod.node.addDependency(serviceAccount);
 // print the IAM role arn for this service account
 // print the IAM role arn for this service account
 CfnOutput.Builder.create(this, "ServiceAccountIamRole").value(serviceAccount.getRole().getRoleArn()).build();
 
  • Method Details

    • getValue

      @Stability(Stable) @NotNull String getValue()
      The value of the property returned by the aws cloudformation describe-stacks command.

      The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.

    • getCondition

      @Stability(Stable) @Nullable default CfnCondition getCondition()
      A condition to associate with this output value.

      If the condition evaluates to false, this output value will not be included in the stack.

      Default: - No condition is associated with the output.

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A String type that describes the output value.

      The description can be a maximum of 4 K in length.

      Default: - No description.

    • getExportName

      @Stability(Stable) @Nullable default String getExportName()
      The name used to export the value of this output across stacks.

      To import the value from another stack, use Fn.importValue(exportName).

      Default: - the output is not exported

    • builder

      @Stability(Stable) static CfnOutputProps.Builder builder()
      Returns:
      a CfnOutputProps.Builder of CfnOutputProps