public Optional<ResourceRequirements> resources() {
        return Optional.ofNullable(this.resources);
    }
@return Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java