@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.821Z") @Stability(value=Stable) public interface CfnOutputProps extends software.amazon.jsii.JsiiSerializable
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 String |
getDescription()
A String type that describes the output value.
|
default String |
getExportName()
The name used to export the value of this output across stacks.
|
String |
getValue()
The value of the property returned by the aws cloudformation describe-stacks command.
|
@Stability(value=Stable) @NotNull String getValue()
The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.
@Stability(value=Stable) @Nullable 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.
@Stability(value=Stable) @Nullable default String getDescription()
The description can be a maximum of 4 K in length.
Default: - No description.
@Stability(value=Stable) @Nullable default String getExportName()
To import the value from another stack, use Fn.importValue(exportName).
Default: - the output is not exported
@Stability(value=Stable) static CfnOutputProps.Builder builder()
CfnOutputProps.Builder of CfnOutputPropsCopyright © 2022. All rights reserved.