@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:34.869Z")
public interface CfnOutputProps
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnOutputProps.Builder
A builder for
CfnOutputProps |
static class |
CfnOutputProps.Jsii$Proxy
An implementation for
CfnOutputProps |
Modifier and Type | Method and Description |
---|---|
static CfnOutputProps.Builder |
builder() |
default CfnCondition |
getCondition()
A condition to associate with this output value.
|
default java.lang.String |
getDescription()
A String type that describes the output value.
|
default java.lang.String |
getExportName()
The name used to export the value of this output across stacks.
|
java.lang.String |
getValue()
The value of the property returned by the aws cloudformation describe-stacks command.
|
java.lang.String getValue()
The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
default CfnCondition getCondition()
If the condition evaluates
to false
, this output value will not be included in the stack.
Default: - No condition is associated with the output.
default java.lang.String getDescription()
The description can be a maximum of 4 K in length.
Default: - No description.
default java.lang.String getExportName()
To import the value from another stack, use Fn.importValue(exportName)
.
Default: - the output is not exported
static CfnOutputProps.Builder builder()
CfnOutputProps.Builder
of CfnOutputProps